ROS2OdometryCovariance.h 880 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <AzCore/Math/Vector3.h>
  10. #include <AzCore/RTTI/RTTI.h>
  11. #include <AzCore/RTTI/TypeInfoSimple.h>
  12. #include <AzCore/Serialization/SerializeContext.h>
  13. #include <ROS2Sensors/ROS2SensorsTypeIds.h>
  14. #include <array>
  15. namespace ROS2Sensors
  16. {
  17. struct ROS2OdometryCovariance
  18. {
  19. AZ_TYPE_INFO(ROS2OdometryCovariance, ROS2OdometryCovarianceTypeId);
  20. static void Reflect(AZ::ReflectContext* context);
  21. std::array<double, 36> GetRosCovariance() const;
  22. AZ::Vector3 m_linearCovariance = AZ::Vector3::CreateZero();
  23. AZ::Vector3 m_angularCovariance = AZ::Vector3::CreateZero();
  24. };
  25. } // namespace ROS2Sensors