Go to the documentation of this file.
30 #ifndef RVIZ_INTERACTIVE_MARKER_DISPLAY_H
31 #define RVIZ_INTERACTIVE_MARKER_DISPLAY_H
36 #include <visualization_msgs/InteractiveMarker.h>
37 #include <visualization_msgs/InteractiveMarkerUpdate.h>
38 #include <visualization_msgs/InteractiveMarkerInit.h>
54 class RosTopicProperty;
58 typedef std::pair<std::string, int32_t>
MarkerID;
72 void update(
float wall_dt,
float ros_dt)
override;
76 void reset()
override;
90 void publishFeedback(visualization_msgs::InteractiveMarkerFeedback& feedback);
100 void initCb(
const visualization_msgs::InteractiveMarkerInitConstPtr& msg);
101 void updateCb(
const visualization_msgs::InteractiveMarkerUpdateConstPtr& msg);
103 void resetCb(
const std::string& server_id);
106 const std::string& server_id,
107 const std::string& msg);
110 const std::vector<visualization_msgs::InteractiveMarker>& markers);
113 const std::vector<visualization_msgs::InteractiveMarkerPose>& marker_poses);
115 void eraseMarkers(
const std::string& server_id,
const std::vector<std::string>& names);
118 void processMarkerChanges(
const std::vector<visualization_msgs::InteractiveMarker>* markers =
nullptr,
119 const std::vector<visualization_msgs::InteractiveMarkerPose>* poses =
nullptr,
120 const std::vector<std::string>* erases =
nullptr);
void onStatusUpdate(StatusProperty::Level level, const std::string &name, const std::string &text)
Displays Interactive Markers.
void onEnable() override
Derived classes override this to do the actual work of enabling themselves.
BoolProperty * show_descriptions_property_
void setTopic(const QString &topic, const QString &datatype) override
Set the ROS topic to listen to for this display.
void eraseMarkers(const std::string &server_id, const std::vector< std::string > &names)
Property specialized to provide getter for booleans.
boost::shared_ptr< interactive_markers::InteractiveMarkerClient > im_client_
void updateCb(const visualization_msgs::InteractiveMarkerUpdateConstPtr &msg)
void updateMarkers(const std::string &server_id, const std::vector< visualization_msgs::InteractiveMarker > &markers)
void statusCb(interactive_markers::InteractiveMarkerClient::StatusT, const std::string &server_id, const std::string &msg)
void fixedFrameChanged() override
Called by setFixedFrame(). Override to respond to changes to fixed_frame_.
M_StringToIMPtr & getImMap(const std::string &server_id)
void initCb(const visualization_msgs::InteractiveMarkerInitConstPtr &msg)
BoolProperty * show_axes_property_
void updatePoses(const std::string &server_id, const std::vector< visualization_msgs::InteractiveMarkerPose > &marker_poses)
BoolProperty * show_visual_aids_property_
void onDisable() override
Derived classes override this to do the actual work of disabling themselves.
void processMarkerChanges(const std::vector< visualization_msgs::InteractiveMarker > *markers=nullptr, const std::vector< visualization_msgs::InteractiveMarkerPose > *poses=nullptr, const std::vector< std::string > *erases=nullptr)
BoolProperty * enable_transparency_property_
boost::shared_ptr< MarkerBase > MarkerBasePtr
void publishFeedback(visualization_msgs::InteractiveMarkerFeedback &feedback)
void updateShowDescriptions()
void update(float wall_dt, float ros_dt) override
Called periodically by the visualization manager.
std::map< std::string, IMPtr > M_StringToIMPtr
std::map< std::string, M_StringToIMPtr > M_StringToStringToIMPtr
M_StringToStringToIMPtr interactive_markers_
void updateEnableTransparency()
std::pair< std::string, int32_t > MarkerID
boost::shared_ptr< InteractiveMarker > IMPtr
RosTopicProperty * marker_update_topic_property_
void updateShowVisualAids()
InteractiveMarkerDisplay()
void reset() override
Called to tell the display to clear its state.
void resetCb(const std::string &server_id)
ros::Publisher feedback_pub_
void onInitialize() override
Override this function to do subclass-specific initialization.
rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust, William Woodall
autogenerated on Fri Dec 13 2024 03:31:02