Skip to content

Commit 296eab1

Browse files
authored
Merge pull request #9 from NASA-JSC-Robotics/update-waypoints
updated waypoints to avoid ctb contact with trainer frame in sim
2 parents d970919 + 52f5dab commit 296eab1

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

clr_pick_and_place_demo/config/waypoints.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff 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

clr_pick_and_place_demo/src/run_demo.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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.");

0 commit comments

Comments
 (0)