Configuration¶
TyGrit uses a single TOML file to configure all subsystems. See config/grasp_example.toml for an example.
Loading¶
from TyGrit.config import load_config
config = load_config("config/my_config.toml")
# config.env, config.scene, config.gaze, config.grasping,
# config.segmentation, config.planner, config.subgoal,
# config.mpc, config.scheduler
Only sections present in the TOML are overridden; missing sections use defaults.
Sections¶
[scene] — Pointcloud scene processing¶
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
float |
0.3 |
Points below this Z are ground |
|
[float, float] |
[0.2, 3.0] |
Valid depth range (metres) |
|
bool |
true |
Remove ground points |
|
float |
0.03 |
Merge radius for scene updates |
|
float |
0.05 |
Voxel grid downsample size |
|
float |
2.5 |
Keep points within this radius |
[gaze] — Head tracking controller¶
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
int |
80 |
Number of trajectory steps to look ahead |
|
float |
0.99 |
Temporal decay for joint priorities |
|
float |
1.0 |
Weight for velocity-based attention |
[gaze.joint_priorities]¶
Per-joint attention weights:
Joint |
Default |
|---|---|
|
3.0 |
|
2.0 |
|
1.3 |
|
1.1 |
|
1.0 |
|
1.0 |
[grasping] — GraspGen predictor¶
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
str |
— |
Path to GraspGen weights YAML |
|
int |
200 |
Number of grasp candidates to generate |
|
int |
100 |
Top-K grasps to keep |
|
int |
40 |
Minimum viable grasps |
|
int |
6 |
Retry attempts |
|
bool |
true |
Filter outlier grasps |
|
float |
0.0 |
Minimum grasp score |
|
int |
50 |
Final output cap |
|
str |
“cuda” |
Torch device |
[segmentation] — Segmentation backend¶
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
str |
“sim” |
Backend: |
Additional parameters when backend = "sam3":
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
str |
“sam3_hiera_large” |
SAM 3 model variant |
|
str |
“object” |
Text prompt for segmentation |
|
float |
0.5 |
Score threshold |
|
float |
0.5 |
Mask binarization threshold |
|
str |
“cuda” |
Torch device |
[subgoal] — Subgoal generator¶
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
str |
“grasp” |
Task type: |
Additional parameters when task = "grasp":
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
float |
0.15 |
Joint-space distance to consider approach complete |
|
float |
0.15 |
Torso raise for lift phase |
|
float |
0.15 |
Joint-space distance to consider lift complete |
[planner] — VAMP motion planner¶
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
float |
5.0 |
Planning timeout (seconds) |
|
float |
0.03 |
Collision sphere radius for pointcloud obstacles |
[mpc] — Model predictive controller¶
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
float |
2.5 |
Overall tracking gain |
|
float |
5.0 |
Max linear velocity |
|
float |
5.0 |
Max angular velocity |
|
[float; 11] |
[20, 20, 15, 12, …] |
Per-DOF state error weights |
|
[float; 10] |
[0.5, 0.8, 1, …] |
Per-DOF control effort weights |
|
[float; 8] |
[2, 7, 7, …] |
Joint velocity limits (torso + 7 arm) |
[scheduler] — Receding-horizon loop¶
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
int |
10 |
Simulation steps per control iteration |
|
int |
2 |
Waypoints to look ahead on the path |