tf2
master
tf2 maintains the relationship between coordinate frames in a tree structure buffered in time, and lets the user transform points, vectors, etc between any two coordinate frames at any desired point in time.
|
Go to the documentation of this file.
35 #include <builtin_interfaces/msg/time.hpp>
39 #include <geometry_msgs/msg/transform_stamped.hpp>
43 #include <rosidl_runtime_cpp/traits.hpp>
57 void doTransform(
const T& data_in, T& data_out,
const geometry_msgs::msg::TransformStamped& transform);
95 template<
typename A,
typename B>
104 template<
typename A,
typename B>
115 template <
class A,
class B>
119 rosidl_generator_traits::is_message<B>::value>
::convert(a, b);
132 #endif //TF2_CONVERT_H
void convert(const A &a, B &b)
Definition: convert.h:116
TimePoint stamp_
The timestamp associated with this data.
Definition: transform_datatypes.h:47
void fromMsg(const A &, B &b)
The data type which will be cross compatable with geometry_msgs This is the tf2 datatype equivilant o...
Definition: transform_datatypes.h:45
std::string getFrameId(const T &t)
Get the frame_id from data.
std::string frame_id_
The frame_id associated this data.
Definition: transform_datatypes.h:48
Definition: buffer_core.h:55
void doTransform(const T &data_in, T &data_out, const geometry_msgs::msg::TransformStamped &transform)
The templated function expected to be able to do a transform.
tf2::TimePoint getTimestamp(const T &t)
Get the timestamp from data.