Skip to content

Commit

Permalink
GridCells: implement setTopic() (#1722)
Browse files Browse the repository at this point in the history
  • Loading branch information
qisongH authored Mar 10, 2022
1 parent 0462dd2 commit 16df936
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/rviz/default_plugin/grid_cells_display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,11 @@ void GridCellsDisplay::reset()
clear();
}

void GridCellsDisplay::setTopic(const QString& topic, const QString& /*datatype*/)
{
topic_property_->setString(topic);
}

} // namespace rviz

#include <pluginlib/class_list_macros.hpp>
Expand Down
2 changes: 2 additions & 0 deletions src/rviz/default_plugin/grid_cells_display.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ class GridCellsDisplay : public Display
void fixedFrameChanged() override;
void reset() override;

void setTopic(const QString& topic, const QString& datatype) override;

protected:
// overrides from Display
void onEnable() override;
Expand Down

0 comments on commit 16df936

Please sign in to comment.