Skip to content

Commit f01c0a7

Browse files
authored
Merge pull request #445 from PickNikRobotics/merge89main
Merge v8.9 into main
2 parents 6ddf5ac + b1e4321 commit f01c0a7

File tree

11 files changed

+81
-8
lines changed

11 files changed

+81
-8
lines changed

src/factory_sim/config/config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@ objectives:
146146
perception_objectives:
147147
package_name: "moveit_pro_objectives"
148148
relative_path: "objectives/perception"
149+
visualization_objectives:
150+
package_name: "moveit_pro_objectives"
151+
relative_path: "objectives/visualization"
149152
sim_objectives:
150153
package_name: "factory_sim"
151154
relative_path: "objectives"

src/grinding_sim/config/config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ objectives:
137137
perception_objectives:
138138
package_name: "moveit_pro_objectives"
139139
relative_path: "objectives/perception"
140+
visualization_objectives:
141+
package_name: "moveit_pro_objectives"
142+
relative_path: "objectives/visualization"
140143
sim_objectives:
141144
package_name: "grinding_sim"
142145
relative_path: "objectives"

src/lab_sim/objectives/move_along_square.xml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
12
<root BTCPP_format="4" main_tree_to_execute="Move Along Square">
2-
<!-- ////////// -->
3+
<!--//////////-->
34
<BehaviorTree ID="Move Along Square" _description="Move along a square path">
45
<Control ID="Sequence">
56
<Action
67
ID="InitializeMTCTask"
78
controller_names="joint_trajectory_controller"
89
task="{mtc_task}"
910
task_id="move_along_axis"
11+
timeout="-1.000000"
12+
trajectory_monitoring="false"
1013
/>
1114
<Action ID="SetupMTCCurrentState" task="{mtc_task}" />
1215
<Action
1316
ID="SetupMTCMoveAlongFrameAxis"
1417
acceleration_scale="1.0"
1518
axis_frame="world"
16-
axis_y="0.0"
17-
axis_z="1.0"
19+
axis_y="1.0"
20+
axis_z="0.0"
1821
hand_frame="tool0"
1922
ignore_environment_collisions="false"
2023
max_distance="0.2"
@@ -43,8 +46,8 @@
4346
ID="SetupMTCMoveAlongFrameAxis"
4447
acceleration_scale="1.0"
4548
axis_frame="world"
46-
axis_y="0.0"
47-
axis_z="-1.0"
49+
axis_y="-1.0"
50+
axis_z="0.0"
4851
hand_frame="tool0"
4952
ignore_environment_collisions="false"
5053
max_distance="0.2"

src/lab_sim/objectives/octomap_example.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,17 @@
2525
pcd_topic="/pcd_pointcloud_captures"
2626
point_cloud="{point_cloud}"
2727
/>
28+
<Action
29+
ID="LogMessage"
30+
log_level="info"
31+
message="Click Resume to reset the octomap and finish the Behavior"
32+
/>
33+
<!--Clear the Octomap at the end to avoid interfering with other Behaviors-->
34+
<Action
35+
ID="BreakpointSubscriber"
36+
breakpoint_topic="/moveit_pro_breakpoint"
37+
/>
38+
<SubTree ID="Clear Snapshot" _collapsed="true" />
2839
</Control>
2940
</BehaviorTree>
3041
<TreeNodesModel>

src/lab_sim/objectives/record_square_trajectory.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,27 @@
3333
keep_orientation_tolerance="0.05"
3434
link_padding="0.01"
3535
velocity_scale_factor="1.0"
36-
waypoint_name="Flask 3a - Pre Pick"
36+
waypoint_name="Look at Base"
37+
seed="0"
3738
/>
3839
<Action
3940
ID="CallTriggerService"
4041
service_name="/start_recording_joint_trajectory"
42+
response_timeout="3.000000"
43+
wait_for_server_available_timeout="3.000000"
4144
/>
4245
<SubTree ID="Move Along Square" _collapsed="true" />
4346
<Action
4447
ID="CallTriggerService"
4548
service_name="/stop_recording_joint_trajectory"
49+
response_timeout="3.000000"
50+
wait_for_server_available_timeout="3.000000"
4651
/>
4752
<Action
4853
ID="SaveJointTrajectoryToYaml"
4954
message="{joint_trajectory_msg}"
5055
yaml_filename="~/user_ws/src/lab_sim/objectives/square_traj"
56+
overwrite="true"
5157
/>
5258
</Control>
5359
</Control>

src/lab_sim/test/objectives_integration_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@
7676
"Inspector",
7777
"Pick 1 Pill Bottle",
7878
"AddBottlesToPlanningScene",
79+
"Interactive Marker Visualization", # Server not available for GetTextFromUser
80+
"Octomap Example", # Requires user input to clear the octomap.
7981
}
8082

8183

src/moveit_pro_franka_configs/dual_arm_sim/config/config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ objectives:
108108
perception_objectives:
109109
package_name: "moveit_pro_objectives"
110110
relative_path: "objectives/perception"
111+
visualization_objectives:
112+
package_name: "moveit_pro_objectives"
113+
relative_path: "objectives/visualization"
111114
custom_objectives:
112115
package_name: "dual_arm_sim"
113116
relative_path: "objectives"

src/moveit_pro_franka_configs/kitchen_sim/config/config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ objectives:
6565
perception_objectives:
6666
package_name: "moveit_pro_objectives"
6767
relative_path: "objectives/perception"
68+
visualization_objectives:
69+
package_name: "moveit_pro_objectives"
70+
relative_path: "objectives/visualization"
6871
sim_objectives:
6972
package_name: "kitchen_sim"
7073
relative_path: "objectives"

src/moveit_pro_kinova_configs/kinova_sim/config/config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ objectives:
168168
perception_objectives:
169169
package_name: "moveit_pro_objectives"
170170
relative_path: "objectives/perception"
171-
mujoco_objectives:
171+
visualization_objectives:
172172
package_name: "moveit_pro_objectives"
173-
relative_path: "objectives/mujoco"
173+
relative_path: "objectives/visualization"
174174
sim_objectives:
175175
package_name: "kinova_sim"
176176
relative_path: "objectives"
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<root BTCPP_format="4" main_tree_to_execute="Reset Simulation">
3+
<!--//////////-->
4+
<BehaviorTree
5+
ID="Reset Simulation"
6+
_description="Reset the MuJoCo simulation to the `default` keyframe (if specified in the mujoco model)."
7+
_favorite="false"
8+
>
9+
<Control ID="Sequence" name="TopLevelSequence">
10+
<Action
11+
ID="SwitchController"
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+
deactivate_controllers="joint_trajectory_controller;servo_controller;velocity_force_controller;joint_trajectory_admittance_controller"
19+
/>
20+
<Action
21+
ID="ResetMujocoKeyframe"
22+
response_timeout="10.000000"
23+
wait_for_server_available_timeout="3.000000"
24+
keyframe_name="default"
25+
/>
26+
</Control>
27+
</BehaviorTree>
28+
<TreeNodesModel>
29+
<SubTree ID="Reset Simulation">
30+
<MetadataFields>
31+
<Metadata runnable="true" />
32+
<Metadata subcategory="MuJoCo Simulation" />
33+
</MetadataFields>
34+
</SubTree>
35+
</TreeNodesModel>
36+
</root>

0 commit comments

Comments
 (0)