Accumulates and displays the pose from a nav_msgs::Odometry message. More...
#include <odometry_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. | |
float | getAngleTolerance () |
const Color & | getColor () |
uint32_t | getKeep () |
float | getLength () const |
float | getPositionTolerance () |
const std::string & | getTopic () |
OdometryDisplay () | |
virtual void | onInitialize () |
Override this function to do subclass-specific initialization. | |
virtual void | reset () |
Called to tell the display to clear its state. | |
void | setAngleTolerance (float tol) |
void | setColor (const Color &color) |
void | setKeep (uint32_t keep) |
void | setLength (float length) |
void | setPositionTolerance (float tol) |
void | setTopic (const std::string &topic) |
virtual void | update (float wall_dt, float ros_dt) |
Called periodically by the visualization panel. | |
virtual | ~OdometryDisplay () |
Protected Types | |
typedef std::deque< Arrow * > | D_Arrow |
Protected Member Functions | |
void | clear () |
void | incomingMessage (const nav_msgs::Odometry::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 | processMessage (const nav_msgs::Odometry::ConstPtr &message) |
void | subscribe () |
void | transformArrow (const nav_msgs::Odometry::ConstPtr &message, Arrow *arrow) |
void | unsubscribe () |
Protected Attributes | |
float | angle_tolerance_ |
FloatPropertyWPtr | angle_tolerance_property_ |
D_Arrow | arrows_ |
Color | color_ |
ColorPropertyWPtr | color_property_ |
uint32_t | keep_ |
IntPropertyWPtr | keep_property_ |
nav_msgs::Odometry::ConstPtr | last_used_message_ |
float | length_ |
FloatPropertyWPtr | length_property_ |
uint32_t | messages_received_ |
float | position_tolerance_ |
FloatPropertyWPtr | position_tolerance_property_ |
Ogre::SceneNode * | scene_node_ |
message_filters::Subscriber < nav_msgs::Odometry > | sub_ |
tf::MessageFilter < nav_msgs::Odometry > * | tf_filter_ |
std::string | topic_ |
ROSTopicStringPropertyWPtr | topic_property_ |
Accumulates and displays the pose from a nav_msgs::Odometry message.
Definition at line 65 of file odometry_display.h.
typedef std::deque<Arrow*> rviz::OdometryDisplay::D_Arrow [protected] |
Definition at line 115 of file odometry_display.h.
Definition at line 49 of file odometry_display.cpp.
rviz::OdometryDisplay::~OdometryDisplay | ( | ) | [virtual] |
Definition at line 60 of file odometry_display.cpp.
void rviz::OdometryDisplay::clear | ( | void | ) | [protected] |
Definition at line 79 of file odometry_display.cpp.
void rviz::OdometryDisplay::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 201 of file odometry_display.cpp.
void rviz::OdometryDisplay::fixedFrameChanged | ( | ) | [virtual] |
Override to handle changes to fixed_frame_. This base class implementation does nothing.
Reimplemented from rviz::Display.
Definition at line 295 of file odometry_display.cpp.
float rviz::OdometryDisplay::getAngleTolerance | ( | ) | [inline] |
Definition at line 86 of file odometry_display.h.
const Color& rviz::OdometryDisplay::getColor | ( | ) | [inline] |
Definition at line 77 of file odometry_display.h.
uint32_t rviz::OdometryDisplay::getKeep | ( | ) | [inline] |
Definition at line 89 of file odometry_display.h.
float rviz::OdometryDisplay::getLength | ( | ) | const [inline] |
Definition at line 80 of file odometry_display.h.
float rviz::OdometryDisplay::getPositionTolerance | ( | ) | [inline] |
Definition at line 83 of file odometry_display.h.
const std::string& rviz::OdometryDisplay::getTopic | ( | ) | [inline] |
Definition at line 74 of file odometry_display.h.
void rviz::OdometryDisplay::incomingMessage | ( | const nav_msgs::Odometry::ConstPtr & | message | ) | [protected] |
Definition at line 313 of file odometry_display.cpp.
void rviz::OdometryDisplay::onDisable | ( | ) | [protected, virtual] |
Derived classes override this to do the actual work of disabling themselves.
Implements rviz::Display.
Definition at line 194 of file odometry_display.cpp.
void rviz::OdometryDisplay::onEnable | ( | ) | [protected, virtual] |
Derived classes override this to do the actual work of enabling themselves.
Implements rviz::Display.
Definition at line 188 of file odometry_display.cpp.
void rviz::OdometryDisplay::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 69 of file odometry_display.cpp.
void rviz::OdometryDisplay::processMessage | ( | const nav_msgs::Odometry::ConstPtr & | message | ) | [protected] |
Definition at line 237 of file odometry_display.cpp.
void rviz::OdometryDisplay::reset | ( | ) | [virtual] |
Called to tell the display to clear its state.
Reimplemented from rviz::Display.
Definition at line 319 of file odometry_display.cpp.
void rviz::OdometryDisplay::setAngleTolerance | ( | float | tol | ) |
Definition at line 158 of file odometry_display.cpp.
void rviz::OdometryDisplay::setColor | ( | const Color & | color | ) |
Definition at line 112 of file odometry_display.cpp.
void rviz::OdometryDisplay::setKeep | ( | uint32_t | keep | ) |
Definition at line 144 of file odometry_display.cpp.
void rviz::OdometryDisplay::setLength | ( | float | length | ) |
Definition at line 129 of file odometry_display.cpp.
void rviz::OdometryDisplay::setPositionTolerance | ( | float | tol | ) |
Definition at line 151 of file odometry_display.cpp.
void rviz::OdometryDisplay::setTopic | ( | const std::string & | topic | ) |
Definition at line 100 of file odometry_display.cpp.
void rviz::OdometryDisplay::subscribe | ( | ) | [protected] |
Definition at line 165 of file odometry_display.cpp.
void rviz::OdometryDisplay::transformArrow | ( | const nav_msgs::Odometry::ConstPtr & | message, |
Arrow * | arrow | ||
) | [protected] |
Definition at line 279 of file odometry_display.cpp.
void rviz::OdometryDisplay::unsubscribe | ( | ) | [protected] |
Definition at line 183 of file odometry_display.cpp.
void rviz::OdometryDisplay::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 301 of file odometry_display.cpp.
float rviz::OdometryDisplay::angle_tolerance_ [protected] |
Definition at line 121 of file odometry_display.h.
FloatPropertyWPtr rviz::OdometryDisplay::angle_tolerance_property_ [protected] |
Definition at line 132 of file odometry_display.h.
D_Arrow rviz::OdometryDisplay::arrows_ [protected] |
Definition at line 116 of file odometry_display.h.
Color rviz::OdometryDisplay::color_ [protected] |
Definition at line 111 of file odometry_display.h.
ColorPropertyWPtr rviz::OdometryDisplay::color_property_ [protected] |
Definition at line 129 of file odometry_display.h.
uint32_t rviz::OdometryDisplay::keep_ [protected] |
Definition at line 112 of file odometry_display.h.
IntPropertyWPtr rviz::OdometryDisplay::keep_property_ [protected] |
Definition at line 133 of file odometry_display.h.
nav_msgs::Odometry::ConstPtr rviz::OdometryDisplay::last_used_message_ [protected] |
Definition at line 125 of file odometry_display.h.
float rviz::OdometryDisplay::length_ [protected] |
Definition at line 113 of file odometry_display.h.
FloatPropertyWPtr rviz::OdometryDisplay::length_property_ [protected] |
Definition at line 134 of file odometry_display.h.
uint32_t rviz::OdometryDisplay::messages_received_ [protected] |
Definition at line 123 of file odometry_display.h.
float rviz::OdometryDisplay::position_tolerance_ [protected] |
Definition at line 120 of file odometry_display.h.
FloatPropertyWPtr rviz::OdometryDisplay::position_tolerance_property_ [protected] |
Definition at line 131 of file odometry_display.h.
Ogre::SceneNode* rviz::OdometryDisplay::scene_node_ [protected] |
Definition at line 118 of file odometry_display.h.
message_filters::Subscriber<nav_msgs::Odometry> rviz::OdometryDisplay::sub_ [protected] |
Definition at line 126 of file odometry_display.h.
tf::MessageFilter<nav_msgs::Odometry>* rviz::OdometryDisplay::tf_filter_ [protected] |
Definition at line 127 of file odometry_display.h.
std::string rviz::OdometryDisplay::topic_ [protected] |
Definition at line 110 of file odometry_display.h.
ROSTopicStringPropertyWPtr rviz::OdometryDisplay::topic_property_ [protected] |
Definition at line 130 of file odometry_display.h.