GetEntitiesServiceHandler.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  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 "ROS2ServiceBase.h"
  10. #include <AzCore/std/string/string_view.h>
  11. #include <simulation_interfaces/srv/get_entities.hpp>
  12. namespace ROS2SimulationInterfaces
  13. {
  14. class GetEntitiesServiceHandler : public ROS2ServiceBase<simulation_interfaces::srv::GetEntities>
  15. {
  16. public:
  17. AZStd::string_view GetTypeName() const override
  18. {
  19. return "GetEntities";
  20. }
  21. AZStd::string_view GetDefaultName() const override
  22. {
  23. return "get_entities";
  24. }
  25. AZStd::unordered_set<SimulationFeatureType> GetProvidedFeatures() override;
  26. AZStd::optional<Response> HandleServiceRequest(const std::shared_ptr<rmw_request_id_t> header, const Request& request) override;
  27. private:
  28. };
  29. } // namespace ROS2SimulationInterfaces