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);
63 Ogre::Quaternion orientation = Ogre::Quaternion(msg->object.pose.orientation.w, msg->object.pose.orientation.x,
64 msg->object.pose.orientation.y, msg->object.pose.orientation.z);
72 Ogre::Quaternion rotation_local_q;
73 rotation_local_q.FromRotationMatrix(
door_visual_->getRotationMat());
74 orientation =
transform_.extractQuaternion() * orientation * rotation_local_q;
80 dv_bb->generateWireframe();
85 base_f_bb->generateBaseframe();
98 Ogre::Vector3 position;
99 Ogre::Quaternion orientation;
100 Ogre::ColourValue color;
Ogre::SceneNode * frame_node_
void setColor(Ogre::ColourValue color)
Visualization of a person as a wireframe bounding box.
Ogre::SceneManager * scene_manager_
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)
ObjectDetectionDoorVisual(Ogre::SceneManager *scene_manager, Ogre::SceneNode *parent_node)
boost::shared_ptr< DoorVisual > door_visual_
void setStyle(Styles style)
~ObjectDetectionDoorVisual()
Styles
Visualization style for an object.