rviz::PoseDisplay Class Reference

Accumulates and displays the pose from a geometry_msgs::PoseStamped message. More...

#include <pose_display.h>

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

List of all members.

Public Types

enum  Shape { Arrow, Axes }

Public Member Functions

virtual void createProperties ()
virtual void fixedFrameChanged ()
 Called by setFixedFrame(). Override to respond to changes to fixed_frame_.
float getAlpha ()
float getAxesLength ()
float getAxesRadius ()
const ColorgetColor ()
float getHeadLength ()
float getHeadRadius ()
float getShaftLength ()
float getShaftRadius ()
int getShape ()
const std::string & getTopic ()
virtual void onInitialize ()
 Override this function to do subclass-specific initialization.
 PoseDisplay ()
virtual void reset ()
 Called to tell the display to clear its state.
void setAlpha (float a)
void setAxesLength (float l)
void setAxesRadius (float r)
void setColor (const Color &color)
void setHeadLength (float l)
void setHeadRadius (float r)
void setShaftLength (float l)
void setShaftRadius (float r)
void setShape (int shape)
void setTopic (const std::string &topic)
virtual void update (float wall_dt, float ros_dt)
 Called periodically by the visualization manager.
virtual ~PoseDisplay ()

Protected Member Functions

void clear ()
void createShapeProperties ()
void incomingMessage (const geometry_msgs::PoseStamped::ConstPtr &message)
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.
void setVisibility ()
void subscribe ()
void unsubscribe ()

Protected Attributes

float alpha_
FloatPropertyalpha_property_
rviz::Arrowarrow_
rviz::Axesaxes_
float axes_length_
FloatPropertyaxes_length_property_
float axes_radius_
FloatPropertyaxes_radius_property_
CollObjectHandle coll_
PoseDisplaySelectionHandlerPtr coll_handler_
Color color_
ColorPropertycolor_property_
Shape current_shape_
float head_length_
FloatPropertyhead_length_property_
float head_radius_
FloatPropertyhead_radius_property_
geometry_msgs::PoseStampedConstPtr latest_message_
uint32_t messages_received_
Ogre::SceneNode * scene_node_
float shaft_length_
FloatPropertyshaft_length_property_
float shaft_radius_
FloatPropertyshaft_radius_property_
Propertyshape_category_
EnumPropertyshape_property_
message_filters::Subscriber
< geometry_msgs::PoseStamped > 
sub_
tf::MessageFilter
< geometry_msgs::PoseStamped > * 
tf_filter_
std::string topic_
RosTopicPropertytopic_property_

Detailed Description

Accumulates and displays the pose from a geometry_msgs::PoseStamped message.

Definition at line 69 of file pose_display.h.


Member Enumeration Documentation

Enumerator:
Arrow 
Axes 

Definition at line 72 of file pose_display.h.


Constructor & Destructor Documentation

rviz::PoseDisplay::PoseDisplay (  ) 

Definition at line 93 of file pose_display.cpp.

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

Definition at line 136 of file pose_display.cpp.


Member Function Documentation

void rviz::PoseDisplay::clear (  )  [protected]

Definition at line 150 of file pose_display.cpp.

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

Definition at line 358 of file pose_display.cpp.

void rviz::PoseDisplay::createShapeProperties (  )  [protected]

Definition at line 308 of file pose_display.cpp.

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

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

Reimplemented from rviz::Display.

Definition at line 376 of file pose_display.cpp.

float rviz::PoseDisplay::getAlpha (  )  [inline]

Definition at line 93 of file pose_display.h.

float rviz::PoseDisplay::getAxesLength (  )  [inline]

Definition at line 109 of file pose_display.h.

float rviz::PoseDisplay::getAxesRadius (  )  [inline]

Definition at line 107 of file pose_display.h.

const Color& rviz::PoseDisplay::getColor (  )  [inline]

Definition at line 87 of file pose_display.h.

float rviz::PoseDisplay::getHeadLength (  )  [inline]

Definition at line 99 of file pose_display.h.

float rviz::PoseDisplay::getHeadRadius (  )  [inline]

Definition at line 97 of file pose_display.h.

float rviz::PoseDisplay::getShaftLength (  )  [inline]

Definition at line 103 of file pose_display.h.

float rviz::PoseDisplay::getShaftRadius (  )  [inline]

Definition at line 101 of file pose_display.h.

int rviz::PoseDisplay::getShape (  )  [inline]

Definition at line 90 of file pose_display.h.

const std::string& rviz::PoseDisplay::getTopic (  )  [inline]

Definition at line 84 of file pose_display.h.

void rviz::PoseDisplay::incomingMessage ( const geometry_msgs::PoseStamped::ConstPtr &  message  )  [protected]

Definition at line 386 of file pose_display.cpp.

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

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

Reimplemented from rviz::Display.

Definition at line 301 of file pose_display.cpp.

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

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

Reimplemented from rviz::Display.

Definition at line 294 of file pose_display.cpp.

void rviz::PoseDisplay::onInitialize (  )  [virtual]

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 106 of file pose_display.cpp.

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

Called to tell the display to clear its state.

Reimplemented from rviz::Display.

Definition at line 419 of file pose_display.cpp.

void rviz::PoseDisplay::setAlpha ( float  a  ) 

Definition at line 183 of file pose_display.cpp.

void rviz::PoseDisplay::setAxesLength ( float  l  ) 

Definition at line 230 of file pose_display.cpp.

void rviz::PoseDisplay::setAxesRadius ( float  r  ) 

Definition at line 223 of file pose_display.cpp.

void rviz::PoseDisplay::setColor ( const Color color  ) 

Definition at line 171 of file pose_display.cpp.

void rviz::PoseDisplay::setHeadLength ( float  l  ) 

Definition at line 202 of file pose_display.cpp.

void rviz::PoseDisplay::setHeadRadius ( float  r  ) 

Definition at line 195 of file pose_display.cpp.

void rviz::PoseDisplay::setShaftLength ( float  l  ) 

Definition at line 216 of file pose_display.cpp.

void rviz::PoseDisplay::setShaftRadius ( float  r  ) 

Definition at line 209 of file pose_display.cpp.

void rviz::PoseDisplay::setShape ( int  shape  ) 

Definition at line 237 of file pose_display.cpp.

void rviz::PoseDisplay::setTopic ( const std::string &  topic  ) 

Definition at line 160 of file pose_display.cpp.

void rviz::PoseDisplay::setVisibility (  )  [protected]

Definition at line 250 of file pose_display.cpp.

void rviz::PoseDisplay::subscribe (  )  [protected]

Definition at line 271 of file pose_display.cpp.

void rviz::PoseDisplay::unsubscribe (  )  [protected]

Definition at line 289 of file pose_display.cpp.

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

Called periodically by the visualization manager.

Parameters:
wall_dt Wall-clock time, in seconds, since the last time the update list was run through.
ros_dt ROS time, in seconds, since the last time the update list was run through.

Reimplemented from rviz::Display.

Definition at line 382 of file pose_display.cpp.


Member Data Documentation

float rviz::PoseDisplay::alpha_ [protected]

Definition at line 133 of file pose_display.h.

Definition at line 164 of file pose_display.h.

Definition at line 146 of file pose_display.h.

Definition at line 147 of file pose_display.h.

Definition at line 143 of file pose_display.h.

Definition at line 171 of file pose_display.h.

Definition at line 144 of file pose_display.h.

Definition at line 172 of file pose_display.h.

Definition at line 148 of file pose_display.h.

Definition at line 149 of file pose_display.h.

Definition at line 132 of file pose_display.h.

Definition at line 163 of file pose_display.h.

Definition at line 134 of file pose_display.h.

Definition at line 138 of file pose_display.h.

Definition at line 167 of file pose_display.h.

Definition at line 137 of file pose_display.h.

Definition at line 166 of file pose_display.h.

geometry_msgs::PoseStampedConstPtr rviz::PoseDisplay::latest_message_ [protected]

Definition at line 157 of file pose_display.h.

Definition at line 151 of file pose_display.h.

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

Definition at line 153 of file pose_display.h.

Definition at line 140 of file pose_display.h.

Definition at line 169 of file pose_display.h.

Definition at line 139 of file pose_display.h.

Definition at line 168 of file pose_display.h.

Definition at line 161 of file pose_display.h.

Definition at line 160 of file pose_display.h.

message_filters::Subscriber<geometry_msgs::PoseStamped> rviz::PoseDisplay::sub_ [protected]

Definition at line 155 of file pose_display.h.

tf::MessageFilter<geometry_msgs::PoseStamped>* rviz::PoseDisplay::tf_filter_ [protected]

Definition at line 156 of file pose_display.h.

std::string rviz::PoseDisplay::topic_ [protected]

Definition at line 131 of file pose_display.h.

Definition at line 159 of file pose_display.h.


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


rviz
Author(s): Dave Hershberger, Josh Faust
autogenerated on Wed Jun 6 11:25:48 2012