Go to the documentation of this file.
38 #include <OgreSharedPtr.h>
39 #include <OgreVector3.h>
55 , panel_display_(nullptr)
56 , palette_loader_(
"robot_nav_rviz_plugins",
"robot_nav_rviz_plugins::NavGridPalette")
61 QString::fromStdString(data_type), QString::fromStdString(data_type + std::string(
" topic to subscribe to.")),
65 "Amount of transparency to apply to the map.",
74 "Rendering option, controls whether or not the map is always"
75 " drawn behind everything else.",
88 "Prefer UDP topic transport",
92 if (include_ignore_property)
126 std::string name = palette->getName();
212 std::stringstream ss;
213 ss <<
"Map is zero-sized (" << info.
width <<
"x" << info.
height <<
")";
307 "No transform from [" + QString::fromStdString(frame) +
"] to [" +
fixed_frame_ +
"]");
rviz::EnumProperty * color_scheme_property_
virtual int getOptionInt()
virtual void queueRender()=0
Several reusable pieces for displaying polygons.
pluginlib::ClassLoader< NavGridPalette > palette_loader_
bool validateFloats(const nav_grid::NavGridInfo &info)
bool setValue(const QVariant &new_value) override
virtual void onUnsubscribe()
Actual unsubscription logic, called by unsubscribe.
void unsubscribe()
Called to trigger unsubscribing.
NavGridInfo getInfo() const
virtual void setString(const QString &str)
void update(float wall_dt, float ros_dt) override
void mapUpdated(const nav_core2::UIntBounds &updated_bounds)
Custom signal emitted when new map data is received.
rviz::FloatProperty * alpha_property_
void onInitialize() override
virtual QVariant getValue() const
rviz::IntProperty * width_property_
std::vector< std::string > color_scheme_names_
virtual void onSubscribe(const std::string &topic)
Actual subscription logic, called by subscribe.
NavGridDisplay(const std::string &data_type, bool include_ignore_property=false)
Constructor for the display.
nav_grid::NavGridInfo cached_info_
bool setValue(const QVariant &new_value) override
virtual void setStatus(StatusProperty::Level level, const QString &name, const QString &text)
virtual ~NavGridDisplay()
virtual void updateIgnoreType()
nav_grid::VectorNavGrid< unsigned char > panel_data_
virtual float getFloat() const
virtual void addOption(const QString &option, int value=0)
Ogre::SceneNode * scene_node_
std::enable_if<!QtPrivate::FunctionPointer< Func >::IsPointerToMemberFunction, QMetaObject::Connection >::type connect(const QObject *context, Func &&slot, Qt::ConnectionType type=Qt::AutoConnection)
rviz::BoolProperty * unreliable_property_
rviz::FloatProperty * ignore_property_
void subscribe()
Called to trigger subscription, handles empty topics setting status.
Ogre::SceneManager * scene_manager_
virtual FrameManager * getFrameManager() const=0
OgrePanel::Ptr panel_display_
std::string getTopicStd() const
std::string getFrameId() const
void showMap(const nav_core2::UIntBounds &updated_bounds)
void transformMap()
Put the map in its proper place.
rviz::BoolProperty * draw_behind_property_
DisplayContext * context_
void clear()
Clear the data and remove the objects from the screen.
virtual void setReadOnly(bool read_only)
IgnoreType getIgnoreType() const
rviz::IntProperty * height_property_
void onDisable() override
rviz::RosTopicProperty * topic_property_
void fixedFrameChanged() override
rviz::FloatProperty * resolution_property_
virtual void updateIgnore()
rviz::EnumProperty * ignore_type_property_
void setTopic(const QString &topic, const QString &datatype) override