38 #include <OgreQuaternion.h> 39 #include <OgreVector3.h> 42 Ogre::Vector3& visual_position,
43 Ogre::Quaternion& visual_orientation,
44 Ogre::Vector3& collision_position,
45 Ogre::Quaternion& collision_orientation)
const 47 const robot_model::LinkModel* link_model =
kinematic_state_->getLinkModel(link_name);
54 const Eigen::Vector3d& robot_visual_position =
kinematic_state_->getGlobalLinkTransform(link_model).translation();
55 Eigen::Quaterniond robot_visual_orientation(
kinematic_state_->getGlobalLinkTransform(link_model).linear());
56 visual_position = Ogre::Vector3(robot_visual_position.x(), robot_visual_position.y(), robot_visual_position.z());
57 visual_orientation = Ogre::Quaternion(robot_visual_orientation.w(), robot_visual_orientation.x(),
58 robot_visual_orientation.y(), robot_visual_orientation.z());
59 collision_position = visual_position;
60 collision_orientation = visual_orientation;
virtual bool getLinkTransforms(const std::string &link_name, Ogre::Vector3 &visual_position, Ogre::Quaternion &visual_orientation, Ogre::Vector3 &collision_position, Ogre::Quaternion &collision_orientation) const
robot_state::RobotStateConstPtr kinematic_state_