|
@@ -18,8 +18,18 @@ namespace ROS2
|
|
|
{
|
|
|
void ROS2FrameComponent::Activate()
|
|
|
{
|
|
|
+ m_namespaceConfiguration.PopulateNamespace(IsTopLevel(), GetEntity()->GetName());
|
|
|
+
|
|
|
if (m_publishTransform)
|
|
|
{
|
|
|
+ AZ_TracePrintf(
|
|
|
+ "ROS2FrameComponent",
|
|
|
+ "Setting up %s transfrom between parent %s and child %s to be published %s",
|
|
|
+ IsDynamic() ? "dynamic" : "static",
|
|
|
+ GetParentFrameID().data(),
|
|
|
+ GetFrameID().data(),
|
|
|
+ IsDynamic() ? "continuously to /tf" : "once to /tf_static");
|
|
|
+
|
|
|
m_ros2Transform = AZStd::make_unique<ROS2Transform>(GetParentFrameID(), GetFrameID(), IsDynamic());
|
|
|
if (IsDynamic())
|
|
|
{
|
|
@@ -30,7 +40,6 @@ namespace ROS2
|
|
|
m_ros2Transform->Publish(GetFrameTransform());
|
|
|
}
|
|
|
}
|
|
|
- m_namespaceConfiguration.PopulateNamespace(IsTopLevel(), GetEntity()->GetName());
|
|
|
}
|
|
|
|
|
|
void ROS2FrameComponent::Deactivate()
|