Skip to content

Commit 3b9531f

Browse files
committed
Fix: last pose of plan was not transformed to the map frame
1 parent edddc8d commit 3b9531f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cvp_mesh_planner/src/cvp_mesh_planner.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,10 @@ uint32_t CVPMeshPlanner::makePlan(const geometry_msgs::msg::PoseStamped& start,
107107
plan.push_back(pose);
108108
}
109109

110+
// Add the goal pose with correct orientation to the plan
110111
geometry_msgs::msg::PoseStamped pose;
111112
pose.header = header;
112-
pose.pose = goal.pose;
113+
pose.pose = goal_in_map.pose;
113114
plan.push_back(pose);
114115
}
115116

0 commit comments

Comments
 (0)