Skip to content

Commit

Permalink
Not cancelling after receiving a 0-length path works better apparently
Browse files Browse the repository at this point in the history
  • Loading branch information
LoyVanBeek committed May 4, 2022
1 parent d9f2908 commit f947ad7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/path_tracker_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,19 +149,19 @@ int main(int argc, char *argv[])
else
{
ROS_WARN_STREAM("Ignoring sliced SegmentPath of length " << sliced_path.size());
if (has_plan)
{
tplp->cancel();
}
// if (has_plan)
// {
// tplp->cancel();
// }
}
}
else
{
ROS_WARN_STREAM("Ignoring SegmentPath of length " << path->waypoints.poses.size());
if(has_plan)
{
tplp->cancel();
}
// if(has_plan)
// {
// tplp->cancel();
// }
}
};
auto segment_sub = nh.subscribe<amr_road_network_msgs::SegmentPath>("segment_path", 1, receiveSegmentPath);
Expand Down

0 comments on commit f947ad7

Please sign in to comment.