33 #include <OGRE/OgreVector3.h> 34 #include <OGRE/OgreMatrix3.h> 35 #include <OGRE/OgreSceneNode.h> 36 #include <OGRE/OgreSceneManager.h> 58 Ogre::Vector3 position = Ogre::Vector3(msg->object.pose.position.x, msg->object.pose.position.y, msg->object.pose.position.z);
62 double c_90 = cos(M_PI/2.0);
63 double s_90 = sin(M_PI/2.0);
64 Ogre::Matrix3 R_x(1,0,0,
67 Ogre::Quaternion q_flip;
68 q_flip.FromRotationMatrix(R_x);
70 Ogre::Quaternion orientation = Ogre::Quaternion(msg->object.pose.orientation.w, msg->object.pose.orientation.x,
71 msg->object.pose.orientation.y, msg->object.pose.orientation.z);
72 orientation = q_flip * orientation;
73 double radius = msg->object.shape_variables[0];
74 double height = msg->object.shape_variables[1];
75 int color = (int) msg->object.shape_variables[2];
78 Ogre::ColourValue c(0,0,0,1.0);
108 Ogre::Vector3 position;
109 Ogre::Quaternion orientation;
110 Ogre::ColourValue color;
Ogre::SceneNode * frame_node_
Ogre::SceneManager * scene_manager_
void setStyle(Styles style)
virtual void setColor(Ogre::ColourValue color)
virtual void setMessage(const tuw_object_msgs::ObjectWithCovariance::ConstPtr &msg)
void setMessage(const tuw_object_msgs::ObjectWithCovariance::ConstPtr &msg)
Visualization of a person as a wireframe bounding box.
~ObjectDetectionTrafficConeVisual()
Styles
Visualization style for an object.
ObjectDetectionTrafficConeVisual(Ogre::SceneManager *scene_manager, Ogre::SceneNode *parent_node)
void setColor(Ogre::ColourValue color)
boost::shared_ptr< TrafficConeVisual > traffic_cone_visual_