38 #include <OgreVector3.h>
39 #include <OgreQuaternion.h>
42 Ogre::Vector3& visual_position,
43 Ogre::Quaternion& visual_orientation,
44 Ogre::Vector3& collision_position,
45 Ogre::Quaternion& collision_orientation)
const
55 const Eigen::Vector3d& robot_visual_position = kinematic_state_->getGlobalLinkTransform(link_model).translation();
56 Eigen::Quaterniond robot_visual_orientation(kinematic_state_->getGlobalLinkTransform(link_model).linear());
57 visual_position = Ogre::Vector3(robot_visual_position.x(), robot_visual_position.y(), robot_visual_position.z());
58 visual_orientation = Ogre::Quaternion(robot_visual_orientation.w(), robot_visual_orientation.x(),
59 robot_visual_orientation.y(), robot_visual_orientation.z());
60 collision_position = visual_position;
61 collision_orientation = visual_orientation;
A link from the robot. Contains the constant transform applied to the link and its geometry.
bool getLinkTransforms(const std::string &link_name, Ogre::Vector3 &visual_position, Ogre::Quaternion &visual_orientation, Ogre::Vector3 &collision_position, Ogre::Quaternion &collision_orientation) const override
Vec3fX< details::Vec3Data< double > > Vector3d