ROS2Module.cpp 692 B

1234567891011121314151617181920212223242526
  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. #include <ROS2/ROS2TypeIds.h>
  9. #include <ROS2ModuleInterface.h>
  10. namespace ROS2
  11. {
  12. class ROS2Module : public ROS2ModuleInterface
  13. {
  14. public:
  15. AZ_RTTI(ROS2Module, ROS2ModuleTypeId, ROS2ModuleInterface);
  16. AZ_CLASS_ALLOCATOR(ROS2Module, AZ::SystemAllocator);
  17. };
  18. } // namespace ROS2
  19. #if defined(O3DE_GEM_NAME)
  20. AZ_DECLARE_MODULE_CLASS(AZ_JOIN(Gem_, O3DE_GEM_NAME), ROS2::ROS2Module)
  21. #else
  22. AZ_DECLARE_MODULE_CLASS(Gem_ROS2, ROS2::ROS2Module)
  23. #endif