22 Ogre::Vector3 dir( normal_x, normal_y, normal_z);
23 Ogre::Vector3
pos( x, y, z);
25 float length = dir.length()/10;
27 Ogre::Vector3
scale( length, length, length );
50 normal_arrow_->setScale( Ogre::Vector3( scale, scale, scale ) );
void setFramePosition(const Ogre::Vector3 &position)
void setValues(float x, float y, float z, float normal_x, float normal_y, float normal_z)
Ogre::SceneManager * scene_manager_
boost::shared_ptr< rviz::Arrow > normal_arrow_
Ogre::SceneNode * frame_node_
NormalVisual(Ogre::SceneManager *scene_manager, Ogre::SceneNode *parent_node)
TFSIMD_FORCE_INLINE tfScalar length(const Quaternion &q)
void setColor(float r, float g, float b, float a)
void setFrameOrientation(const Ogre::Quaternion &orientation)
void setScale(float scale)