Skip to content

Commit 599760e

Browse files
committed
override ResetMujocoSim in lab_sim to deactivate all controllers
1 parent aa853da commit 599760e

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<root BTCPP_format="4" main_tree_to_execute="Reset MuJoCo Sim">
3+
<!--//////////-->
4+
<BehaviorTree
5+
ID="Reset MuJoCo Sim"
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+
deactivate_controllers="joint_trajectory_admittance_controller;joint_trajectory_controller;velocity_force_controller;servo_controller"
13+
/>
14+
<Action
15+
ID="ResetMujocoKeyframe"
16+
response_timeout="10.000000"
17+
wait_for_server_available_timeout="3.000000"
18+
keyframe_name="default"
19+
/>
20+
</Control>
21+
</BehaviorTree>
22+
<TreeNodesModel>
23+
<SubTree ID="Reset MuJoCo Sim">
24+
<MetadataFields>
25+
<Metadata runnable="true" />
26+
<Metadata subcategory="MuJoCo Simulation" />
27+
</MetadataFields>
28+
</SubTree>
29+
</TreeNodesModel>
30+
</root>

0 commit comments

Comments
 (0)