Skip to content

Commit

Permalink
Handle invalid floats in points of arrow marker (#1471)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke authored Feb 9, 2020
1 parent de383ee commit 6bf5975
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rviz/default_plugin/marker_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,10 @@ void checkPointsArrow(const visualization_msgs::Marker& marker, std::stringstrea
addSeparatorIfRequired(ss);
ss << "Number of points for an ARROW marker should be either 0 or 2.";
increaseLevel(::ros::console::levels::Error, level);
return;
}
for (const auto& p : marker.points)
checkFloats(p, ss, level);
}

void checkPointsNotEmpty(const visualization_msgs::Marker& marker, std::stringstream& ss, ::ros::console::levels::Level& level)
Expand Down

0 comments on commit 6bf5975

Please sign in to comment.