$search
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 () |
Called from within setFixedFrame, notifying child classes that the fixed frame has changed. | |
float | getAngleTolerance () |
const Color & | getColor () |
uint32_t | getKeep () |
float | getPositionTolerance () |
const std::string & | getTopic () |
OdometryDisplay (const std::string &name, VisualizationManager *manager) | |
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 | setPositionTolerance (float tol) |
void | setTopic (const std::string &topic) |
virtual void | targetFrameChanged () |
Called from within setTargetFrame, notifying child classes that the target frame has changed. | |
virtual void | update (float wall_dt, float ros_dt) |
Called periodically by the visualization panel. | |
virtual | ~OdometryDisplay () |
Protected Types | |
typedef std::deque < ogre_tools::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, ogre_tools::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_ |
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<ogre_tools::Arrow*> rviz::OdometryDisplay::D_Arrow [protected] |
Definition at line 110 of file odometry_display.h.
rviz::OdometryDisplay::OdometryDisplay | ( | const std::string & | name, | |
VisualizationManager * | manager | |||
) |
Definition at line 49 of file odometry_display.cpp.
rviz::OdometryDisplay::~OdometryDisplay | ( | ) | [virtual] |
Definition at line 65 of file odometry_display.cpp.
void rviz::OdometryDisplay::clear | ( | ) | [protected] |
Definition at line 72 of file odometry_display.cpp.
void rviz::OdometryDisplay::createProperties | ( | ) | [virtual] |
Called from setPropertyManager, gives the display a chance to create some properties immediately.
Once this function is called, the property_manager_ member is valid and will stay valid
Reimplemented from rviz::Display.
Definition at line 171 of file odometry_display.cpp.
void rviz::OdometryDisplay::fixedFrameChanged | ( | ) | [virtual] |
Called from within setFixedFrame, notifying child classes that the fixed frame has changed.
Implements rviz::Display.
Definition at line 263 of file odometry_display.cpp.
float rviz::OdometryDisplay::getAngleTolerance | ( | ) | [inline] |
Definition at line 81 of file odometry_display.h.
const Color& rviz::OdometryDisplay::getColor | ( | ) | [inline] |
Definition at line 75 of file odometry_display.h.
uint32_t rviz::OdometryDisplay::getKeep | ( | ) | [inline] |
Definition at line 84 of file odometry_display.h.
float rviz::OdometryDisplay::getPositionTolerance | ( | ) | [inline] |
Definition at line 78 of file odometry_display.h.
const std::string& rviz::OdometryDisplay::getTopic | ( | ) | [inline] |
Definition at line 72 of file odometry_display.h.
void rviz::OdometryDisplay::incomingMessage | ( | const nav_msgs::Odometry::ConstPtr & | message | ) | [protected] |
Definition at line 281 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 164 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 158 of file odometry_display.cpp.
void rviz::OdometryDisplay::processMessage | ( | const nav_msgs::Odometry::ConstPtr & | message | ) | [protected] |
Definition at line 203 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 287 of file odometry_display.cpp.
void rviz::OdometryDisplay::setAngleTolerance | ( | float | tol | ) |
Definition at line 136 of file odometry_display.cpp.
void rviz::OdometryDisplay::setColor | ( | const Color & | color | ) |
Definition at line 105 of file odometry_display.cpp.
void rviz::OdometryDisplay::setKeep | ( | uint32_t | keep | ) |
Definition at line 122 of file odometry_display.cpp.
void rviz::OdometryDisplay::setPositionTolerance | ( | float | tol | ) |
Definition at line 129 of file odometry_display.cpp.
void rviz::OdometryDisplay::setTopic | ( | const std::string & | topic | ) |
Definition at line 93 of file odometry_display.cpp.
void rviz::OdometryDisplay::subscribe | ( | ) | [protected] |
Definition at line 143 of file odometry_display.cpp.
void rviz::OdometryDisplay::targetFrameChanged | ( | ) | [virtual] |
Called from within setTargetFrame, notifying child classes that the target frame has changed.
Implements rviz::Display.
Definition at line 259 of file odometry_display.cpp.
void rviz::OdometryDisplay::transformArrow | ( | const nav_msgs::Odometry::ConstPtr & | message, | |
ogre_tools::Arrow * | arrow | |||
) | [protected] |
Definition at line 243 of file odometry_display.cpp.
void rviz::OdometryDisplay::unsubscribe | ( | ) | [protected] |
Definition at line 153 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 269 of file odometry_display.cpp.
float rviz::OdometryDisplay::angle_tolerance_ [protected] |
Definition at line 116 of file odometry_display.h.
FloatPropertyWPtr rviz::OdometryDisplay::angle_tolerance_property_ [protected] |
Definition at line 127 of file odometry_display.h.
D_Arrow rviz::OdometryDisplay::arrows_ [protected] |
Definition at line 111 of file odometry_display.h.
Color rviz::OdometryDisplay::color_ [protected] |
Definition at line 107 of file odometry_display.h.
ColorPropertyWPtr rviz::OdometryDisplay::color_property_ [protected] |
Definition at line 124 of file odometry_display.h.
uint32_t rviz::OdometryDisplay::keep_ [protected] |
Definition at line 108 of file odometry_display.h.
IntPropertyWPtr rviz::OdometryDisplay::keep_property_ [protected] |
Definition at line 128 of file odometry_display.h.
Definition at line 120 of file odometry_display.h.
uint32_t rviz::OdometryDisplay::messages_received_ [protected] |
Definition at line 118 of file odometry_display.h.
float rviz::OdometryDisplay::position_tolerance_ [protected] |
Definition at line 115 of file odometry_display.h.
FloatPropertyWPtr rviz::OdometryDisplay::position_tolerance_property_ [protected] |
Definition at line 126 of file odometry_display.h.
Ogre::SceneNode* rviz::OdometryDisplay::scene_node_ [protected] |
Definition at line 113 of file odometry_display.h.
Definition at line 121 of file odometry_display.h.
Definition at line 122 of file odometry_display.h.
std::string rviz::OdometryDisplay::topic_ [protected] |
Definition at line 106 of file odometry_display.h.
ROSTopicStringPropertyWPtr rviz::OdometryDisplay::topic_property_ [protected] |
Definition at line 125 of file odometry_display.h.