#include <ROS2Transform.h>
|
| ROS2Transform (AZStd::string parentFrame, AZStd::string childFrame, bool isDynamic) |
|
void | Publish (const AZ::Transform &transform) |
|
Publishes transforms as standard ROS2 tf2 messages. Static transforms are published once.
- Note
- This class is already used through ROS2FrameComponent.
◆ ROS2Transform()
ROS2::ROS2Transform::ROS2Transform |
( |
AZStd::string |
parentFrame, |
|
|
AZStd::string |
childFrame, |
|
|
bool |
isDynamic |
|
) |
| |
Create a transform between given frames.
- Parameters
-
parentFrame | id of parent frame of transformation. |
childFrame | id of child frame of transformation. |
isDynamic | whether the transformation is dynamic (should be computed every frame) or static (only once). |
◆ Publish()
void ROS2::ROS2Transform::Publish |
( |
const AZ::Transform & |
transform | ) |
|
Construct and delegate publishing of a transform according to members' values.
- Parameters
-
transform | AZ::Transform with current transformation between m_parentFrame and m_childFrame. |
- Note
- The actual publishing is done by singleton tf broadcasters.
The documentation for this class was generated from the following file:
- Gems/ROS2/Code/Include/ROS2/Frame/ROS2Transform.h