123456789101112131415161718192021222324252627282930313233343536 |
- /*
- * Copyright (c) Contributors to the Open 3D Engine Project.
- * For complete copyright and license terms please see the LICENSE at the root of this distribution.
- *
- * SPDX-License-Identifier: Apache-2.0 OR MIT
- *
- */
- #pragma once
- #include "ROS2ServiceBase.h"
- #include <AzCore/std/string/string_view.h>
- #include <SimulationInterfaces/ROS2SimulationInterfacesRequestBus.h>
- #include <simulation_interfaces/srv/get_simulator_features.hpp>
- namespace ROS2SimulationInterfaces
- {
- class GetSimulationFeaturesServiceHandler : public ROS2ServiceBase<simulation_interfaces::srv::GetSimulatorFeatures>
- {
- public:
- AZStd::string_view GetTypeName() const override
- {
- return "GetSimulationFeatures";
- }
- AZStd::string_view GetDefaultName() const override
- {
- return "get_simulation_features";
- }
- AZStd::unordered_set<SimulationFeatureType> GetProvidedFeatures() override;
- AZStd::optional<Response> HandleServiceRequest(const std::shared_ptr<rmw_request_id_t> header, const Request& request) override;
- };
- } // namespace ROS2SimulationInterfaces
|