Public Member Functions | Protected Member Functions | Protected Attributes | Private Slots | List of all members
moveit_rviz_plugin::RobotStateDisplay Class Reference

#include <robot_state_display.h>

Inheritance diagram for moveit_rviz_plugin::RobotStateDisplay:
Inheritance graph
[legend]

Public Member Functions

const robot_model::RobotModelConstPtr & getRobotModel () const
 
virtual void reset ()
 
 RobotStateDisplay ()
 
void setLinkColor (const std::string &link_name, const QColor &color)
 
void unsetLinkColor (const std::string &link_name)
 
virtual void update (float wall_dt, float ros_dt)
 
virtual ~RobotStateDisplay ()
 
- Public Member Functions inherited from rviz::Display
virtual void deleteStatus (const QString &name)
 
void deleteStatusStd (const std::string &name)
 
 Display ()
 
void emitTimeSignal (ros::Time time)
 
QWidget * getAssociatedWidget () const
 
PanelDockWidgetgetAssociatedWidgetPanel ()
 
virtual QString getClassId () const
 
Ogre::SceneNode * getSceneNode () const
 
virtual QVariant getViewData (int column, int role) const
 
virtual Qt::ItemFlags getViewFlags (int column) const
 
uint32_t getVisibilityBits ()
 
void initialize (DisplayContext *context)
 
bool isEnabled () const
 
virtual void load (const Config &config)
 
virtual void save (Config config) const
 
void setAssociatedWidget (QWidget *widget)
 
virtual void setClassId (const QString &class_id)
 
void setFixedFrame (const QString &fixed_frame)
 
void setName (const QString &name)
 
virtual void setStatus (StatusProperty::Level level, const QString &name, const QString &text)
 
void setStatusStd (StatusProperty::Level level, const std::string &name, const std::string &text)
 
virtual void setTopic (const QString &topic, const QString &datatype)
 
void setVisibilityBits (uint32_t bits)
 
void unsetVisibilityBits (uint32_t bits)
 
virtual ~Display ()
 
- Public Member Functions inherited from rviz::BoolProperty
 BoolProperty (const QString &name=QString(), bool default_value=false, const QString &description=QString(), Property *parent=0, const char *changed_slot=0, QObject *receiver=0)
 
virtual bool getBool () const
 
virtual bool getDisableChildren ()
 
bool getDisableChildrenIfFalse ()
 
void setDisableChildrenIfFalse (bool disable)
 
virtual ~BoolProperty ()
 
- Public Member Functions inherited from rviz::Property
virtual void addChild (Property *child, int index=-1)
 
PropertychildAt (int index) const
 
virtual PropertychildAtUnchecked (int index) const
 
virtual void collapse ()
 
bool contains (Property *possible_child) const
 
virtual QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &option)
 
virtual void expand ()
 
virtual QString getDescription () const
 
virtual bool getHidden () const
 
virtual QIcon getIcon () const
 
PropertyTreeModelgetModel () const
 
virtual QString getName () const
 
std::string getNameStd () const
 
PropertygetParent () const
 
virtual bool getReadOnly ()
 
virtual QVariant getValue () const
 
void hide ()
 
bool isAncestorOf (Property *possible_child) const
 
virtual void moveChild (int from_index, int to_index)
 
virtual int numChildren () const
 
virtual bool paint (QPainter *painter, const QStyleOptionViewItem &option) const
 
 Property (const QString &name=QString(), const QVariant default_value=QVariant(), const QString &description=QString(), Property *parent=0, const char *changed_slot=0, QObject *receiver=0)
 
virtual void removeChildren (int start_index=0, int count=-1)
 
int rowNumberInParent () const
 
virtual void setDescription (const QString &description)
 
virtual void setHidden (bool hidden)
 
virtual void setIcon (const QIcon &icon)
 
void setModel (PropertyTreeModel *model)
 
void setParent (Property *new_parent)
 
virtual void setReadOnly (bool read_only)
 
void setShouldBeSaved (bool save)
 
virtual bool setValue (const QVariant &new_value)
 
bool shouldBeSaved () const
 
void show ()
 
virtual PropertysubProp (const QString &sub_name)
 
PropertytakeChild (Property *child)
 
virtual PropertytakeChildAt (int index)
 
virtual ~Property ()
 

Protected Member Functions

void calculateOffsetPosition ()
 Set the scene node's position, given the target frame and the planning frame. More...
 
virtual void fixedFrameChanged ()
 
void loadRobotModel ()
 
void newRobotStateCallback (const moveit_msgs::DisplayRobotState::ConstPtr &state)
 
virtual void onDisable ()
 
virtual void onEnable ()
 
virtual void onInitialize ()
 
void setHighlight (const std::string &link_name, const std_msgs::ColorRGBA &color)
 
void setLinkColor (rviz::Robot *robot, const std::string &link_name, const QColor &color)
 
void setRobotHighlights (const moveit_msgs::DisplayRobotState::_highlight_links_type &highlight_links)
 
void unsetHighlight (const std::string &link_name)
 
void unsetLinkColor (rviz::Robot *robot, const std::string &link_name)
 
- Protected Member Functions inherited from rviz::Display
virtual void clearStatuses ()
 
bool initialized () const
 
- Protected Member Functions inherited from rviz::Property
void loadValue (const Config &config)
 

Protected Attributes

rviz::ColorPropertyattached_body_color_property_
 
rviz::BoolPropertyenable_collision_visible_
 
rviz::BoolPropertyenable_link_highlight_
 
rviz::BoolPropertyenable_visual_visible_
 
std::map< std::string, std_msgs::ColorRGBA > highlights_
 
robot_model::RobotModelConstPtr kmodel_
 
robot_state::RobotStatePtr kstate_
 
bool load_robot_model_
 
rdf_loader::RDFLoaderPtr rdf_loader_
 
RobotStateVisualizationPtr robot_
 
rviz::FloatPropertyrobot_alpha_property_
 
rviz::StringPropertyrobot_description_property_
 
ros::Subscriber robot_state_subscriber_
 
rviz::RosTopicPropertyrobot_state_topic_property_
 
rviz::StringPropertyroot_link_name_property_
 
ros::NodeHandle root_nh_
 
rviz::BoolPropertyshow_all_links_
 
bool update_state_
 
- Protected Attributes inherited from rviz::Display
DisplayContextcontext_
 
QString fixed_frame_
 
Ogre::SceneManager * scene_manager_
 
Ogre::SceneNode * scene_node_
 
ros::NodeHandle threaded_nh_
 
ros::NodeHandle update_nh_
 
- Protected Attributes inherited from rviz::Property
bool child_indexes_valid_
 
QIcon icon_
 
PropertyTreeModelmodel_
 
QVariant value_
 

Private Slots

void changedAllLinks ()
 
void changedAttachedBodyColor ()
 
void changedEnableCollisionVisible ()
 
void changedEnableLinkHighlight ()
 
void changedEnableVisualVisible ()
 
void changedRobotDescription ()
 
void changedRobotSceneAlpha ()
 
void changedRobotStateTopic ()
 
void changedRootLinkName ()
 

Additional Inherited Members

- Public Slots inherited from rviz::Display
virtual void onEnableChanged ()
 
void queueRender ()
 
void setEnabled (bool enabled)
 
virtual void setIcon (const QIcon &icon)
 
- Public Slots inherited from rviz::BoolProperty
bool setBool (bool value)
 
- Signals inherited from rviz::Display
void timeSignal (rviz::Display *display, ros::Time time)
 
- Signals inherited from rviz::Property
void aboutToChange ()
 
void changed ()
 
void childListChanged (Property *this_property)
 

Detailed Description

Definition at line 68 of file robot_state_display.h.

Constructor & Destructor Documentation

moveit_rviz_plugin::RobotStateDisplay::RobotStateDisplay ( )

Definition at line 62 of file robot_state_display.cpp.

moveit_rviz_plugin::RobotStateDisplay::~RobotStateDisplay ( )
virtual

Definition at line 105 of file robot_state_display.cpp.

Member Function Documentation

void moveit_rviz_plugin::RobotStateDisplay::calculateOffsetPosition ( )
protected

Set the scene node's position, given the target frame and the planning frame.

Definition at line 414 of file robot_state_display.cpp.

void moveit_rviz_plugin::RobotStateDisplay::changedAllLinks ( )
privateslot

Definition at line 127 of file robot_state_display.cpp.

void moveit_rviz_plugin::RobotStateDisplay::changedAttachedBodyColor ( )
privateslot

Definition at line 247 of file robot_state_display.cpp.

void moveit_rviz_plugin::RobotStateDisplay::changedEnableCollisionVisible ( )
privateslot

Definition at line 182 of file robot_state_display.cpp.

void moveit_rviz_plugin::RobotStateDisplay::changedEnableLinkHighlight ( )
privateslot

Definition at line 159 of file robot_state_display.cpp.

void moveit_rviz_plugin::RobotStateDisplay::changedEnableVisualVisible ( )
privateslot

Definition at line 177 of file robot_state_display.cpp.

void moveit_rviz_plugin::RobotStateDisplay::changedRobotDescription ( )
privateslot

Definition at line 262 of file robot_state_display.cpp.

void moveit_rviz_plugin::RobotStateDisplay::changedRobotSceneAlpha ( )
privateslot

Definition at line 272 of file robot_state_display.cpp.

void moveit_rviz_plugin::RobotStateDisplay::changedRobotStateTopic ( )
privateslot

Definition at line 288 of file robot_state_display.cpp.

void moveit_rviz_plugin::RobotStateDisplay::changedRootLinkName ( )
privateslot

Definition at line 268 of file robot_state_display.cpp.

void moveit_rviz_plugin::RobotStateDisplay::fixedFrameChanged ( )
protectedvirtual

Reimplemented from rviz::Display.

Definition at line 428 of file robot_state_display.cpp.

const robot_model::RobotModelConstPtr& moveit_rviz_plugin::RobotStateDisplay::getRobotModel ( ) const
inline

Definition at line 79 of file robot_state_display.h.

void moveit_rviz_plugin::RobotStateDisplay::loadRobotModel ( )
protected

Definition at line 344 of file robot_state_display.cpp.

void moveit_rviz_plugin::RobotStateDisplay::newRobotStateCallback ( const moveit_msgs::DisplayRobotState::ConstPtr &  state)
protected

Definition at line 301 of file robot_state_display.cpp.

void moveit_rviz_plugin::RobotStateDisplay::onDisable ( )
protectedvirtual

Reimplemented from rviz::Display.

Definition at line 384 of file robot_state_display.cpp.

void moveit_rviz_plugin::RobotStateDisplay::onEnable ( )
protectedvirtual

Reimplemented from rviz::Display.

Definition at line 374 of file robot_state_display.cpp.

void moveit_rviz_plugin::RobotStateDisplay::onInitialize ( )
protectedvirtual

Reimplemented from rviz::Display.

Definition at line 109 of file robot_state_display.cpp.

void moveit_rviz_plugin::RobotStateDisplay::reset ( void  )
virtual

Reimplemented from rviz::Display.

Definition at line 118 of file robot_state_display.cpp.

void moveit_rviz_plugin::RobotStateDisplay::setHighlight ( const std::string &  link_name,
const std_msgs::ColorRGBA &  color 
)
protected

Definition at line 139 of file robot_state_display.cpp.

void moveit_rviz_plugin::RobotStateDisplay::setLinkColor ( const std::string &  link_name,
const QColor &  color 
)

Definition at line 313 of file robot_state_display.cpp.

void moveit_rviz_plugin::RobotStateDisplay::setLinkColor ( rviz::Robot robot,
const std::string &  link_name,
const QColor &  color 
)
protected

Definition at line 323 of file robot_state_display.cpp.

void moveit_rviz_plugin::RobotStateDisplay::setRobotHighlights ( const moveit_msgs::DisplayRobotState::_highlight_links_type &  highlight_links)
protected

Definition at line 192 of file robot_state_display.cpp.

void moveit_rviz_plugin::RobotStateDisplay::unsetHighlight ( const std::string &  link_name)
protected

Definition at line 149 of file robot_state_display.cpp.

void moveit_rviz_plugin::RobotStateDisplay::unsetLinkColor ( const std::string &  link_name)

Definition at line 318 of file robot_state_display.cpp.

void moveit_rviz_plugin::RobotStateDisplay::unsetLinkColor ( rviz::Robot robot,
const std::string &  link_name 
)
protected

Definition at line 332 of file robot_state_display.cpp.

void moveit_rviz_plugin::RobotStateDisplay::update ( float  wall_dt,
float  ros_dt 
)
virtual

Reimplemented from rviz::Display.

Definition at line 392 of file robot_state_display.cpp.

Member Data Documentation

rviz::ColorProperty* moveit_rviz_plugin::RobotStateDisplay::attached_body_color_property_
protected

Definition at line 141 of file robot_state_display.h.

rviz::BoolProperty* moveit_rviz_plugin::RobotStateDisplay::enable_collision_visible_
protected

Definition at line 144 of file robot_state_display.h.

rviz::BoolProperty* moveit_rviz_plugin::RobotStateDisplay::enable_link_highlight_
protected

Definition at line 142 of file robot_state_display.h.

rviz::BoolProperty* moveit_rviz_plugin::RobotStateDisplay::enable_visual_visible_
protected

Definition at line 143 of file robot_state_display.h.

std::map<std::string, std_msgs::ColorRGBA> moveit_rviz_plugin::RobotStateDisplay::highlights_
protected

Definition at line 133 of file robot_state_display.h.

robot_model::RobotModelConstPtr moveit_rviz_plugin::RobotStateDisplay::kmodel_
protected

Definition at line 131 of file robot_state_display.h.

robot_state::RobotStatePtr moveit_rviz_plugin::RobotStateDisplay::kstate_
protected

Definition at line 132 of file robot_state_display.h.

bool moveit_rviz_plugin::RobotStateDisplay::load_robot_model_
protected

Definition at line 135 of file robot_state_display.h.

rdf_loader::RDFLoaderPtr moveit_rviz_plugin::RobotStateDisplay::rdf_loader_
protected

Definition at line 130 of file robot_state_display.h.

RobotStateVisualizationPtr moveit_rviz_plugin::RobotStateDisplay::robot_
protected

Definition at line 129 of file robot_state_display.h.

rviz::FloatProperty* moveit_rviz_plugin::RobotStateDisplay::robot_alpha_property_
protected

Definition at line 140 of file robot_state_display.h.

rviz::StringProperty* moveit_rviz_plugin::RobotStateDisplay::robot_description_property_
protected

Definition at line 137 of file robot_state_display.h.

ros::Subscriber moveit_rviz_plugin::RobotStateDisplay::robot_state_subscriber_
protected

Definition at line 127 of file robot_state_display.h.

rviz::RosTopicProperty* moveit_rviz_plugin::RobotStateDisplay::robot_state_topic_property_
protected

Definition at line 139 of file robot_state_display.h.

rviz::StringProperty* moveit_rviz_plugin::RobotStateDisplay::root_link_name_property_
protected

Definition at line 138 of file robot_state_display.h.

ros::NodeHandle moveit_rviz_plugin::RobotStateDisplay::root_nh_
protected

Definition at line 126 of file robot_state_display.h.

rviz::BoolProperty* moveit_rviz_plugin::RobotStateDisplay::show_all_links_
protected

Definition at line 145 of file robot_state_display.h.

bool moveit_rviz_plugin::RobotStateDisplay::update_state_
protected

Definition at line 134 of file robot_state_display.h.


The documentation for this class was generated from the following files:


visualization
Author(s): Ioan Sucan , Dave Coleman , Sachin Chitta
autogenerated on Sun Oct 18 2020 13:19:09