20
20
#include < AzFramework/Physics/PhysicsScene.h>
21
21
#include < AzFramework/Physics/PhysicsSystem.h>
22
22
#include < AzFramework/Physics/SimulatedBodies/RigidBody.h>
23
+ #include < Georeferencing/GeoreferenceBus.h>
23
24
#include < LmbrCentral/Scripting/TagComponentBus.h>
24
25
#include < ROS2/Frame/ROS2FrameComponent.h>
25
- #include < ROS2/Georeference/GeoreferenceBus.h>
26
26
#include < ROS2/Utilities/ROS2Conversions.h>
27
27
#include < ROS2/Utilities/ROS2Names.h>
28
28
#include < RigidBodyComponent.h>
@@ -291,7 +291,7 @@ namespace ROS2PoseControl
291
291
}
292
292
bool isWGS = m_configuration.m_useWGS && msg->header .frame_id == " wgs84" ;
293
293
294
- if (isWGS && !ROS2 ::GeoreferenceRequestsBus::HasHandlers ())
294
+ if (isWGS && !Georeferencing ::GeoreferenceRequestsBus::HasHandlers ())
295
295
{
296
296
AZ_Error (
297
297
" ROS2PoseControl" ,
@@ -304,15 +304,16 @@ namespace ROS2PoseControl
304
304
305
305
if (isWGS)
306
306
{
307
- ROS2 ::WGS::WGS84Coordinate coordinate;
307
+ Georeferencing ::WGS::WGS84Coordinate coordinate;
308
308
AZ::Vector3 coordinateInLevel = AZ::Vector3 (-1 );
309
309
AZ::Quaternion rotationInENU = AZ::Quaternion::CreateIdentity ();
310
310
coordinate.m_latitude = msg->pose .position .x ;
311
311
coordinate.m_longitude = msg->pose .position .y ;
312
312
coordinate.m_altitude = msg->pose .position .z ;
313
- ROS2::GeoreferenceRequestsBus::BroadcastResult (rotationInENU, &ROS2::GeoreferenceRequests::GetRotationFromLevelToENU);
314
- ROS2::GeoreferenceRequestsBus::BroadcastResult (
315
- coordinateInLevel, &ROS2::GeoreferenceRequests::ConvertFromWGS84ToLevel, coordinate);
313
+ Georeferencing::GeoreferenceRequestsBus::BroadcastResult (
314
+ rotationInENU, &Georeferencing::GeoreferenceRequests::GetRotationFromLevelToENU);
315
+ Georeferencing::GeoreferenceRequestsBus::BroadcastResult (
316
+ coordinateInLevel, &Georeferencing::GeoreferenceRequests::ConvertFromWGS84ToLevel, coordinate);
316
317
317
318
rotationInENU =
318
319
(rotationInENU.GetInverseFast () *
0 commit comments