CameraSensorConfiguration.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  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/RTTI/RTTI.h>
  10. #include <AzCore/Serialization/SerializeContext.h>
  11. #include <AzCore/std/string/string.h>
  12. namespace ROS2
  13. {
  14. //! A structure capturing configuration of a single camera sensor with up to two image sources (color and depth).
  15. struct CameraSensorConfiguration
  16. {
  17. AZ_TYPE_INFO(CameraSensorConfiguration, "{386A2640-442B-473D-BC2A-665D049D7EF5}");
  18. static void Reflect(AZ::ReflectContext* context);
  19. static constexpr int m_minWidth = 1;
  20. static constexpr int m_minHeight = 1;
  21. float m_verticalFieldOfViewDeg = 90.0f; //!< Vertical field of view of camera sensor.
  22. float m_minVerticalFieldOfViewDeg = 0.0f;
  23. float m_maxVerticalFieldOfViewDeg = 360.0f;
  24. int m_width = 640; //!< Camera image width in pixels.
  25. int m_height = 480; //!< Camera image height in pixels.
  26. bool m_colorCamera = true; //!< Use color camera?
  27. bool m_depthCamera = true; //!< Use depth camera?
  28. float m_nearClipDistance = 0.1f; //!< Near clip distance of the camera.
  29. float m_farClipDistance = 100.0f; //!< Far clip distance of the camera.
  30. };
  31. } // namespace ROS2