Skip to content

Commit cf1192a

Browse files
Merge branch 'main' into bilal_henry_hackathon_2025
2 parents 1af2800 + 3d4f445 commit cf1192a

File tree

61 files changed

+2833
-1137
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+2833
-1137
lines changed

src/factory_sim/objectives/plan_and_execute_with_orientation_samples.xml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,22 @@
7070
controller_names="{controller_names}"
7171
task="{mtc_task}"
7272
trajectory_monitoring="false"
73+
timeout="-1.000000"
7374
/>
7475
<Action ID="SetupMTCCurrentState" task="{mtc_task}" />
7576
<Action
76-
ID="SetupMTCConnectWithTrajectory"
77-
constraints="{constraints}"
78-
planner_interface="pro_rrt"
79-
planning_group_name="{joint_group_name}"
77+
ID="SetupMTCConnectWithProRRT"
78+
acceleration_scale_factor="1.000000"
79+
keep_orientation="false"
80+
keep_orientation_link_names="grasp_link"
81+
keep_orientation_tolerance="0.100000"
82+
link_padding="0.000000"
83+
max_iterations="5000"
84+
planning_group_name="manipulator"
85+
seed="0"
8086
task="{mtc_task}"
87+
trajectory_sampling_rate="100"
88+
velocity_scale_factor="1.000000"
8189
/>
8290
<Action
8391
ID="SetupMTCBatchPoseIK"
@@ -152,6 +160,7 @@
152160
keep_orientation_tolerance="0.05"
153161
link_padding="0.01"
154162
velocity_scale_factor="1.0"
163+
seed="0"
155164
/>
156165
</Control>
157166
</Decorator>

src/factory_sim/objectives/plan_and_execute_with_world_vertical_orientation.xml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,23 @@
66
_description="Free space plan to an approach pose then free space plan to a target pose with optional orientation constraints. With orientation constraints the gripper will maintain its orientation relative to the world vertical axis when moving from the approach to target pose."
77
>
88
<Control ID="Sequence" name="Plan to approach then target">
9-
<Action ID="SwitchController" activate_controllers="{controller_names}" />
9+
<Action
10+
ID="SwitchController"
11+
activate_controllers="{controller_names}"
12+
activate_asap="true"
13+
automatic_deactivation="true"
14+
controller_list_action_name="/controller_manager/list_controllers"
15+
controller_switch_action_name="/controller_manager/switch_controller"
16+
strictness="1"
17+
timeout="-1.000000"
18+
/>
1019
<Action
1120
ID="InitializeMTCTask"
1221
controller_names="{controller_names}"
1322
task="{mtc_task}"
1423
task_id="move_to_pose"
1524
trajectory_monitoring="false"
25+
timeout="-1.000000"
1626
/>
1727
<Action ID="SetupMTCCurrentState" task="{mtc_task}" />
1828
<Action
@@ -94,6 +104,7 @@
94104
keep_orientation_tolerance="0.05"
95105
link_padding="0.01"
96106
velocity_scale_factor="1.0"
107+
seed="0"
97108
/>
98109
</Control>
99110
</Decorator>

src/factory_sim/objectives/plan_path_along_surface.xml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,18 @@
121121
/>
122122
<Action ID="SetupMTCCurrentState" task="{mtc_task}" />
123123
<Action
124-
ID="SetupMTCConnectWithTrajectory"
125-
planner_interface="pro_rrt"
124+
ID="SetupMTCConnectWithProRRT"
125+
acceleration_scale_factor="1.000000"
126+
keep_orientation="false"
127+
keep_orientation_link_names="grasp_link"
128+
keep_orientation_tolerance="0.100000"
129+
link_padding="0.000000"
130+
max_iterations="5000"
126131
planning_group_name="manipulator"
132+
seed="0"
127133
task="{mtc_task}"
128-
constraints="{constraints}"
134+
trajectory_sampling_rate="100"
135+
velocity_scale_factor="1.000000"
129136
/>
130137
<Action
131138
ID="SetupMTCBatchPoseIK"

src/factory_sim/objectives/reachability_analysis_-_blocks.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
12
<root BTCPP_format="4" main_tree_to_execute="Reachability Analysis - blocks">
23
<!--//////////-->
34
<BehaviorTree

src/grinding_sim/description/scene.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@
398398

399399
<keyframe>
400400
<key
401-
name="retract"
401+
name="default"
402402
qpos="1.57055 -0.999904 -1.80019 -2.45625 -1.57086 -3.14161 0.0256934"
403403
ctrl="1.57055 -0.999904 -1.80019 -2.45625 -1.57086 -3.14161 115"
404404
/>

src/hangar_sim/objectives/move_boxes_to_loading_zone_from_waypoint.xml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@
215215
task="{task}"
216216
task_id=""
217217
trajectory_monitoring="false"
218+
timeout="-1.000000"
218219
/>
219220
<Action ID="SetupMTCCurrentState" task="{task}" />
220221
<Action
@@ -225,11 +226,18 @@
225226
task="{task}"
226227
/>
227228
<Action
228-
ID="SetupMTCConnectWithTrajectory"
229-
constraints="{constraints}"
230-
planner_interface="pro_rrt"
229+
ID="SetupMTCConnectWithProRRT"
230+
acceleration_scale_factor="1.000000"
231+
keep_orientation="false"
232+
keep_orientation_link_names="grasp_link"
233+
keep_orientation_tolerance="0.100000"
234+
link_padding="0.000000"
235+
max_iterations="5000"
231236
planning_group_name="manipulator"
237+
seed="0"
232238
task="{task}"
239+
trajectory_sampling_rate="100"
240+
velocity_scale_factor="1.000000"
233241
/>
234242
<Action
235243
ID="SetupMTCMoveAlongFrameAxis"

src/lab_sim/config/config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,13 @@ objectives:
4747
- "moveit_studio::behaviors::ServoBehaviorsLoader"
4848
- "moveit_studio::behaviors::VisionBehaviorsLoader"
4949
- "moveit_studio::behaviors::ConverterBehaviorsLoader"
50+
- "moveit_studio::behaviors::MujocoBehaviorsLoader"
5051
# Specify source folder for objectives
5152
# [Required]
5253
objective_library_paths:
54+
mujoco_objectives:
55+
package_name: "moveit_pro_objectives"
56+
relative_path: "objectives/mujoco"
5357
sim_objectives:
5458
package_name: "lab_sim"
5559
relative_path: "objectives"

src/lab_sim/description/scene.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373

7474
<keyframe>
7575
<key
76+
name="default"
7677
qpos="-1.168 0.776711 0.469754 1 5.72696e-06 -4.26533e-08 -9.38821e-05 -1.34591 1.07777 0.902167 1 -2.70778e-08 7.60222e-07 -8.18971e-05 -1.1503 1.07777 0.902163 -0.873311 -1.32611e-06 -2.31428e-06 -0.487163 -0.871046 0.729603 0.473006 -0.839083 -3.76738e-06 -5.23752e-06 -0.544003 -0.699998 0.85 0.472753 -0.759699 6.25044e-07 1.49157e-06 -0.650275 -0.5 0.69 0.472779 -0.75966 -8.69884e-06 3.09906e-06 -0.65032 -0.360001 0.609999 0.472778 -0.759663 -6.29279e-06 3.61581e-06 -0.650317 -0.299999 0.7 0.472779 -0.75966 -5.34077e-06 1.33814e-06 -0.65032 -3.70361e-09 0.9 0.47375 -0.839072 -1.82055e-05 -5.31435e-05 0.544021 -0.1 0.85 0.47375 0.283662 4.83891e-05 2.85336e-05 -0.958924 0.0952783 0.840677 0.47375 -0.852936 4.00776e-05 -3.93632e-05 -0.522015 0.2 0.75 0.498669 1 3.49711e-17 2.9976e-18 1.51884e-30 1.73912e-05 0.749992 0.498669 1 0.00016562 0.000360588 4.6626e-11 -0.2 0.75 0.498669 1 2.94315e-17 -7.92697e-18 -4.14434e-30 1.56909e-06 -3.71262e-07 -1.88491 1.10086 -1.25647 -1.57075 -3.63345e-07 0.0525545 0.000140183 0.0525603 -0.050625 0.0525545 0.000140184 0.0525567 -0.0506181"
7778
qvel="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0"
7879
ctrl="0 -1.8849 1.0997 -1.2566 -1.57075 0 0 0"

src/lab_sim/objectives/3_waypoint_pick_and_place.xml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,19 @@
1313
waypoint_name="Look at Table"
1414
joint_group_name="manipulator"
1515
controller_names="joint_trajectory_controller"
16+
acceleration_scale_factor="1.0"
17+
controller_action_server="/joint_trajectory_controller/follow_joint_trajectory"
18+
keep_orientation="false"
19+
keep_orientation_tolerance="0.05"
20+
link_padding="0.01"
21+
seed="0"
22+
velocity_scale_factor="1.0"
1623
/>
1724
<Action
1825
ID="MoveGripperAction"
1926
gripper_command_action_name="/robotiq_gripper_controller/gripper_cmd"
2027
position="0"
28+
timeout="10.000000"
2129
/>
2230
<!--Run pick and place on loop-->
2331
<Decorator ID="KeepRunningUntilFailure">
@@ -29,34 +37,64 @@
2937
waypoint_name="Pick Cube"
3038
joint_group_name="manipulator"
3139
controller_names="joint_trajectory_controller"
40+
acceleration_scale_factor="1.0"
41+
controller_action_server="/joint_trajectory_controller/follow_joint_trajectory"
42+
keep_orientation="false"
43+
keep_orientation_tolerance="0.05"
44+
link_padding="0.01"
45+
seed="0"
46+
velocity_scale_factor="1.0"
3247
/>
3348
<Action
3449
ID="MoveGripperAction"
3550
gripper_command_action_name="/robotiq_gripper_controller/gripper_cmd"
3651
position="0.7929"
52+
timeout="10.000000"
3753
/>
3854
<SubTree
3955
ID="Move to Waypoint"
4056
waypoint_name="Look at Table"
4157
joint_group_name="manipulator"
4258
controller_names="joint_trajectory_controller"
59+
acceleration_scale_factor="1.0"
60+
controller_action_server="/joint_trajectory_controller/follow_joint_trajectory"
61+
keep_orientation="false"
62+
keep_orientation_tolerance="0.05"
63+
link_padding="0.01"
64+
seed="0"
65+
velocity_scale_factor="1.0"
4366
/>
4467
<SubTree
4568
ID="Move to Waypoint"
4669
joint_group_name="manipulator"
4770
controller_names="joint_trajectory_controller"
4871
waypoint_name="Place Cube"
72+
acceleration_scale_factor="1.0"
73+
controller_action_server="/joint_trajectory_controller/follow_joint_trajectory"
74+
keep_orientation="false"
75+
keep_orientation_tolerance="0.05"
76+
link_padding="0.01"
77+
seed="0"
78+
velocity_scale_factor="1.0"
4979
/>
5080
<Action
5181
ID="MoveGripperAction"
5282
gripper_command_action_name="/robotiq_gripper_controller/gripper_cmd"
5383
position="0"
84+
timeout="10.000000"
5485
/>
5586
<SubTree
5687
ID="Move to Waypoint"
5788
waypoint_name="Look at Table"
5889
joint_group_name="manipulator"
5990
controller_names="joint_trajectory_controller"
91+
acceleration_scale_factor="1.0"
92+
controller_action_server="/joint_trajectory_controller/follow_joint_trajectory"
93+
keep_orientation="false"
94+
keep_orientation_tolerance="0.05"
95+
link_padding="0.01"
96+
seed="0"
97+
velocity_scale_factor="1.0"
6098
/>
6199
</Control>
62100
<!--Pick object from where it was placed, put it down on the original location, and go back to center pose-->
@@ -66,34 +104,64 @@
66104
waypoint_name="Place Cube"
67105
joint_group_name="manipulator"
68106
controller_names="joint_trajectory_controller"
107+
acceleration_scale_factor="1.0"
108+
controller_action_server="/joint_trajectory_controller/follow_joint_trajectory"
109+
keep_orientation="false"
110+
keep_orientation_tolerance="0.05"
111+
link_padding="0.01"
112+
seed="0"
113+
velocity_scale_factor="1.0"
69114
/>
70115
<Action
71116
ID="MoveGripperAction"
72117
gripper_command_action_name="/robotiq_gripper_controller/gripper_cmd"
73118
position="0.7929"
119+
timeout="10.000000"
74120
/>
75121
<SubTree
76122
ID="Move to Waypoint"
77123
waypoint_name="Look at Table"
78124
joint_group_name="manipulator"
79125
controller_names="joint_trajectory_controller"
126+
acceleration_scale_factor="1.0"
127+
controller_action_server="/joint_trajectory_controller/follow_joint_trajectory"
128+
keep_orientation="false"
129+
keep_orientation_tolerance="0.05"
130+
link_padding="0.01"
131+
seed="0"
132+
velocity_scale_factor="1.0"
80133
/>
81134
<SubTree
82135
ID="Move to Waypoint"
83136
waypoint_name="Pick Cube"
84137
joint_group_name="manipulator"
85138
controller_names="joint_trajectory_controller"
139+
acceleration_scale_factor="1.0"
140+
controller_action_server="/joint_trajectory_controller/follow_joint_trajectory"
141+
keep_orientation="false"
142+
keep_orientation_tolerance="0.05"
143+
link_padding="0.01"
144+
seed="0"
145+
velocity_scale_factor="1.0"
86146
/>
87147
<Action
88148
ID="MoveGripperAction"
89149
gripper_command_action_name="/robotiq_gripper_controller/gripper_cmd"
90150
position="0"
151+
timeout="10.000000"
91152
/>
92153
<SubTree
93154
ID="Move to Waypoint"
94155
waypoint_name="Look at Table"
95156
joint_group_name="manipulator"
96157
controller_names="joint_trajectory_controller"
158+
acceleration_scale_factor="1.0"
159+
controller_action_server="/joint_trajectory_controller/follow_joint_trajectory"
160+
keep_orientation="false"
161+
keep_orientation_tolerance="0.05"
162+
link_padding="0.01"
163+
seed="0"
164+
velocity_scale_factor="1.0"
97165
/>
98166
</Control>
99167
</Control>

0 commit comments

Comments
 (0)