|
| int | Init () |
| | Constructor for a Buffer object. More...
|
| |
| virtual TransformStamped | lookupTransform (const std::string &target_frame, const std::string &source_frame, const cyber::Time &time, const float timeout_second=0.01f) const |
| | Get the transform between two frames by frame ID. More...
|
| |
| virtual TransformStamped | lookupTransform (const std::string &target_frame, const cyber::Time &target_time, const std::string &source_frame, const cyber::Time &source_time, const std::string &fixed_frame, const float timeout_second=0.01f) const |
| | Get the transform between two frames by frame ID assuming fixed frame. More...
|
| |
| virtual bool | canTransform (const std::string &target_frame, const std::string &source_frame, const cyber::Time &target_time, const float timeout_second=0.01f, std::string *errstr=nullptr) const |
| | Test if a transform is possible. More...
|
| |
| virtual bool | canTransform (const std::string &target_frame, const cyber::Time &target_time, const std::string &source_frame, const cyber::Time &source_time, const std::string &fixed_frame, const float timeout_second=0.01f, std::string *errstr=nullptr) const |
| | Test if a transform is possible. More...
|
| |
| bool | GetLatestStaticTF (const std::string &frame_id, const std::string &child_frame_id, TransformStamped *tf) |
| |
| template<typename T > |
| T & | transform (const T &in, T &out, const std::string &target_frame, float timeout=0.0f) const |
| |
| template<typename T > |
| T | transform (const T &in, const std::string &target_frame, float timeout=0.0f) const |
| |
| template<typename A , typename B > |
| B & | transform (const A &in, B &out, const std::string &target_frame, float timeout=0.0f) const |
| |
| template<typename T > |
| T & | transform (const T &in, T &out, const std::string &target_frame, const cyber::Time &target_time, const std::string &fixed_frame, float timeout=0.0f) const |
| |
| template<typename T > |
| T | transform (const T &in, const std::string &target_frame, const cyber::Time &target_time, const std::string &fixed_frame, float timeout=0.0f) const |
| |
| template<typename A , typename B > |
| B & | transform (const A &in, B &out, const std::string &target_frame, const cyber::Time &target_time, const std::string &fixed_frame, float timeout=0.0f) const |
| |
| virtual TransformStamped apollo::transform::Buffer::lookupTransform |
( |
const std::string & |
target_frame, |
|
|
const cyber::Time & |
target_time, |
|
|
const std::string & |
source_frame, |
|
|
const cyber::Time & |
source_time, |
|
|
const std::string & |
fixed_frame, |
|
|
const float |
timeout_second = 0.01f |
|
) |
| const |
|
virtual |
Get the transform between two frames by frame ID assuming fixed frame.
- Parameters
-
| target_frame | The frame to which data should be transformed |
| target_time | The time to which the data should be transformed. (0 will get the latest) |
| source_frame | The frame where the data originated |
| source_time | The time at which the source_frame should be evaluated. (0 will get the latest) |
| fixed_frame | The frame in which to assume the transform is constant in time. |
| timeout | How long to block before failing |
- Returns
- The transform between the frames
Possible exceptions tf2::LookupException, tf2::ConnectivityException, tf2::ExtrapolationException, tf2::InvalidArgumentException
Implements apollo::transform::BufferInterface.