Skip to content

Commit

Permalink
PointStampedDisplay: Ignore incoming messages if disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Aug 8, 2022
1 parent 95189c1 commit 7836a13
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rviz/default_plugin/point_display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ void PointStampedDisplay::updateHistoryLength()
// This is our callback to handle an incoming message.
void PointStampedDisplay::processMessage(const geometry_msgs::PointStamped::ConstPtr& msg)
{
if (!isEnabled())
return;

if (!rviz::validateFloats(msg->point))
{
setStatus(rviz::StatusProperty::Error, "Topic",
Expand Down

0 comments on commit 7836a13

Please sign in to comment.