Displays a std_msgs::ParticleCloud2D message. More...
#include <pose_array_display.h>
Public Member Functions | |
virtual void | createProperties () |
Called from setPropertyManager, gives the display a chance to create some properties immediately. | |
virtual void | fixedFrameChanged () |
Override to handle changes to fixed_frame_. This base class implementation does nothing. | |
const Color & | getColor () |
float | getLength () const |
const std::string & | getTopic () |
virtual void | onInitialize () |
Override this function to do subclass-specific initialization. | |
PoseArrayDisplay () | |
virtual void | reset () |
Called to tell the display to clear its state. | |
void | setColor (const Color &color) |
void | setLength (float length) |
void | setTopic (const std::string &topic) |
virtual void | update (float wall_dt, float ros_dt) |
Called periodically by the visualization panel. | |
virtual | ~PoseArrayDisplay () |
Protected Member Functions | |
void | clear () |
void | incomingMessage (const geometry_msgs::PoseArray::ConstPtr &msg) |
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 | processMessage (const geometry_msgs::PoseArray::ConstPtr &msg) |
void | subscribe () |
void | unsubscribe () |
Protected Attributes | |
Color | color_ |
ColorPropertyWPtr | color_property_ |
float | length_ |
FloatPropertyWPtr | length_property_ |
Ogre::ManualObject * | manual_object_ |
uint32_t | messages_received_ |
Ogre::SceneNode * | scene_node_ |
message_filters::Subscriber < geometry_msgs::PoseArray > | sub_ |
tf::MessageFilter < geometry_msgs::PoseArray > * | tf_filter_ |
std::string | topic_ |
ROSTopicStringPropertyWPtr | topic_property_ |
Displays a std_msgs::ParticleCloud2D message.
Definition at line 63 of file pose_array_display.h.
Definition at line 50 of file pose_array_display.cpp.
rviz::PoseArrayDisplay::~PoseArrayDisplay | ( | ) | [virtual] |
Definition at line 58 of file pose_array_display.cpp.
void rviz::PoseArrayDisplay::clear | ( | void | ) | [protected] |
Definition at line 84 of file pose_array_display.cpp.
void rviz::PoseArrayDisplay::createProperties | ( | ) | [virtual] |
Called from setPropertyManager, gives the display a chance to create some properties immediately.
When this function is called, the property_manager_ member is valid and will stay valid
Reimplemented from rviz::Display.
Definition at line 157 of file pose_array_display.cpp.
void rviz::PoseArrayDisplay::fixedFrameChanged | ( | ) | [virtual] |
Override to handle changes to fixed_frame_. This base class implementation does nothing.
Reimplemented from rviz::Display.
Definition at line 174 of file pose_array_display.cpp.
const Color& rviz::PoseArrayDisplay::getColor | ( | ) | [inline] |
Definition at line 75 of file pose_array_display.h.
float rviz::PoseArrayDisplay::getLength | ( | ) | const [inline] |
Definition at line 78 of file pose_array_display.h.
const std::string& rviz::PoseArrayDisplay::getTopic | ( | ) | [inline] |
Definition at line 72 of file pose_array_display.h.
void rviz::PoseArrayDisplay::incomingMessage | ( | const geometry_msgs::PoseArray::ConstPtr & | msg | ) | [protected] |
Definition at line 251 of file pose_array_display.cpp.
void rviz::PoseArrayDisplay::onDisable | ( | ) | [protected, virtual] |
Derived classes override this to do the actual work of disabling themselves.
Implements rviz::Display.
Definition at line 150 of file pose_array_display.cpp.
void rviz::PoseArrayDisplay::onEnable | ( | ) | [protected, virtual] |
Derived classes override this to do the actual work of enabling themselves.
Implements rviz::Display.
Definition at line 144 of file pose_array_display.cpp.
void rviz::PoseArrayDisplay::onInitialize | ( | ) | [virtual] |
Override this function to do subclass-specific initialization.
This is called after vis_manager_ and scene_manager_ are set.
Reimplemented from rviz::Display.
Definition at line 67 of file pose_array_display.cpp.
void rviz::PoseArrayDisplay::processMessage | ( | const geometry_msgs::PoseArray::ConstPtr & | msg | ) | [protected] |
Definition at line 189 of file pose_array_display.cpp.
void rviz::PoseArrayDisplay::reset | ( | ) | [virtual] |
Called to tell the display to clear its state.
Reimplemented from rviz::Display.
Definition at line 256 of file pose_array_display.cpp.
void rviz::PoseArrayDisplay::setColor | ( | const Color & | color | ) |
Definition at line 105 of file pose_array_display.cpp.
void rviz::PoseArrayDisplay::setLength | ( | float | length | ) |
Definition at line 114 of file pose_array_display.cpp.
void rviz::PoseArrayDisplay::setTopic | ( | const std::string & | topic | ) |
Definition at line 92 of file pose_array_display.cpp.
void rviz::PoseArrayDisplay::subscribe | ( | ) | [protected] |
Definition at line 121 of file pose_array_display.cpp.
void rviz::PoseArrayDisplay::unsubscribe | ( | ) | [protected] |
Definition at line 139 of file pose_array_display.cpp.
void rviz::PoseArrayDisplay::update | ( | float | wall_dt, |
float | ros_dt | ||
) | [virtual] |
Called periodically by the visualization panel.
dt | Wall-clock time, in seconds, since the last time the update list was run through. |
Reimplemented from rviz::Display.
Definition at line 180 of file pose_array_display.cpp.
Color rviz::PoseArrayDisplay::color_ [protected] |
Definition at line 98 of file pose_array_display.h.
ColorPropertyWPtr rviz::PoseArrayDisplay::color_property_ [protected] |
Definition at line 115 of file pose_array_display.h.
float rviz::PoseArrayDisplay::length_ [protected] |
Definition at line 99 of file pose_array_display.h.
FloatPropertyWPtr rviz::PoseArrayDisplay::length_property_ [protected] |
Definition at line 117 of file pose_array_display.h.
Ogre::ManualObject* rviz::PoseArrayDisplay::manual_object_ [protected] |
Definition at line 110 of file pose_array_display.h.
uint32_t rviz::PoseArrayDisplay::messages_received_ [protected] |
Definition at line 101 of file pose_array_display.h.
Ogre::SceneNode* rviz::PoseArrayDisplay::scene_node_ [protected] |
Definition at line 109 of file pose_array_display.h.
message_filters::Subscriber<geometry_msgs::PoseArray> rviz::PoseArrayDisplay::sub_ [protected] |
Definition at line 112 of file pose_array_display.h.
tf::MessageFilter<geometry_msgs::PoseArray>* rviz::PoseArrayDisplay::tf_filter_ [protected] |
Definition at line 113 of file pose_array_display.h.
std::string rviz::PoseArrayDisplay::topic_ [protected] |
Definition at line 97 of file pose_array_display.h.
ROSTopicStringPropertyWPtr rviz::PoseArrayDisplay::topic_property_ [protected] |
Definition at line 116 of file pose_array_display.h.