File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed
Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ waypoints:
120120 relative : true
121121 traverse_left_1 :
122122 config :
123- - 0.700
123+ - 0.300
124124 planning_group : " rail"
125125 cartesian : false
126126 pre_drop_ctb :
@@ -139,6 +139,18 @@ waypoints:
139139 - 0.000
140140 planning_group : " rail"
141141 cartesian : false
142+ center_ctb :
143+ pose :
144+ x : 0.0
145+ y : -0.25
146+ z : 0.0
147+ qx : 0.0
148+ qy : 0.0
149+ qz : 0.0
150+ qw : 1.0
151+ planning_group : " ur_manipulator"
152+ cartesian : true
153+ relative : true
142154 drop_arm :
143155 pose :
144156 x : 0.0
Original file line number Diff line number Diff line change @@ -277,6 +277,11 @@ class RunDemoNode : public rclcpp::Node
277277 RCLCPP_ERROR (LOGGER, " Failed to traverse to CTB dropoff location. Exiting." );
278278 return ;
279279 }
280+ if (!this ->center_ctb ())
281+ {
282+ RCLCPP_ERROR (LOGGER, " Failed to center CTB in bench. Exiting." );
283+ return ;
284+ }
280285 if (!this ->drop_ctb ())
281286 {
282287 RCLCPP_ERROR (LOGGER, " Failed to lower CTB. Exiting." );
@@ -489,6 +494,12 @@ class RunDemoNode : public rclcpp::Node
489494 return plan_and_execute (wp_map.at (" traverse_left_2" ));
490495 }
491496
497+ bool center_ctb ()
498+ {
499+ RCLCPP_INFO (LOGGER, " Centering CTB in bench." );
500+ return plan_and_execute (wp_map.at (" center_ctb" ));
501+ }
502+
492503 bool drop_ctb ()
493504 {
494505 RCLCPP_INFO (LOGGER, " Dropping CTB." );
You can’t perform that action at this time.
0 commit comments