wrench_visual.h
Go to the documentation of this file.
1 #ifndef WRENCHSTAMPED_VISUAL_H
2 #define WRENCHSTAMPED_VISUAL_H
3 
4 #include <geometry_msgs/Wrench.h>
5 #include "screw_visual.h"
6 
7 namespace rviz
8 {
9 // For API compatibility we provide the old WrenchVisual class as well
10 class [[deprecated("Replace with ScrewVisual")]] WrenchVisual;
11 class WrenchVisual : public ScrewVisual
12 {
13 public:
15 
16  inline void setWrench(const Ogre::Vector3& force, const Ogre::Vector3& torque)
17  {
18  setScrew(force, torque);
19  }
20  inline void setWrench(const geometry_msgs::Wrench& wrench)
21  {
22  setScrew(wrench.force, wrench.torque);
23  }
24 
25  inline void setForceColor(float r, float g, float b, float a)
26  {
27  setLinearColor(r, g, b, a);
28  }
29  inline void setTorqueColor(float r, float g, float b, float a)
30  {
31  setAngularColor(r, g, b, a);
32  }
33  inline void setForceScale(float s)
34  {
36  }
37  inline void setTorqueScale(float s)
38  {
40  }
41 };
42 
43 } // end namespace rviz
44 
45 #endif // WRENCHSTAMPED_VISUAL_H
rviz::ScrewVisual::setAngularColor
void setAngularColor(float r, float g, float b, float a)
Definition: screw_visual.cpp:111
rviz::ScrewVisual::ScrewVisual
ScrewVisual(Ogre::SceneManager *scene_manager, Ogre::SceneNode *parent_node)
Definition: screw_visual.cpp:14
rviz::WrenchVisual
Definition: wrench_visual.h:11
s
XmlRpcServer s
rviz::ScrewVisual::setScrew
void setScrew(const Ogre::Vector3 &linear, const Ogre::Vector3 &angular)
Definition: screw_visual.cpp:52
rviz::WrenchVisual::setTorqueScale
void setTorqueScale(float s)
Definition: wrench_visual.h:37
screw_visual.h
rviz::WrenchVisual::setForceColor
void setForceColor(float r, float g, float b, float a)
Definition: wrench_visual.h:25
rviz
Definition: add_display_dialog.cpp:54
rviz::ScrewVisual::setLinearScale
void setLinearScale(float s)
Definition: screw_visual.cpp:118
rviz::WrenchVisual::setForceScale
void setForceScale(float s)
Definition: wrench_visual.h:33
rviz::WrenchVisual::setTorqueColor
void setTorqueColor(float r, float g, float b, float a)
Definition: wrench_visual.h:29
rviz::WrenchVisual::setWrench
void setWrench(const Ogre::Vector3 &force, const Ogre::Vector3 &torque)
Definition: wrench_visual.h:16
rviz::ScrewVisual::setAngularScale
void setAngularScale(float s)
Definition: screw_visual.cpp:123
rviz::WrenchVisual::setWrench
void setWrench(const geometry_msgs::Wrench &wrench)
Definition: wrench_visual.h:20
rviz::ScrewVisual::setLinearColor
void setLinearColor(float r, float g, float b, float a)
Definition: screw_visual.cpp:106
rviz::ScrewVisual
Definition: screw_visual.h:16


rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust, William Woodall
autogenerated on Fri Aug 2 2024 08:43:10