We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a66b4d4 commit 25d94f3Copy full SHA for 25d94f3
planning/freespace_planning_algorithms/src/astar_search.cpp
@@ -292,6 +292,17 @@ void AstarSearch::setPath(const AstarNode & goal_node)
292
// From the goal node to the start node
293
const AstarNode * node = &goal_node;
294
295
+ // push exact goal pose first
296
+ geometry_msgs::msg::PoseStamped pose;
297
+ pose.header = header;
298
+ pose.pose = local2global(costmap_, goal_pose_);
299
+
300
+ PlannerWaypoint pw;
301
+ pw.pose = pose;
302
+ pw.is_back = node->is_back;
303
+ waypoints_.waypoints.push_back(pw);
304
305
+ // push astar nodes poses
306
while (node != nullptr) {
307
geometry_msgs::msg::PoseStamped pose;
308
pose.header = header;
0 commit comments