IROS2HandlerBase.h 1.0 KB

12345678910111213141516171819202122232425262728
  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/std/containers/unordered_set.h>
  10. #include <AzCore/std/string/string_view.h>
  11. #include <SimulationInterfaces/ROS2SimulationInterfacesRequestBus.h>
  12. #include <rclcpp/rclcpp.hpp>
  13. namespace ROS2SimulationInterfaces
  14. {
  15. // common interface to store all simulation feature ros2 handlers in common container
  16. class IROS2HandlerBase
  17. {
  18. public:
  19. using SimulationFeatureType = ROS2SimulationInterfaces::SimulationFeatureType;
  20. virtual ~IROS2HandlerBase() = default;
  21. virtual AZStd::unordered_set<SimulationFeatureType> GetProvidedFeatures() = 0;
  22. virtual AZStd::string_view GetTypeName() const = 0;
  23. virtual AZStd::string_view GetDefaultName() const = 0;
  24. virtual void Initialize(rclcpp::Node::SharedPtr& node) = 0;
  25. };
  26. } // namespace ROS2SimulationInterfaces