Public Member Functions | Protected Slots | Protected Member Functions | Private Types | Private Member Functions | Private Attributes
rviz::InteractiveMarkerDisplay Class Reference

Displays Interactive Markers. More...

#include <interactive_marker_display.h>

Inheritance diagram for rviz::InteractiveMarkerDisplay:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void fixedFrameChanged ()
 Called by setFixedFrame(). Override to respond to changes to fixed_frame_.
 InteractiveMarkerDisplay ()
virtual void onInitialize ()
 Override this function to do subclass-specific initialization.
virtual void reset ()
 Called to tell the display to clear its state.
virtual void update (float wall_dt, float ros_dt)
 Called periodically by the visualization manager.

Protected Slots

void onStatusUpdate (StatusProperty::Level level, const std::string &name, const std::string &text)
void publishFeedback (visualization_msgs::InteractiveMarkerFeedback &feedback)
void updateEnableTransparency ()
void updateShowAxes ()
void updateShowDescriptions ()
void updateShowVisualAids ()
void updateTopic ()

Protected Member Functions

virtual void onDisable ()
 Derived classes override this to do the actual work of disabling themselves.
virtual void onEnable ()
 Derived classes override this to do the actual work of enabling themselves.

Private Types

typedef boost::shared_ptr
< InteractiveMarker
IMPtr
typedef std::map< std::string,
IMPtr
M_StringToIMPtr
typedef std::map< std::string,
M_StringToIMPtr
M_StringToStringToIMPtr

Private Member Functions

void eraseMarkers (const std::string &server_id, const std::vector< std::string > &names)
M_StringToIMPtrgetImMap (std::string server_id)
void initCb (visualization_msgs::InteractiveMarkerInitConstPtr msg)
void processMarkerChanges (const std::vector< visualization_msgs::InteractiveMarker > *markers=NULL, const std::vector< visualization_msgs::InteractiveMarkerPose > *poses=NULL, const std::vector< std::string > *erases=NULL)
void resetCb (std::string server_id)
void statusCb (interactive_markers::InteractiveMarkerClient::StatusT, const std::string &server_id, const std::string &msg)
void subscribe ()
void unsubscribe ()
void updateCb (visualization_msgs::InteractiveMarkerUpdateConstPtr msg)
void updateMarkers (const std::string &server_id, const std::vector< visualization_msgs::InteractiveMarker > &markers)
void updatePoses (const std::string &server_id, const std::vector< visualization_msgs::InteractiveMarkerPose > &marker_poses)

Private Attributes

std::string client_id_
BoolPropertyenable_transparency_property_
ros::Publisher feedback_pub_
boost::shared_ptr
< interactive_markers::InteractiveMarkerClient
im_client_
M_StringToStringToIMPtr interactive_markers_
RosTopicPropertymarker_update_topic_property_
BoolPropertyshow_axes_property_
BoolPropertyshow_descriptions_property_
BoolPropertyshow_visual_aids_property_
std::string topic_ns_

Detailed Description

Displays Interactive Markers.

Definition at line 65 of file interactive_marker_display.h.


Member Typedef Documentation

typedef boost::shared_ptr<InteractiveMarker> rviz::InteractiveMarkerDisplay::IMPtr [private]

Definition at line 126 of file interactive_marker_display.h.

typedef std::map< std::string, IMPtr > rviz::InteractiveMarkerDisplay::M_StringToIMPtr [private]

Definition at line 127 of file interactive_marker_display.h.

Definition at line 128 of file interactive_marker_display.h.


Constructor & Destructor Documentation

Definition at line 68 of file interactive_marker_display.cpp.


Member Function Documentation

void rviz::InteractiveMarkerDisplay::eraseMarkers ( const std::string &  server_id,
const std::vector< std::string > &  names 
) [private]

Definition at line 243 of file interactive_marker_display.cpp.

Called by setFixedFrame(). Override to respond to changes to fixed_frame_.

Reimplemented from rviz::Display.

Definition at line 314 of file interactive_marker_display.cpp.

Definition at line 183 of file interactive_marker_display.cpp.

void rviz::InteractiveMarkerDisplay::initCb ( visualization_msgs::InteractiveMarkerInitConstPtr  msg) [private]

Definition at line 287 of file interactive_marker_display.cpp.

void rviz::InteractiveMarkerDisplay::onDisable ( ) [protected, virtual]

Derived classes override this to do the actual work of disabling themselves.

Reimplemented from rviz::Display.

Definition at line 112 of file interactive_marker_display.cpp.

void rviz::InteractiveMarkerDisplay::onEnable ( ) [protected, virtual]

Derived classes override this to do the actual work of enabling themselves.

Reimplemented from rviz::Display.

Definition at line 107 of file interactive_marker_display.cpp.

Override this function to do subclass-specific initialization.

This is called after vis_manager_ and scene_manager_ are set, and before load() or setEnabled().

setName() may or may not have been called before this.

Reimplemented from rviz::Display.

Definition at line 92 of file interactive_marker_display.cpp.

void rviz::InteractiveMarkerDisplay::onStatusUpdate ( StatusProperty::Level  level,
const std::string &  name,
const std::string &  text 
) [protected, slot]

Definition at line 153 of file interactive_marker_display.cpp.

void rviz::InteractiveMarkerDisplay::processMarkerChanges ( const std::vector< visualization_msgs::InteractiveMarker > *  markers = NULL,
const std::vector< visualization_msgs::InteractiveMarkerPose > *  poses = NULL,
const std::vector< std::string > *  erases = NULL 
) [private]
void rviz::InteractiveMarkerDisplay::publishFeedback ( visualization_msgs::InteractiveMarkerFeedback &  feedback) [protected, slot]

Definition at line 147 of file interactive_marker_display.cpp.

Called to tell the display to clear its state.

Reimplemented from rviz::Display.

Definition at line 321 of file interactive_marker_display.cpp.

void rviz::InteractiveMarkerDisplay::resetCb ( std::string  server_id) [private]

Definition at line 300 of file interactive_marker_display.cpp.

void rviz::InteractiveMarkerDisplay::statusCb ( interactive_markers::InteractiveMarkerClient::StatusT  status,
const std::string &  server_id,
const std::string &  msg 
) [private]

Definition at line 306 of file interactive_marker_display.cpp.

Definition at line 136 of file interactive_marker_display.cpp.

Definition at line 158 of file interactive_marker_display.cpp.

void rviz::InteractiveMarkerDisplay::update ( float  wall_dt,
float  ros_dt 
) [virtual]

Called periodically by the visualization manager.

Parameters:
wall_dtWall-clock time, in seconds, since the last time the update list was run through.
ros_dtROS time, in seconds, since the last time the update list was run through.

Reimplemented from rviz::Display.

Definition at line 168 of file interactive_marker_display.cpp.

void rviz::InteractiveMarkerDisplay::updateCb ( visualization_msgs::InteractiveMarkerUpdateConstPtr  msg) [private]

Definition at line 293 of file interactive_marker_display.cpp.

Definition at line 373 of file interactive_marker_display.cpp.

void rviz::InteractiveMarkerDisplay::updateMarkers ( const std::string &  server_id,
const std::vector< visualization_msgs::InteractiveMarker > &  markers 
) [private]

Definition at line 195 of file interactive_marker_display.cpp.

void rviz::InteractiveMarkerDisplay::updatePoses ( const std::string &  server_id,
const std::vector< visualization_msgs::InteractiveMarkerPose > &  marker_poses 
) [private]

Definition at line 256 of file interactive_marker_display.cpp.

Definition at line 343 of file interactive_marker_display.cpp.

Definition at line 328 of file interactive_marker_display.cpp.

Definition at line 358 of file interactive_marker_display.cpp.

void rviz::InteractiveMarkerDisplay::updateTopic ( ) [protected, slot]

Definition at line 117 of file interactive_marker_display.cpp.


Member Data Documentation

Definition at line 133 of file interactive_marker_display.h.

Definition at line 140 of file interactive_marker_display.h.

Definition at line 144 of file interactive_marker_display.h.

Definition at line 142 of file interactive_marker_display.h.

Definition at line 129 of file interactive_marker_display.h.

Definition at line 136 of file interactive_marker_display.h.

Definition at line 138 of file interactive_marker_display.h.

Definition at line 137 of file interactive_marker_display.h.

Definition at line 139 of file interactive_marker_display.h.

Definition at line 146 of file interactive_marker_display.h.


The documentation for this class was generated from the following files:


rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust
autogenerated on Mon Oct 6 2014 07:26:37