Skip to content

Commit 20d5529

Browse files
authored
Merge pull request #439 from PickNikRobotics/record-traj-wp
Moved waypoint and planes for square trajectory
2 parents 418c953 + 1f7ed35 commit 20d5529

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

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/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>

0 commit comments

Comments
 (0)