|
1 | | -<?xml version="1.0" encoding="UTF-8" ?> |
2 | | -<root |
3 | | - BTCPP_format="4" |
4 | | - main_tree_to_execute="MPC Pose Tracking With Point Cloud Avoidance" |
5 | | -> |
| 1 | +<?xml version='1.0' encoding='UTF-8'?> |
| 2 | +<root BTCPP_format="4" main_tree_to_execute="MPC Pose Tracking With Point Cloud Avoidance"> |
6 | 3 | <!--//////////--> |
7 | | - <BehaviorTree |
8 | | - ID="MPC Pose Tracking With Point Cloud Avoidance" |
9 | | - _description="Uses Model Predictive Control (MPC) to track a target pose while avoiding obstacles represented by a point cloud." |
10 | | - _favorite="false" |
11 | | - > |
| 4 | + <BehaviorTree ID="MPC Pose Tracking With Point Cloud Avoidance" _description="Uses Model Predictive Control (MPC) to track a target pose while avoiding obstacles represented by a point cloud." _favorite="true"> |
12 | 5 | <Control ID="Sequence" name="TopLevelSequence"> |
13 | | - <SubTree ID="Clear Snapshot" _collapsed="true" /> |
14 | | - <SubTree |
15 | | - ID="Move to Waypoint" |
16 | | - _collapsed="true" |
17 | | - acceleration_scale_factor="1.0" |
18 | | - controller_action_server="/joint_trajectory_controller/follow_joint_trajectory" |
19 | | - controller_names="joint_trajectory_controller" |
20 | | - joint_group_name="manipulator" |
21 | | - keep_orientation="false" |
22 | | - keep_orientation_tolerance="0.05" |
23 | | - link_padding="0.01" |
24 | | - seed="0" |
25 | | - velocity_scale_factor="1.0" |
26 | | - waypoint_name="Look at Base" |
27 | | - /> |
28 | | - <Action |
29 | | - ID="GetPointCloud" |
30 | | - message_out="{point_cloud}" |
31 | | - timeout_sec="5.000000" |
32 | | - topic_name="/wrist_camera/points" |
33 | | - /> |
34 | | - <Action |
35 | | - ID="CreateStampedPose" |
36 | | - reference_frame="base_link" |
37 | | - stamped_pose="{stamped_pose}" |
38 | | - position_xyz="0.0;0.2;0.0" |
39 | | - /> |
40 | | - <Action |
41 | | - ID="CropPointsInBox" |
42 | | - crop_box_centroid_pose="{stamped_pose}" |
43 | | - point_cloud="{point_cloud}" |
44 | | - point_cloud_cropped="{point_cloud}" |
45 | | - crop_box_size="0.2;0.2;0.2" |
46 | | - /> |
47 | | - <Action |
48 | | - ID="SendPointCloudToUI" |
49 | | - pcd_topic="/pcd_pointcloud_captures" |
50 | | - point_cloud="{point_cloud}" |
51 | | - /> |
52 | | - <SubTree |
53 | | - ID="Move to Waypoint" |
54 | | - _collapsed="true" |
55 | | - acceleration_scale_factor="1.0" |
56 | | - controller_action_server="/joint_trajectory_controller/follow_joint_trajectory" |
57 | | - controller_names="joint_trajectory_controller" |
58 | | - joint_group_name="manipulator" |
59 | | - keep_orientation="false" |
60 | | - keep_orientation_tolerance="0.05" |
61 | | - link_padding="0.01" |
62 | | - seed="0" |
63 | | - velocity_scale_factor="1.0" |
64 | | - waypoint_name="Home" |
65 | | - /> |
66 | | - <Action |
67 | | - ID="CreateStampedPose" |
68 | | - reference_frame="pinch" |
69 | | - stamped_pose="{stamped_pose}" |
70 | | - position_xyz="0;0;0.1" |
71 | | - /> |
72 | | - <Action |
73 | | - ID="TransformPoseFrame" |
74 | | - input_pose="{stamped_pose}" |
75 | | - output_pose="{stamped_pose}" |
76 | | - target_frame_id="world" |
77 | | - /> |
78 | | - <Action |
79 | | - ID="VisualizePose" |
80 | | - marker_lifetime="0.000000" |
81 | | - marker_name="pose" |
82 | | - marker_size="0.100000" |
83 | | - pose="{stamped_pose}" |
84 | | - /> |
85 | | - <Action |
86 | | - ID="CreateStampedTwist" |
87 | | - reference_frame="world" |
88 | | - stamped_twist="{stamped_twist}" |
89 | | - /> |
| 6 | + <SubTree ID="Clear Snapshot" _collapsed="true"/> |
| 7 | + <SubTree ID="Move to Waypoint" _collapsed="true" acceleration_scale_factor="1.0" controller_action_server="/joint_trajectory_controller/follow_joint_trajectory" controller_names="joint_trajectory_controller" joint_group_name="manipulator" keep_orientation="false" keep_orientation_tolerance="0.05" link_padding="0.01" seed="0" velocity_scale_factor="1.0" waypoint_name="Look at Base"/> |
| 8 | + <Action ID="GetPointCloud" message_out="{point_cloud}" timeout_sec="5.000000" topic_name="/wrist_camera/points"/> |
| 9 | + <Action ID="CreateStampedPose" reference_frame="base_link" stamped_pose="{stamped_pose}" position_xyz="0.0;0.2;0.0"/> |
| 10 | + <Action ID="CropPointsInBox" crop_box_centroid_pose="{stamped_pose}" point_cloud="{point_cloud}" point_cloud_cropped="{point_cloud}" crop_box_size="0.2;0.2;0.2"/> |
| 11 | + <Action ID="SendPointCloudToUI" pcd_topic="/pcd_pointcloud_captures" point_cloud="{point_cloud}"/> |
| 12 | + <SubTree ID="Move to Waypoint" _collapsed="true" acceleration_scale_factor="1.0" controller_action_server="/joint_trajectory_controller/follow_joint_trajectory" controller_names="joint_trajectory_controller" joint_group_name="manipulator" keep_orientation="false" keep_orientation_tolerance="0.05" link_padding="0.01" seed="0" velocity_scale_factor="1.0" waypoint_name="Home"/> |
| 13 | + <Action ID="CreateStampedPose" reference_frame="pinch" stamped_pose="{stamped_pose}" position_xyz="0;0.3;0.1"/> |
| 14 | + <Action ID="TransformPoseFrame" input_pose="{stamped_pose}" output_pose="{stamped_pose}" target_frame_id="world"/> |
| 15 | + <Action ID="VisualizePose" marker_lifetime="0.000000" marker_name="pose" marker_size="0.100000" pose="{stamped_pose}"/> |
| 16 | + <Action ID="CreateStampedTwist" reference_frame="world" stamped_twist="{stamped_twist}"/> |
90 | 17 | <Control ID="Fallback"> |
91 | | - <Decorator ID="Timeout" msec="5000"> |
| 18 | + <Decorator ID="Timeout" msec="7000"> |
92 | 19 | <Control ID="Sequence"> |
93 | | - <Action |
94 | | - ID="MPCPointCloudClearance" |
95 | | - differentiable="0" |
96 | | - follow_joint_trajectory_topic="/joint_trajectory_controller/follow_joint_trajectory" |
97 | | - gradient_num_trajectory="32" |
98 | | - gradient_spline_points="1.000000" |
99 | | - horizon="0.1" |
100 | | - planning_group="manipulator" |
101 | | - sampling_control_width="0.015000" |
102 | | - sampling_exploration="0.050000" |
103 | | - sampling_sample_width="0.010000" |
104 | | - sampling_spline_points="10.000000" |
105 | | - set_ctrl_command_to_current_state="true" |
106 | | - timeout="300" |
107 | | - timestep="0.010000" |
108 | | - total_return="{total_return}" |
109 | | - warmup_iterations="256" |
110 | | - cartesian_acceleration="100" |
111 | | - cartesian_acceleration_body="tool_changer" |
112 | | - cartesian_velocity="100" |
113 | | - cartesian_velocity_body="tool_changer" |
114 | | - gripper_site_name="pinch" |
115 | | - link_sites="base_site" |
116 | | - max_cartesian_acceleration_goal="500" |
117 | | - max_cartesian_velocity_goal="0.5" |
118 | | - mujoco_model="description/simple_scene.xml" |
119 | | - mujoco_model_package="lab_sim" |
120 | | - point_cloud="{point_cloud}" |
121 | | - point_cloud_clearance="1.0" |
122 | | - safe_distance="0.25" |
123 | | - site_tracking="1.0" |
124 | | - target_pose="{stamped_pose}" |
125 | | - target_twist="{stamped_twist}" |
126 | | - /> |
| 20 | + <Action ID="MPCPointCloudClearance" differentiable="0" follow_joint_trajectory_topic="/joint_trajectory_controller/follow_joint_trajectory" gradient_num_trajectory="32" gradient_spline_points="1.000000" horizon="0.1" planning_group="manipulator" sampling_control_width="0.015000" sampling_exploration="0.050000" sampling_sample_width="0.010000" sampling_spline_points="10.000000" set_ctrl_command_to_current_state="true" timeout="300" timestep="0.010000" total_return="{total_return}" warmup_iterations="256" cartesian_acceleration="100" cartesian_acceleration_body="tool_changer" cartesian_velocity="100" cartesian_velocity_body="tool_changer" gripper_site_name="pinch" link_sites="base_site" max_cartesian_acceleration_goal="500" max_cartesian_velocity_goal="0.5" mujoco_model="description/simple_scene.xml" mujoco_model_package="lab_sim" point_cloud="{point_cloud}" point_cloud_clearance="1.1" safe_distance="0.25" target_pose="{stamped_pose}" target_twist="{stamped_twist}" site_tracking="0.45"/> |
127 | 21 | </Control> |
128 | 22 | </Decorator> |
129 | | - <Action ID="AlwaysSuccess" /> |
| 23 | + <Action ID="AlwaysSuccess"/> |
130 | 24 | </Control> |
131 | 25 | </Control> |
132 | 26 | </BehaviorTree> |
133 | 27 | <TreeNodesModel> |
134 | 28 | <SubTree ID="MPC Pose Tracking With Point Cloud Avoidance"> |
135 | 29 | <MetadataFields> |
136 | | - <Metadata runnable="true" /> |
137 | | - <Metadata subcategory="Application - MPC Examples" /> |
| 30 | + <Metadata runnable="true"/> |
| 31 | + <Metadata subcategory="Application - MPC Examples"/> |
138 | 32 | </MetadataFields> |
139 | 33 | </SubTree> |
140 | 34 | </TreeNodesModel> |
|
0 commit comments