$search

rviz::ShapeDisplay Class Reference

Displays "markers" sent in by other ROS nodes on the "visualization_marker" topic. More...

#include <shape_display.h>

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

List of all members.

Classes

struct  Namespace

Public Member Functions

virtual void createProperties ()
void deleteMarker (MarkerID id)
void deleteMarkerStatus (MarkerID id)
virtual void fixedFrameChanged ()
const std::string & getMarkerTopic ()
bool isNamespaceEnabled (const std::string &ns)
virtual void reset ()
void setMarkerStatus (MarkerID id, StatusLevel level, const std::string &text)
void setMarkerTopic (const std::string &topic)
void setNamespaceEnabled (const std::string &ns, bool enabled)
 ShapeDisplay (const std::string &name, VisualizationManager *manager)
virtual void targetFrameChanged ()
virtual void update (float wall_dt, float ros_dt)
virtual ~ShapeDisplay ()

Protected Types

typedef std::vector< ShapeBasePtr > M_IDToMarker
typedef std::map< std::string,
Namespace
M_Namespace
typedef std::set< ShapeBasePtr > S_MarkerBase
typedef std::vector
< cob_3d_mapping_msgs::Shape::ConstPtr
V_MarkerMessage

Protected Member Functions

void clearMarkers ()
 Removes all the markers.
void failedMarker (const cob_3d_mapping_msgs::Shape::ConstPtr &marker, tf::FilterFailureReason reason)
void incomingMarker (const cob_3d_mapping_msgs::Shape::ConstPtr &marker)
 ROS callback notifying us of a new marker.
void incomingMarkerArray (const cob_3d_mapping_msgs::ShapeArray::ConstPtr &array)
virtual void onDisable ()
virtual void onEnable ()
void processAdd (const cob_3d_mapping_msgs::Shape::ConstPtr &message)
 Processes an "Add" marker message.
void processDelete (const cob_3d_mapping_msgs::Shape::ConstPtr &message)
 Processes a "Delete" marker message.
void processMessage (const cob_3d_mapping_msgs::Shape::ConstPtr &message)
 Processes a marker message.
virtual void subscribe ()
 Subscribes to the "visualization_marker" and "visualization_marker_array" topics.
virtual void unsubscribe ()
 Unsubscribes from the "visualization_marker" "visualization_marker_array" topics.

Protected Attributes

ros::Subscriber array_sub_
std::string marker_topic_
ROSTopicStringPropertyWPtr marker_topic_property_
M_IDToMarker markers_
 Map of marker id to the marker info structure.
V_MarkerMessage message_queue_
M_Namespace namespaces_
CategoryPropertyWPtr namespaces_category_
boost::mutex queue_mutex_
Ogre::SceneNode * scene_node_
 Scene node all the marker objects are parented to.
message_filters::Subscriber
< cob_3d_mapping_msgs::Shape
sub_
tf::MessageFilter
< cob_3d_mapping_msgs::Shape
tf_filter_

Detailed Description

Displays "markers" sent in by other ROS nodes on the "visualization_marker" topic.

Markers come in as cob_3d_mapping_msgs::Shape messages. See the Marker message for more information.

Definition at line 77 of file shape_display.h.


Member Typedef Documentation

typedef std::vector<ShapeBasePtr> rviz::ShapeDisplay::M_IDToMarker [protected]

Definition at line 147 of file shape_display.h.

typedef std::map<std::string, Namespace> rviz::ShapeDisplay::M_Namespace [protected]

Definition at line 171 of file shape_display.h.

typedef std::set<ShapeBasePtr> rviz::ShapeDisplay::S_MarkerBase [protected]

Definition at line 148 of file shape_display.h.

Definition at line 152 of file shape_display.h.


Constructor & Destructor Documentation

rviz::ShapeDisplay::ShapeDisplay ( const std::string &  name,
VisualizationManager manager 
)

Definition at line 64 of file shape_display.cpp.

rviz::ShapeDisplay::~ShapeDisplay (  )  [virtual]

Definition at line 76 of file shape_display.cpp.


Member Function Documentation

void rviz::ShapeDisplay::clearMarkers (  )  [protected]

Removes all the markers.

Definition at line 94 of file shape_display.cpp.

void rviz::ShapeDisplay::createProperties (  )  [virtual]

Reimplemented from rviz::Display.

Definition at line 499 of file shape_display.cpp.

void rviz::ShapeDisplay::deleteMarker ( MarkerID  id  ) 

Definition at line 171 of file shape_display.cpp.

void rviz::ShapeDisplay::deleteMarkerStatus ( MarkerID  id  ) 

Definition at line 234 of file shape_display.cpp.

void rviz::ShapeDisplay::failedMarker ( const cob_3d_mapping_msgs::Shape::ConstPtr marker,
tf::FilterFailureReason  reason 
) [protected]

Definition at line 262 of file shape_display.cpp.

void rviz::ShapeDisplay::fixedFrameChanged (  )  [virtual]

Implements rviz::Display.

Definition at line 486 of file shape_display.cpp.

const std::string& rviz::ShapeDisplay::getMarkerTopic (  )  [inline]

Definition at line 90 of file shape_display.h.

void rviz::ShapeDisplay::incomingMarker ( const cob_3d_mapping_msgs::Shape::ConstPtr marker  )  [protected]

ROS callback notifying us of a new marker.

Definition at line 254 of file shape_display.cpp.

void rviz::ShapeDisplay::incomingMarkerArray ( const cob_3d_mapping_msgs::ShapeArray::ConstPtr array  )  [protected]

Definition at line 242 of file shape_display.cpp.

bool rviz::ShapeDisplay::isNamespaceEnabled ( const std::string &  ns  ) 

Definition at line 215 of file shape_display.cpp.

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

Implements rviz::Display.

Definition at line 121 of file shape_display.cpp.

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

Implements rviz::Display.

Definition at line 114 of file shape_display.cpp.

void rviz::ShapeDisplay::processAdd ( const cob_3d_mapping_msgs::Shape::ConstPtr message  )  [protected]

Processes an "Add" marker message.

Parameters:
message The message to process

Definition at line 302 of file shape_display.cpp.

void rviz::ShapeDisplay::processDelete ( const cob_3d_mapping_msgs::Shape::ConstPtr message  )  [protected]

Processes a "Delete" marker message.

Parameters:
message The message to process

Definition at line 424 of file shape_display.cpp.

void rviz::ShapeDisplay::processMessage ( const cob_3d_mapping_msgs::Shape::ConstPtr message  )  [protected]

Processes a marker message.

Parameters:
message The message to process

Definition at line 279 of file shape_display.cpp.

void rviz::ShapeDisplay::reset (  )  [virtual]

Reimplemented from rviz::Display.

Definition at line 493 of file shape_display.cpp.

void rviz::ShapeDisplay::setMarkerStatus ( MarkerID  id,
StatusLevel  level,
const std::string &  text 
)

Definition at line 226 of file shape_display.cpp.

void rviz::ShapeDisplay::setMarkerTopic ( const std::string &  topic  ) 

Definition at line 131 of file shape_display.cpp.

void rviz::ShapeDisplay::setNamespaceEnabled ( const std::string &  ns,
bool  enabled 
)

Definition at line 184 of file shape_display.cpp.

void rviz::ShapeDisplay::subscribe (  )  [protected, virtual]

Subscribes to the "visualization_marker" and "visualization_marker_array" topics.

Definition at line 140 of file shape_display.cpp.

void rviz::ShapeDisplay::targetFrameChanged (  )  [virtual]

Implements rviz::Display.

Definition at line 482 of file shape_display.cpp.

void rviz::ShapeDisplay::unsubscribe (  )  [protected, virtual]

Unsubscribes from the "visualization_marker" "visualization_marker_array" topics.

Definition at line 165 of file shape_display.cpp.

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

Reimplemented from rviz::Display.

Definition at line 430 of file shape_display.cpp.


Member Data Documentation

Definition at line 161 of file shape_display.h.

std::string rviz::ShapeDisplay::marker_topic_ [protected]

Definition at line 163 of file shape_display.h.

ROSTopicStringPropertyWPtr rviz::ShapeDisplay::marker_topic_property_ [protected]

Definition at line 174 of file shape_display.h.

Map of marker id to the marker info structure.

Definition at line 149 of file shape_display.h.

Marker message queue. Messages are added to this as they are received, and then processed in our update() function

Definition at line 153 of file shape_display.h.

Definition at line 172 of file shape_display.h.

CategoryPropertyWPtr rviz::ShapeDisplay::namespaces_category_ [protected]

Definition at line 175 of file shape_display.h.

boost::mutex rviz::ShapeDisplay::queue_mutex_ [protected]

Definition at line 155 of file shape_display.h.

Ogre::SceneNode* rviz::ShapeDisplay::scene_node_ [protected]

Scene node all the marker objects are parented to.

Definition at line 157 of file shape_display.h.

Definition at line 159 of file shape_display.h.

Definition at line 160 of file shape_display.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends Defines


cob_3d_mapping_rviz_plugins
Author(s): Georg Arbeiter
autogenerated on Fri Mar 1 16:10:59 2013