forked from tier4/autoware.universe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(autoware_ad_api_specs): define localization interface (tier4#1560)
feat(autoware_ad_api_msgs): define localization interface Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp>
- Loading branch information
1 parent
64874c8
commit bb636a4
Showing
5 changed files
with
102 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
common/autoware_ad_api_msgs/localization/msg/LocalizationInitializationState.msg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
uint16 UNKNOWN = 0 | ||
uint16 UNINITIALIZED = 1 | ||
uint16 INITIALIZING = 2 | ||
uint16 INITIALIZED = 3 | ||
|
||
builtin_interfaces/Time stamp | ||
uint16 state |
7 changes: 7 additions & 0 deletions
7
common/autoware_ad_api_msgs/localization/srv/InitializeLocalization.srv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
geometry_msgs/PoseWithCovarianceStamped[<=1] pose | ||
--- | ||
uint16 ERROR_UNSAFE = 1 | ||
uint16 ERROR_GNSS_SUPPORT = 2 | ||
uint16 ERROR_GNSS = 3 | ||
uint16 ERROR_ESTIMATION = 4 | ||
autoware_ad_api_msgs/ResponseStatus status |
43 changes: 43 additions & 0 deletions
43
common/autoware_ad_api_specs/include/autoware_ad_api_specs/localization.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Copyright 2022 TIER IV, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
#ifndef AUTOWARE_AD_API_SPECS__LOCALIZATION_HPP_ | ||
#define AUTOWARE_AD_API_SPECS__LOCALIZATION_HPP_ | ||
|
||
#include <rclcpp/qos.hpp> | ||
|
||
#include <autoware_ad_api_msgs/msg/localization_initialization_state.hpp> | ||
#include <autoware_ad_api_msgs/srv/initialize_localization.hpp> | ||
|
||
namespace autoware_ad_api::localization | ||
{ | ||
|
||
struct Initialize | ||
{ | ||
using Service = autoware_ad_api_msgs::srv::InitializeLocalization; | ||
static constexpr char name[] = "/api/localization/initialize"; | ||
}; | ||
|
||
struct InitializationState | ||
{ | ||
using Message = autoware_ad_api_msgs::msg::LocalizationInitializationState; | ||
static constexpr char name[] = "/api/localization/initialization_state"; | ||
static constexpr size_t depth = 3; | ||
static constexpr auto reliability = RMW_QOS_POLICY_RELIABILITY_RELIABLE; | ||
static constexpr auto durability = RMW_QOS_POLICY_DURABILITY_TRANSIENT_LOCAL; | ||
}; | ||
|
||
} // namespace autoware_ad_api::localization | ||
|
||
#endif // AUTOWARE_AD_API_SPECS__LOCALIZATION_HPP_ |
43 changes: 43 additions & 0 deletions
43
common/component_interface_specs/include/component_interface_specs/localization.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Copyright 2022 TIER IV, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
#ifndef COMPONENT_INTERFACE_SPECS__LOCALIZATION_HPP_ | ||
#define COMPONENT_INTERFACE_SPECS__LOCALIZATION_HPP_ | ||
|
||
#include <rclcpp/qos.hpp> | ||
|
||
#include <autoware_ad_api_msgs/msg/localization_initialization_state.hpp> | ||
#include <autoware_ad_api_msgs/srv/initialize_localization.hpp> | ||
|
||
namespace localization_interface | ||
{ | ||
|
||
struct Initialize | ||
{ | ||
using Service = autoware_ad_api_msgs::srv::InitializeLocalization; | ||
static constexpr char name[] = "/localization/initialize"; | ||
}; | ||
|
||
struct InitializationState | ||
{ | ||
using Message = autoware_ad_api_msgs::msg::LocalizationInitializationState; | ||
static constexpr char name[] = "/localization/initialization_state"; | ||
static constexpr size_t depth = 3; | ||
static constexpr auto reliability = RMW_QOS_POLICY_RELIABILITY_RELIABLE; | ||
static constexpr auto durability = RMW_QOS_POLICY_DURABILITY_TRANSIENT_LOCAL; | ||
}; | ||
|
||
} // namespace localization_interface | ||
|
||
#endif // COMPONENT_INTERFACE_SPECS__LOCALIZATION_HPP_ |