Skip to content

Commit

Permalink
fix(mission_planner): keep uuid when rerouting with modified goal (au…
Browse files Browse the repository at this point in the history
…towarefoundation#3956)

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
  • Loading branch information
kosuke55 authored Jun 13, 2023
1 parent 07f8de7 commit f09e575
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,10 @@ void MissionPlanner::on_modified_goal(const ModifiedGoal::Message::ConstSharedPt
change_state(RouteState::Message::CHANGING);

const std::vector<geometry_msgs::msg::Pose> empty_waypoints;
const auto new_route =
auto new_route =
create_route(msg->header, empty_waypoints, msg->pose, normal_route_->allow_modification);
// create_route generate new uuid, so set the original uuid again to keep that.
new_route.uuid = msg->uuid;
if (new_route.segments.empty()) {
change_route(*normal_route_);
change_state(RouteState::Message::SET);
Expand Down

0 comments on commit f09e575

Please sign in to comment.