Skip to content

Commit

Permalink
RobotModelDisplay: clear statuses when (re)loading a model (#1296)
Browse files Browse the repository at this point in the history
... otherwise spurious status msgs remain from a previous model
  • Loading branch information
rhaschke committed Feb 17, 2019
1 parent 75f5967 commit 0a3dceb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rviz/default_plugin/robot_model_display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ void RobotModelDisplay::updateTfPrefix()

void RobotModelDisplay::load()
{
clearStatuses();

std::string content;
if( !update_nh_.getParam( robot_description_property_->getStdString(), content ))
{
Expand Down

0 comments on commit 0a3dceb

Please sign in to comment.