Go to the documentation of this file.
2 #include <OgreSceneNode.h>
3 #include <OgreSceneManager.h>
72 Ogre::Vector3 axis_z(0, 0, 1);
73 Ogre::Quaternion orientation = axis_z.getRotationTo(
angular);
74 if (std::isnan(orientation.x) || std::isnan(orientation.y) || std::isnan(orientation.z))
75 orientation = Ogre::Quaternion::IDENTITY;
80 Ogre::Vector3(angular_length / 4, 0, angular_length / 2));
83 for (
int i = 4; i <= 32; i++)
86 Ogre::Vector3((angular_length / 4) * cos(i * 2 * M_PI / 32),
87 (angular_length / 4) * sin(i * 2 * M_PI / 32), angular_length / 2);
void setAngularColor(float r, float g, float b, float a)
void set(float shaft_length, float shaft_diameter, float head_length, float head_diameter)
Set the parameters for this arrow.
An object that displays a multi-segment line strip rendered as billboards.
void setLineWidth(float width)
ScrewVisual(Ogre::SceneManager *scene_manager, Ogre::SceneNode *parent_node)
An arrow consisting of a cylinder and a cone.
constexpr const char * linear()
rviz::Arrow * arrow_linear_
Ogre::SceneNode * frame_node_
void setFrameOrientation(const Ogre::Quaternion &orientation)
void setScrew(const Ogre::Vector3 &linear, const Ogre::Vector3 &angular)
Ogre::SceneNode * angular_node_
Ogre::SceneNode * linear_node_
Ogre::SceneManager * scene_manager_
void setLinearScale(float s)
rviz::Arrow * circle_arrow_angular_
constexpr const char * angular()
void setDirection(const Ogre::Vector3 &direction)
Set the direction of the arrow.
void setHideSmallValues(bool h)
rviz::BillboardLine * circle_angular_
void setVisible(bool visible)
void setAngularScale(float s)
void setLinearColor(float r, float g, float b, float a)
void setPosition(const Ogre::Vector3 &position) override
Set the position of the base of the arrow.
void setColor(float r, float g, float b, float a) override
Set the color of this arrow. Sets both the head and shaft color to the same value....
void setFramePosition(const Ogre::Vector3 &position)
rviz::Arrow * arrow_angular_
void setColor(float r, float g, float b, float a) override
Set the color of the object. Values are in the range [0, 1].
void setScale(const Ogre::Vector3 &scale) override
Set the scale of the object. Always relative to the identity orientation of the object.
void addPoint(const Ogre::Vector3 &point)
rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust, William Woodall
autogenerated on Fri Dec 13 2024 03:31:02