|
moveit2
The MoveIt Motion Planning Framework for ROS 2.
|
Class that caches and updates transformations for given frames. More...
#include <transform_provider.hpp>
Public Member Functions | |
| TransformProvider (double update_rate=30.) | |
| Constructor. | |
| ~TransformProvider () | |
| Destructor. | |
| bool | getTransform (mesh_filter::MeshHandle handle, Eigen::Isometry3d &transform) const |
| returns the current transformation of a mesh given by its handle | |
| void | addHandle (mesh_filter::MeshHandle handle, const std::string &name) |
| registers a mesh with its handle | |
| void | setFrame (const std::string &frame) |
| sets the camera frame id. The returned transformations are in respect to this coordinate frame | |
| void | start () |
| starts the updating process. Done in a separate thread | |
| void | stop () |
| stops the update process/thread. | |
| void | setUpdateRate (double update_rate) |
| sets the update rate in Hz. This should be slow enough to reduce the system load but fast enough to get up-to-date transformations. For PSDK compatible devices this value should be around 30 Hz. | |
Class that caches and updates transformations for given frames.
Definition at line 55 of file transform_provider.hpp.
| TransformProvider::TransformProvider | ( | double | update_rate = 30. | ) |
Constructor.
| [in] | update_rate | update rate in Hz |
Definition at line 50 of file transform_provider.cpp.
| TransformProvider::~TransformProvider | ( | ) |
Destructor.
Definition at line 58 of file transform_provider.cpp.

| void TransformProvider::addHandle | ( | mesh_filter::MeshHandle | handle, |
| const std::string & | name | ||
| ) |
registers a mesh with its handle
| [in] | handle | handle of the mesh |
| [in] | name | frame_id_ of the mesh |
Definition at line 75 of file transform_provider.cpp.
| bool TransformProvider::getTransform | ( | mesh_filter::MeshHandle | handle, |
| Eigen::Isometry3d & | transform | ||
| ) | const |
returns the current transformation of a mesh given by its handle
| [in] | handle | handle of the mesh |
| [out] | transform | pose of the mesh in camera coordinate system |
Definition at line 98 of file transform_provider.cpp.
| void TransformProvider::setFrame | ( | const std::string & | frame | ) |
sets the camera frame id. The returned transformations are in respect to this coordinate frame
| frame | frame id of parent/camera coordinate system. |
Definition at line 83 of file transform_provider.cpp.
| void TransformProvider::setUpdateRate | ( | double | update_rate | ) |
sets the update rate in Hz. This should be slow enough to reduce the system load but fast enough to get up-to-date transformations. For PSDK compatible devices this value should be around 30 Hz.
| [in] | update_rate | update rate in Hz |
Definition at line 125 of file transform_provider.cpp.
| void TransformProvider::start | ( | ) |
starts the updating process. Done in a separate thread
Definition at line 63 of file transform_provider.cpp.
| void TransformProvider::stop | ( | ) |
stops the update process/thread.
Definition at line 69 of file transform_provider.cpp.
