35 #include <OgreVector3.h> 36 #include <OgreQuaternion.h> 42 const std::string& tf_prefix)
43 : frame_manager_(frame_manager), status_callback_(status_cb), tf_prefix_(tf_prefix)
48 Ogre::Vector3& visual_position,
49 Ogre::Quaternion& visual_orientation,
50 Ogre::Vector3& collision_position,
51 Ogre::Quaternion& collision_orientation)
const 53 std::string link_name = _link_name;
59 Ogre::Vector3 position;
60 Ogre::Quaternion orientation;
72 visual_position = position;
73 visual_orientation = orientation;
74 collision_position = position;
75 collision_orientation = orientation;
81 const std::string& link_name,
82 const std::string& text)
const
void setLinkStatus(StatusLevel level, const std::string &link_name, const std::string &text) const override
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
boost::function< void(StatusLevel, const std::string &, const std::string &)> StatusCallback
std::string resolve(const std::string &prefix, const std::string &frame_name)
Helper class for transforming data into Ogre's world frame (the fixed frame).
const std::string & getFixedFrame()
Return the current fixed frame name.
StatusCallback status_callback_
bool getTransform(const Header &header, Ogre::Vector3 &position, Ogre::Quaternion &orientation)
Return the pose for a header, relative to the fixed frame, in Ogre classes.
FrameManager * frame_manager_
TFLinkUpdater(FrameManager *frame_manager, const StatusCallback &status_cb=StatusCallback(), const std::string &tf_prefix=std::string())