rviz::RobotModelDisplay Class Reference

Uses a robot xml description to display the pieces of a robot at the transforms broadcast by rosTF. More...

#include <robot_model_display.h>

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

List of all members.

Public Member Functions

void clear ()
virtual void fixedFrameChanged ()
 Called by setFixedFrame(). Override to respond to changes to fixed_frame_.
virtual void onInitialize ()
 Override this function to do subclass-specific initialization.
virtual void reset ()
 Called to tell the display to clear its state.
 RobotModelDisplay ()
virtual void update (float wall_dt, float ros_dt)
 Called periodically by the visualization manager.
virtual ~RobotModelDisplay ()

Private Slots

void updateAlpha ()
void updateCollisionVisible ()
void updateRobotDescription ()
void updateTfPrefix ()
void updateVisualVisible ()

Private Member Functions

void load ()
 Loads a URDF from the ros-param named by our "Robot Description" property, iterates through the links, and loads any necessary models.
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.

Private Attributes

FloatPropertyalpha_property_
Propertycollision_enabled_property_
bool has_new_transforms_
 Callback sets this to tell our update function it needs to update the transforms.
Robotrobot_
 Handles actually drawing the robot.
std::string robot_description_
StringPropertyrobot_description_property_
StringPropertytf_prefix_property_
float time_since_last_transform_
FloatPropertyupdate_rate_property_
Propertyvisual_enabled_property_

Detailed Description

Uses a robot xml description to display the pieces of a robot at the transforms broadcast by rosTF.

Definition at line 62 of file robot_model_display.h.


Constructor & Destructor Documentation

rviz::RobotModelDisplay::RobotModelDisplay (  ) 

Definition at line 50 of file robot_model_display.cpp.

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

Definition at line 85 of file robot_model_display.cpp.


Member Function Documentation

void rviz::RobotModelDisplay::clear (  ) 

Definition at line 224 of file robot_model_display.cpp.

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

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

Reimplemented from rviz::Display.

Definition at line 219 of file robot_model_display.cpp.

void rviz::RobotModelDisplay::load (  )  [private]

Loads a URDF from the ros-param named by our "Robot Description" property, iterates through the links, and loads any necessary models.

Definition at line 131 of file robot_model_display.cpp.

void rviz::RobotModelDisplay::onDisable (  )  [private, virtual]

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

Reimplemented from rviz::Display.

Definition at line 195 of file robot_model_display.cpp.

void rviz::RobotModelDisplay::onEnable (  )  [private, virtual]

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

Reimplemented from rviz::Display.

Definition at line 189 of file robot_model_display.cpp.

void rviz::RobotModelDisplay::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 90 of file robot_model_display.cpp.

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

Called to tell the display to clear its state.

Reimplemented from rviz::Display.

Definition at line 231 of file robot_model_display.cpp.

void rviz::RobotModelDisplay::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 201 of file robot_model_display.cpp.

void rviz::RobotModelDisplay::updateAlpha (  )  [private, slot]

Definition at line 99 of file robot_model_display.cpp.

void rviz::RobotModelDisplay::updateCollisionVisible (  )  [private, slot]

Definition at line 120 of file robot_model_display.cpp.

void rviz::RobotModelDisplay::updateRobotDescription (  )  [private, slot]

Definition at line 105 of file robot_model_display.cpp.

void rviz::RobotModelDisplay::updateTfPrefix (  )  [private, slot]

Definition at line 126 of file robot_model_display.cpp.

void rviz::RobotModelDisplay::updateVisualVisible (  )  [private, slot]

Definition at line 114 of file robot_model_display.cpp.


Member Data Documentation

Definition at line 106 of file robot_model_display.h.

Definition at line 103 of file robot_model_display.h.

Callback sets this to tell our update function it needs to update the transforms.

Definition at line 96 of file robot_model_display.h.

Handles actually drawing the robot.

Definition at line 94 of file robot_model_display.h.

Definition at line 100 of file robot_model_display.h.

Definition at line 105 of file robot_model_display.h.

Definition at line 107 of file robot_model_display.h.

Definition at line 98 of file robot_model_display.h.

Definition at line 104 of file robot_model_display.h.

Definition at line 102 of file robot_model_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