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