ROS2SpawnPointEditorComponent.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. #ifndef WITH_GAZEBO_MSGS
  10. static_assert(false, "This file should not be included in the build, without WITH_GAZEBO_MSGS defined.");
  11. #endif
  12. #include "Spawner/ROS2SpawnPointComponent.h"
  13. #include "Spawner/ROS2SpawnPointComponentController.h"
  14. #include "Spawner/ROS2SpawnerEditorComponent.h"
  15. #include <AzToolsFramework/ToolsComponents/EditorComponentAdapter.h>
  16. #include <AzToolsFramework/ToolsComponents/EditorComponentBase.h>
  17. namespace ROS2
  18. {
  19. using ROS2SpawnPointEditorComponentBase = AzToolsFramework::Components::
  20. EditorComponentAdapter<ROS2SpawnPointComponentController, ROS2SpawnPointComponent, ROS2SpawnPointComponentConfig>;
  21. class ROS2SpawnPointEditorComponent : public ROS2SpawnPointEditorComponentBase
  22. {
  23. public:
  24. AZ_EDITOR_COMPONENT(
  25. ROS2SpawnPointEditorComponent, "{2AE1CAAE-B300-49FD-8F6D-F7AAABED1EC3}", AzToolsFramework::Components::EditorComponentBase);
  26. ROS2SpawnPointEditorComponent() = default;
  27. ROS2SpawnPointEditorComponent(const ROS2SpawnPointComponentConfig& config);
  28. ~ROS2SpawnPointEditorComponent() = default;
  29. static void Reflect(AZ::ReflectContext* context);
  30. //////////////////////////////////////////////////////////////////////////
  31. // ROS2SpawnPointEditorComponentBase overrides
  32. void Activate() override;
  33. void Deactivate() override;
  34. //////////////////////////////////////////////////////////////////////////
  35. AZStd::pair<AZStd::string, SpawnPointInfo> GetInfo() const;
  36. };
  37. } // namespace ROS2