ROS2SpawnPointComponent.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 "Spawner/ROS2SpawnPointComponentController.h"
  10. #include <AzCore/Component/Component.h>
  11. #include <AzCore/Math/Transform.h>
  12. #include <AzFramework/Components/ComponentAdapter.h>
  13. #include <ROS2/Spawner/SpawnerInfo.h>
  14. namespace ROS2
  15. {
  16. using ROS2SpawnPointComponentBase =
  17. AzFramework::Components::ComponentAdapter<ROS2SpawnPointComponentController, ROS2SpawnPointComponentConfig>;
  18. //! SpawnPoint indicates a place which is suitable to spawn a robot.
  19. class ROS2SpawnPointComponent : public ROS2SpawnPointComponentBase
  20. {
  21. public:
  22. AZ_COMPONENT(ROS2SpawnPointComponent, "{422c0495-5bbf-4207-ac17-8e607c6d3b30}", AZ::Component);
  23. ROS2SpawnPointComponent() = default;
  24. ROS2SpawnPointComponent(const ROS2SpawnPointComponentConfig& config);
  25. ~ROS2SpawnPointComponent() = default;
  26. static void Reflect(AZ::ReflectContext* context);
  27. //////////////////////////////////////////////////////////////////////////
  28. // ROS2SpawnPointComponentBase overrides
  29. void Activate() override;
  30. void Deactivate() override;
  31. //////////////////////////////////////////////////////////////////////////
  32. AZStd::pair<AZStd::string, SpawnPointInfo> GetInfo() const;
  33. };
  34. } // namespace ROS2