30#include <OGRE/OgreVector3.h>
31#include <OGRE/OgreSceneNode.h>
32#include <OGRE/OgreSceneManager.h>
34#include <rviz/ogre_helpers/arrow.h>
68 const geometry_msgs::Vector3& a = msg->linear_acceleration;
71 Ogre::Vector3 acc( a.x, a.y, a.z );
74 float length = acc.length();
77 Ogre::Vector3 scale( length, length, length );
ImuVisual(Ogre::SceneManager *scene_manager, Ogre::SceneNode *parent_node)
void setFramePosition(const Ogre::Vector3 &position)
void setMessage(const sensor_msgs::Imu::ConstPtr &msg)
void setColor(float r, float g, float b, float a)
boost::shared_ptr< rviz::Arrow > acceleration_arrow_
void setFrameOrientation(const Ogre::Quaternion &orientation)
Ogre::SceneManager * scene_manager_
Ogre::SceneNode * frame_node_