ROS2ControllersEditorModule.cpp 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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
  4. * of this distribution.
  5. *
  6. * SPDX-License-Identifier: Apache-2.0 OR MIT
  7. *
  8. */
  9. #include "ROS2ControllersEditorSystemComponent.h"
  10. #include <ROS2Controllers/ROS2ControllersTypeIds.h>
  11. #include <ROS2ControllersModuleInterface.h>
  12. #include <Manipulation/JointsManipulationEditorComponent.h>
  13. #include <Manipulation/JointsPositionsEditorComponent.h>
  14. namespace ROS2Controllers
  15. {
  16. class ROS2ControllersEditorModule : public ROS2ControllersModuleInterface
  17. {
  18. public:
  19. AZ_RTTI(ROS2ControllersEditorModule, ROS2ControllersEditorModuleTypeId, ROS2ControllersModuleInterface);
  20. AZ_CLASS_ALLOCATOR(ROS2ControllersEditorModule, AZ::SystemAllocator);
  21. ROS2ControllersEditorModule()
  22. {
  23. m_descriptors.insert(
  24. m_descriptors.end(),
  25. {
  26. ROS2ControllersEditorSystemComponent::CreateDescriptor(),
  27. JointsManipulationEditorComponent::CreateDescriptor(),
  28. JointsPositionsEditorComponent::CreateDescriptor(),
  29. });
  30. }
  31. /**
  32. * Add required SystemComponents to the SystemEntity.
  33. * Non-SystemComponents should not be added here
  34. */
  35. AZ::ComponentTypeList GetRequiredSystemComponents() const override
  36. {
  37. return AZ::ComponentTypeList{
  38. azrtti_typeid<ROS2ControllersEditorSystemComponent>(),
  39. };
  40. }
  41. };
  42. } // namespace ROS2Controllers
  43. #if defined(O3DE_GEM_NAME)
  44. AZ_DECLARE_MODULE_CLASS(AZ_JOIN(Gem_, O3DE_GEM_NAME, _Editor), ROS2Controllers::ROS2ControllersEditorModule)
  45. #else
  46. AZ_DECLARE_MODULE_CLASS(Gem_ROS2Controllers_Editor, ROS2Controllers::ROS2ControllersEditorModule)
  47. #endif