Skip to content

Commit a6d5913

Browse files
authored
Merge pull request #441 from PickNikRobotics/reset-keyframe-fix
update kinova_sim reset sim Objective to disable controllers
2 parents 7d2fad3 + 515d2e7 commit a6d5913

File tree

2 files changed

+36
-3
lines changed

2 files changed

+36
-3
lines changed

src/moveit_pro_kinova_configs/kinova_sim/config/config.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,6 @@ objectives:
168168
perception_objectives:
169169
package_name: "moveit_pro_objectives"
170170
relative_path: "objectives/perception"
171-
mujoco_objectives:
172-
package_name: "moveit_pro_objectives"
173-
relative_path: "objectives/mujoco"
174171
visualization_objectives:
175172
package_name: "moveit_pro_objectives"
176173
relative_path: "objectives/visualization"
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)