|
| 1 | +// Copyright 2022 TIER IV, Inc. |
| 2 | +// |
| 3 | +// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +// you may not use this file except in compliance with the License. |
| 5 | +// You may obtain a copy of the License at |
| 6 | +// |
| 7 | +// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +// |
| 9 | +// Unless required by applicable law or agreed to in writing, software |
| 10 | +// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +// See the License for the specific language governing permissions and |
| 13 | +// limitations under the License. |
| 14 | + |
| 15 | +#ifndef AUTOWARE_AD_API_SPECS__LOCALIZATION_HPP_ |
| 16 | +#define AUTOWARE_AD_API_SPECS__LOCALIZATION_HPP_ |
| 17 | + |
| 18 | +#include <rclcpp/qos.hpp> |
| 19 | + |
| 20 | +#include <autoware_ad_api_msgs/msg/localization_initialization_state.hpp> |
| 21 | +#include <autoware_ad_api_msgs/srv/initialize_localization.hpp> |
| 22 | + |
| 23 | +namespace autoware_ad_api::localization |
| 24 | +{ |
| 25 | + |
| 26 | +struct Initialize |
| 27 | +{ |
| 28 | + using Service = autoware_ad_api_msgs::srv::InitializeLocalization; |
| 29 | + static constexpr char name[] = "/api/localization/initialize"; |
| 30 | +}; |
| 31 | + |
| 32 | +struct InitializationState |
| 33 | +{ |
| 34 | + using Message = autoware_ad_api_msgs::msg::LocalizationInitializationState; |
| 35 | + static constexpr char name[] = "/api/localization/initialization_state"; |
| 36 | + static constexpr size_t depth = 3; |
| 37 | + static constexpr auto reliability = RMW_QOS_POLICY_RELIABILITY_RELIABLE; |
| 38 | + static constexpr auto durability = RMW_QOS_POLICY_DURABILITY_TRANSIENT_LOCAL; |
| 39 | +}; |
| 40 | + |
| 41 | +} // namespace autoware_ad_api::localization |
| 42 | + |
| 43 | +#endif // AUTOWARE_AD_API_SPECS__LOCALIZATION_HPP_ |
0 commit comments