Go to the documentation of this file.
30 #ifndef RVIZ_MARKER_DISPLAY_H
31 #define RVIZ_MARKER_DISPLAY_H
36 #include <boost/thread/mutex.hpp>
37 #include <boost/shared_ptr.hpp>
44 #include <visualization_msgs/Marker.h>
45 #include <visualization_msgs/MarkerArray.h>
55 class MarkerNamespace;
56 class MarkerSelectionHandler;
62 typedef std::pair<std::string, int32_t>
MarkerID;
79 void update(
float wall_dt,
float ros_dt)
override;
82 void reset()
override;
135 void processMessage(
const visualization_msgs::Marker::ConstPtr& message);
140 void processAdd(
const visualization_msgs::Marker::ConstPtr& message);
145 void processDelete(
const visualization_msgs::Marker::ConstPtr& message);
150 void incomingMarker(
const visualization_msgs::Marker::ConstPtr& marker);
virtual bool getBool() const
void onDisable() override
Derived classes override this to do the actual work of disabling themselves.
Displays "markers" sent in by other ROS nodes on the "visualization_marker" topic.
QHash< QString, MarkerNamespace * > M_Namespace
message_filters::Subscriber< visualization_msgs::Marker > sub_
void update(float wall_dt, float ros_dt) override
Called periodically by the visualization manager.
void processAdd(const visualization_msgs::Marker::ConstPtr &message)
Processes an "Add" marker message.
void reset() override
Called to tell the display to clear its state.
void incomingMarker(const visualization_msgs::Marker::ConstPtr &marker)
ROS callback notifying us of a new marker.
void onEnable() override
Derived classes override this to do the actual work of enabling themselves.
Property specialized to provide getter for booleans.
V_MarkerMessage message_queue_
in our update() function
ros::Subscriber array_sub_
Property * namespaces_category_
MarkerNamespace(const QString &name, Property *parent_property, MarkerDisplay *owner)
std::vector< visualization_msgs::Marker::ConstPtr > V_MarkerMessage
void setTopic(const QString &topic, const QString &datatype) override
Set the ROS topic to listen to for this display.
boost::mutex queue_mutex_
A single element of a property tree, with a name, value, description, and possibly children.
void processMessage(const visualization_msgs::Marker::ConstPtr &message)
Processes a marker message.
void deleteMarker(const MarkerID &id)
std::map< QString, bool > M_EnabledState
void deleteMarkerInternal(const MarkerID &id)
void load(const Config &config) override
Load the value of this property and/or its children from the given Config reference.
boost::shared_ptr< MarkerBase > MarkerBasePtr
~MarkerDisplay() override
M_EnabledState namespace_config_enabled_state_
tf2_ros::MessageFilter< visualization_msgs::Marker > * tf_filter_
void deleteMarkerStatus(const MarkerID &id)
boost::shared_ptr< MarkerSelectionHandler > MarkerSelectionHandlerPtr
virtual void unsubscribe()
Unsubscribes from the "visualization_marker" "visualization_marker_array" topics.
Manager of a single marker namespace. Keeps a hash from marker IDs to MarkerBasePtr,...
void deleteAllMarkers()
Delete all known markers to this plugin, regardless of id or namespace.
M_IDToMarker markers_
Map of marker id to the marker info structure.
std::pair< std::string, int32_t > MarkerID
void clearMarkers()
Removes all the markers.
virtual void subscribe()
Subscribes to the "visualization_marker" and "visualization_marker_array" topics.
S_MarkerBase frame_locked_markers_
RosTopicProperty * marker_topic_property_
void onInitialize() override
Override this function to do subclass-specific initialization.
std::map< MarkerID, MarkerBasePtr > M_IDToMarker
void processDelete(const visualization_msgs::Marker::ConstPtr &message)
Processes a "Delete" marker message.
S_MarkerBase markers_with_expiration_
void failedMarker(const ros::MessageEvent< visualization_msgs::Marker > &marker_evt, tf2_ros::FilterFailureReason reason)
IntProperty * queue_size_property_
void incomingMarkerArray(const visualization_msgs::MarkerArray::ConstPtr &array)
Process a MarkerArray message.
void deleteMarkersInNamespace(const std::string &ns)
Delete all the markers within the given namespace.
void fixedFrameChanged() override
Called by setFixedFrame(). Override to respond to changes to fixed_frame_.
Configuration data storage class.
Property specialized to provide max/min enforcement for integers.
std::set< MarkerBasePtr > S_MarkerBase
void setMarkerStatus(const MarkerID &id, StatusLevel level, const std::string &text)
rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust, William Woodall
autogenerated on Fri Dec 13 2024 03:31:02