Template Class FrameTransformerInterface
Defined in File FrameTransformer.h
Inheritance Relationships
Derived Type
public mrpt::poses::FrameTransformer< DIM >(Template Class FrameTransformer)
Class Documentation
-
template<size_t DIM>
class FrameTransformerInterface Virtual base class for interfaces to a ROS tf2-like service capable of “publishing” and “looking-up” relative poses between two “coordinate frames”. Use derived classes for:
wrapping real ROS tf (TO-DO in mrpt-bridge), or
using a pure MRPT standalone TF service with mrpt::poses::FrameTransformer
Frame IDs are strings. MRPT modules use the standard ROS REP 105 document regarding common names for frames:
base_link: “the robot”odom: Origin for odometrymap: Origin for “the map”
See also
- Template Parameters:
DIM – Can be 2 for SE(2), 2D transformations; or 3 for SE(3), 3D transformations.
Subclassed by mrpt::poses::FrameTransformer< DIM >
Public Types
-
using light_type = typename Lie::SE<DIM>::light_type
This will be mapped to mrpt::math::TPose2D (DIM=2) or mrpt::math::TPose3D (DIM=3)
Public Functions
-
FrameTransformerInterface()
-
virtual ~FrameTransformerInterface()
-
FrameTransformerInterface(const FrameTransformerInterface&) = default
-
FrameTransformerInterface(FrameTransformerInterface&&) = default
-
FrameTransformerInterface &operator=(const FrameTransformerInterface&) = default
-
FrameTransformerInterface &operator=(FrameTransformerInterface&&) = default
-
virtual void sendTransform(const std::string &parent_frame, const std::string &child_frame, const pose_t &child_wrt_parent, const mrpt::system::TTimeStamp ×tamp = mrpt::Clock::now()) = 0
Publish a time-stampped transform between two frames
-
virtual FrameLookUpStatus lookupTransform(const std::string &target_frame, const std::string &source_frame, light_type &child_wrt_parent, const mrpt::system::TTimeStamp query_time = INVALID_TIMESTAMP, const double timeout_secs = .0) = 0
Queries the current pose of
target_framewrt (“as seen from”)source_frame. It tries to return the pose at the given timepoint, unless it is INVALID_TIMESTAMP (default), which means returning the latest know transformation.- Parameters:
timeout_secs – Timeout