Add start position to motion planning

This commit is contained in:
2022-12-21 12:15:27 +02:00
parent e980579365
commit 699aa4fba0

View File

@@ -53,6 +53,7 @@ public:
std::vector<geometry_msgs::msg::Pose> waypoints; std::vector<geometry_msgs::msg::Pose> waypoints;
waypoints.push_back(move_group.getCurrentPose().pose);
for (auto p : goal->motion.path) for (auto p : goal->motion.path)
waypoints.push_back(p.pose); waypoints.push_back(p.pose);