Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: sync upstream #91

Merged
merged 120 commits into from
Aug 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
bbecb7f
feat(tier4_autoware_utils, obstacle_cruise_planner): add function to …
takayuki5168 Aug 5, 2022
d845a78
docs(behavior_velocity_planner): add map format doc (#1266)
takayuki5168 Aug 5, 2022
965c0be
docs(behavior_velocity_planner, obstacle_stop_planner): add descripti…
satoshi-ota Aug 5, 2022
1e9e9af
fix(costmap_generator): restrict costmap within parking lot (#996)
NorahXiong Aug 5, 2022
0fe0931
feat(behavior_path_planner): fix resampling method (#1526)
purewater0901 Aug 5, 2022
ac85255
feat(obstacle_cruise_planner): update obstacle cruise planner (#1531)
purewater0901 Aug 8, 2022
a9acb3f
feat(localization_error_monitor): change subscribing topic type (#1532)
kminoda Aug 8, 2022
3dbcae2
fix(behavior_path_planner): fix turn singal (#1539)
tkimura4 Aug 8, 2022
73c6e47
fix(control_performance_analysis): fix choosing wrong closest traject…
brkay54 Aug 8, 2022
dfa60d5
fix(behavior_path_planner): fix not to make a large jerk avoidance pa…
TakaHoribe Aug 9, 2022
dfd7c04
fix(behavior_path_planner): keep previously inserted shift points (#1…
kyoichi-sugahara Aug 9, 2022
51ab335
feat(motion_utils): add new nearest index function (#1396)
takayuki5168 Aug 9, 2022
8f8208f
feat(tvm_utility): port tvm_utility (#893)
LucaFos Aug 9, 2022
3a7b9c2
ci(pre-commit): autoupdate (#1310)
pre-commit-ci[bot] Aug 9, 2022
6f75dad
chore: sync files (#1514)
awf-autoware-bot[bot] Aug 9, 2022
564dbb3
fix(lidar_centerpoint): fix function sigmoid() (#1555)
WfHit Aug 10, 2022
e4e5b48
fix(scenario_selector): timing of handling route (#1546)
shmpwk Aug 10, 2022
b087957
fix(simple_planning_simulator): fix timer type (#1538)
TakaHoribe Aug 10, 2022
f8b090b
fix(vehicle_info_util): fix wrong image (#1548)
beyzanurkaya Aug 10, 2022
0685e63
fix: update trt api (#1472)
wep21 Aug 10, 2022
3dfe545
chore(occlusion_spot): change min distance to insert (#1563)
taikitanaka3 Aug 10, 2022
b19ec4c
fix(tier4_autoware_utils): add maybe_unused (#1551)
satoshi-ota Aug 12, 2022
4296138
fix(behavior_path_planner): pull_over far goal bug (#1571)
kosuke55 Aug 12, 2022
cc699cc
fix(behavior_velocity_planner): fix clang-tidy warning in crosswalk m…
satoshi-ota Aug 15, 2022
319d15e
fix(behavior_velocity_planner, tier4_planning_launch): modify delay_r…
takayuki5168 Aug 15, 2022
30ddff0
feat(obstacle_cruise_planner): delete shape from target obstacle (#1558)
purewater0901 Aug 15, 2022
18bee93
refactor(tier4_state_rviz_plugin): apply clang-tidy (#1589)
h-ohta Aug 15, 2022
b6d88ea
fix(ekf_localizer): modified std deviation to deviation (#1565)
cyn-liu Aug 15, 2022
9ff4416
docs(behavior_path_planner): update avoidance module's documentation …
zulfaqar-azmi-t4 Aug 16, 2022
98c46eb
fix(behavior_velocity_planner): fix the algorithm to get lane_ids fro…
tkimura4 Aug 16, 2022
b0d3b9d
fix(vehicle_cmd_gate): fix double-published topic (#1537)
tkimura4 Aug 17, 2022
4e68903
refactor(behavior_path_planner): remove unrelated header file (#1593)
zulfaqar-azmi-t4 Aug 17, 2022
8f2742e
refactor(tier4_calibration_rviz_plugin): apply clang-tidy (#1596)
h-ohta Aug 17, 2022
b54241a
feat(tier4_planning_launch): add nearest search param (#1582)
takayuki5168 Aug 17, 2022
6a0e1e9
fix(obstacle_stop_planner): use common ego nearest search (#1552)
takayuki5168 Aug 17, 2022
41e2c99
refactor(tier4_control_rviz_plugin): apply clang-tidy (#1597)
h-ohta Aug 17, 2022
7748688
chore(motion_utils): minor change with nearest search readme (#1585)
takayuki5168 Aug 17, 2022
d20e079
fix(tier4_planning_launch): change parameter to enable abort lane cha…
rej55 Aug 17, 2022
5772020
refactor(tier4_state_rviz_plugin): apply clang-tidy for readability-i…
h-ohta Aug 17, 2022
803e278
fix(behavior_path_planner): fix turn signal distance (#1606)
tkimura4 Aug 17, 2022
9f451b4
refactor(tier4_datetime_rviz_plugin): apply clang-tidy (#1605)
h-ohta Aug 17, 2022
0909dc0
fix(obstacle_stop_planner): fix virtual wall posiiton (#1588)
satoshi-ota Aug 18, 2022
219af03
fix(ndt_scan_matcher): fix default parameter to 0.0225 (#1583)
kminoda Aug 18, 2022
67775e5
fix(behavior_path_planner): pull over backward parking (#1609)
kosuke55 Aug 18, 2022
ec7a9b5
chore: fix radar package author (#1620)
scepter914 Aug 18, 2022
c209663
revert(tier4_state_rviz_plugin): readability-identifier-naming (#1595…
h-ohta Aug 18, 2022
7176ea5
revert(tier4_calibration_rviz_plugin): readability-identifier-naming …
h-ohta Aug 18, 2022
2c177b8
fix(occlusion_spot): zero order hold for velocity (#1542)
taikitanaka3 Aug 18, 2022
90e4e78
feat(behavior_velocity): add insertDecel point function (#1615)
taikitanaka3 Aug 18, 2022
ce8f2c3
fix(tier4_screen_capture_rviz_plugin): fix release process to handle …
taikitanaka3 Aug 18, 2022
9ec557d
refactor(tier4_perception_rviz_plugin): apply clang-tidy (#1624)
h-ohta Aug 18, 2022
4be87d9
refactor(tier4_planning_rviz_plugin): apply clang-tidy for drivable_a…
h-ohta Aug 18, 2022
9ef82dc
refactor(behavior_velocity_planner): create and use util functions (#…
takayuki5168 Aug 18, 2022
3ed2149
fix(obstacle_avoidance_planner): deal with wider path interval (#1616)
takayuki5168 Aug 19, 2022
a6406f5
feat(run_out): add lateral nearest points filter (#1527)
TomohitoAndo Aug 19, 2022
fa25a2f
fix(obstacle_stop_planner): fix hunting collision point (#1627)
kosuke55 Aug 19, 2022
e228725
fix(velocity_controller, mpc_follower): use common ego nearest search…
takayuki5168 Aug 19, 2022
ab4ef13
fix(radar_tracks_msgs_converter): fix param update (#1629)
scepter914 Aug 19, 2022
d47adcc
fix(ekf_localizer): enable enable_yaw_bias (#1601)
kminoda Aug 19, 2022
020c6d8
feat(planning_debug_tools): add readme and add yaw to analyzer (#1613)
taikitanaka3 Aug 19, 2022
7e06d47
fix(behavior_path_planner, motion_utils): fix path shifter orientatio…
kosuke55 Aug 19, 2022
8130123
refactor(tier4_localization_rviz_plugin): apply clang-tidy (#1608)
h-ohta Aug 19, 2022
5b60f19
refactor(tier4_planning_rviz_plugin): apply clang-tidy for mission_ch…
h-ohta Aug 19, 2022
4523a33
feat(radar_fusion_to_detected_object): add measurement covariance wit…
scepter914 Aug 19, 2022
9a1ada0
refactor(occlusion_spot): remove unused functions and refactor utils …
taikitanaka3 Aug 21, 2022
31d9c65
feat(motion_utils): add option to use slerp for orientation (#1575)
TomohitoAndo Aug 22, 2022
ae56406
fix(behavior_velocity_planner): consider all the lane ids in path (#1…
takayuki5168 Aug 22, 2022
1115898
fix: remove rtc staus when no avoidance candidate is output (#1636)
tkimura4 Aug 22, 2022
e5fde0b
feat(behavior_velocity): publish internal debug path (#1635)
taikitanaka3 Aug 22, 2022
6f7db46
revert(behavior_velocity_planner): keep stopping in hold stop margin …
satoshi-ota Aug 22, 2022
27f9216
feat(obstacle_cruise_planner): add velocity_threshold to outside obst…
tkimura4 Aug 22, 2022
9ff6235
refactor(tier4_traffic_light_rviz_plugin): apply clang-tidy (#1650)
h-ohta Aug 22, 2022
50797d3
fix(tier4_perception_launch): remove duplicated namespace of clusteri…
yukke42 Aug 23, 2022
ef66c86
feat(system_error_monitor): add heartbeat timeout for subscribed data…
h-ohta Aug 23, 2022
e40ba7f
refactor(polar_grid): apply clang-tidy (#1662)
h-ohta Aug 23, 2022
833b329
refactor(tier4_api_utils): apply clang-tidy (#1663)
h-ohta Aug 23, 2022
23ec4bb
revert: readability-identifier-naming for pose history (#1641)
h-ohta Aug 23, 2022
29c0536
feat(had_map_utils, tier4_integration_launch)!: remove unused package…
kenji-miyake Aug 23, 2022
a8774df
chore: change maintainer's email (#1668)
taikitanaka3 Aug 23, 2022
31d691e
chore(lidar_apollo_instance_segmentation): update package.xml (#1667)
yukkysaito Aug 23, 2022
aed77f9
chore(localization packages, etc): modify maintainer and e-mail addre…
YamatoAndo Aug 23, 2022
bffba04
docs(tvm_utility): fix broken link (#1670)
kenji-miyake Aug 23, 2022
a9d844e
chore(motion_utils): update package.xml (#1664)
purewater0901 Aug 23, 2022
d0712b6
feat(behavior_velocity_planner): add safety slow down feature for spe…
mehmetdogru Aug 23, 2022
2d62bdf
ci(build-and-test-differential): disable no-cuda test (#1669)
kenji-miyake Aug 23, 2022
8efee47
refactor(tier4_autoware_utils): apply clang-tidy (#1660)
h-ohta Aug 23, 2022
363473a
fix(behavior_path_planner): pull_over shift parking (#1652)
kosuke55 Aug 24, 2022
df06f93
fix(velodyne monitor): fix warning and error threshold of hot tempera…
h-ohta Aug 24, 2022
7b94ead
fix: blindspot insert zero index (#1674)
taikitanaka3 Aug 24, 2022
d434e87
feat(autoware_ad_api_specs): modify interface version api to use spec…
isamu-takagi Aug 24, 2022
6269496
chore(freespace-planning-algorithm): change maintainer (#1678)
TakaHoribe Aug 24, 2022
6f00f16
fix(behavior_path_planner): reset candidate uuid when activated (#1681)
tkimura4 Aug 24, 2022
6cb6c95
feat(autoware_auto_perception_rviz_plugin): add twist information for…
scepter914 Aug 24, 2022
ba02755
fix(lane_departure_checker): use common nearest ego search (#1611)
takayuki5168 Aug 24, 2022
15c6af5
fix(behavior_velocity_planner): disable debug path publisher by defau…
TakaHoribe Aug 25, 2022
fcf1302
fix(behavior_velocity_planenr): add header on debug path msgs (#1679)
TakaHoribe Aug 25, 2022
43c01e1
fix(ground_filter): remove base_frame and fix ray_ground_filter (#1614)
badai-nguyen Aug 25, 2022
6fa5c3f
fix(ekf_localizer): update the state and publish the estimated pose o…
IshitaTakeshi Aug 25, 2022
920ae85
feat(behavior_path_planner): resample output path (#1604)
takayuki5168 Aug 25, 2022
a8a58c0
refactor(blindspot): replace pass judge with arc length comparison (#…
taikitanaka3 Aug 25, 2022
8f7f923
feat(surround_obstacle_checker): add vehicle footprint with offset (#…
mehmetdogru Aug 25, 2022
5d2175e
feat(front_vehicle_velocity_estimator): add front_vehicle_velocity_es…
scepter914 Aug 25, 2022
25ba37d
fix(behavior_path_planner): drivable area extended while avoidance (#…
zulfaqar-azmi-t4 Aug 25, 2022
235fa03
chore(motion_velocity_smoother): disable debug publish in smoother by…
TakaHoribe Aug 25, 2022
86a29ae
feat(motion_utils): add guard (#1666)
purewater0901 Aug 25, 2022
96123b5
feat(behavior_path_planner): add closest stop point to resampled poin…
purewater0901 Aug 25, 2022
bca42f4
feat(behavior_velocity_planner): generate stop line if private path c…
soblin Aug 25, 2022
5e2cd46
fix(motion_velocity_smoother): fix stop point (#1694)
taikitanaka3 Aug 26, 2022
dd5144e
feat(autoware_ad_api_specs): define routing interface (#1559)
isamu-takagi Aug 26, 2022
04fe796
chore(behavior_path_planner): remove unnecessary debug publisher (#1690)
TakaHoribe Aug 26, 2022
cac33b0
feat(autoware_ad_api_specs): define localization interface (#1560)
isamu-takagi Aug 26, 2022
a690660
feat(motion_utils): add new calcSignedArcLength (#1701)
takayuki5168 Aug 26, 2022
2712884
refactor(mission_planner): prepare to support ad api (#1561)
isamu-takagi Aug 26, 2022
72f34cf
feat(default_ad_api): add routing api (#1494)
isamu-takagi Aug 26, 2022
eb0e92d
fix(behavior_path_planner): remove waitForData() in constructor (#1684)
TakaHoribe Aug 26, 2022
d9fae78
feat(lidar_centerpoint): add score threshold parameter to center poin…
scepter914 Aug 26, 2022
32645a5
fix(behavior_path_planner): avoidance drivable area in intersection (…
zulfaqar-azmi-t4 Aug 26, 2022
eda487d
feat: add vector map inside area filter (#1530)
TomohitoAndo Aug 26, 2022
7f3389e
fix(behavior_velocity_planner): fix safety slow down crosswalk inters…
mehmetdogru Aug 26, 2022
770fce2
feat(multi_object_tracker): change ekf_params_.use_measurement_covari…
scepter914 Aug 27, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 2 additions & 4 deletions .github/sync-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,11 @@
sd -- \
" include:" \
" container-suffix:
- \"\"
- -cuda
include:" {source}

sd "^ container: ghcr.io/autowarefoundation/autoware-universe:galactic-latest" \
" container: ghcr.io/autowarefoundation/autoware-universe:galactic-latest-cuda" {source}
sd "^ container: ghcr.io/autowarefoundation/autoware-universe:(\w+)-latest\$" \
" container: ghcr.io/autowarefoundation/autoware-universe:\$1-latest-cuda" {source}
- source: .github/workflows/build-and-test-differential-self-hosted.yaml
pre-commands: |
sd "container: ros:(\w+)" "container: ghcr.io/autowarefoundation/autoware-universe:\$1-latest" {source}
Expand All @@ -66,7 +65,6 @@
sd -- \
" include:" \
" container-suffix:
- \"\"
- -cuda
include:" {source}
- source: .github/workflows/build-and-test-self-hosted.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ jobs:
- galactic
- humble
container-suffix:
- ""
- -cuda
include:
- rosdistro: galactic
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/build-and-test-differential.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jobs:
- galactic
- humble
container-suffix:
- ""
- -cuda
include:
- rosdistro: galactic
Expand Down Expand Up @@ -67,7 +66,7 @@ jobs:

clang-tidy-differential:
runs-on: ubuntu-latest
container: ghcr.io/autowarefoundation/autoware-universe:galactic-latest-cuda
container: ghcr.io/autowarefoundation/autoware-universe:humble-latest-cuda
needs: build-and-test-differential
steps:
- name: Check out repository
Expand All @@ -86,7 +85,7 @@ jobs:
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }}
uses: autowarefoundation/autoware-github-actions/clang-tidy@v1
with:
rosdistro: galactic
rosdistro: humble
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
clang-tidy-config-url: https://raw.githubusercontent.com/autowarefoundation/autoware/main/.clang-tidy
build-depends-repos: build_depends.repos
build-depends-repos: build_depends.humble.repos
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repos:
args: [--markdown-linebreak-ext=md]

- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.31.1
rev: v0.32.1
hooks:
- id: markdownlint
args: [-c, .markdownlint.yaml, --fix]
Expand All @@ -30,7 +30,7 @@ repos:
- id: prettier

- repo: https://github.com/adrienverge/yamllint
rev: v1.26.3
rev: v1.27.1
hooks:
- id: yamllint

Expand Down
10 changes: 10 additions & 0 deletions common/autoware_ad_api_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ autoware_package()
rosidl_generate_interfaces(${PROJECT_NAME}
common/msg/ResponseStatus.msg
interface/srv/InterfaceVersion.srv
localization/msg/LocalizationInitializationState.msg
localization/srv/InitializeLocalization.srv
routing/msg/RouteState.msg
routing/msg/Route.msg
routing/msg/RouteData.msg
routing/msg/RoutePrimitive.msg
routing/msg/RouteSegment.msg
routing/srv/ClearRoute.srv
routing/srv/SetRoute.srv
routing/srv/SetRoutePoints.srv
DEPENDENCIES
builtin_interfaces
std_msgs
Expand Down
5 changes: 5 additions & 0 deletions common/autoware_ad_api_msgs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ Considering the product life cycle, there may be multiple vehicles using differe
In that situation, the AD API users such as developers of a web service have to switch the application behavior based on the version that each vehicle uses.
The version of AD API follows [Semantic Versioning][semver] in order to provide an intuitive understanding of the changes between versions.

## Routing

The routing service support two formats. One uses pose and the other uses map dependent data directly.
The body part of the route message is optional, since the route does not exist when it is cleared by the service.

<!-- link -->

[semver]: https://semver.org/
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
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
2 changes: 2 additions & 0 deletions common/autoware_ad_api_msgs/routing/msg/Route.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
std_msgs/Header header
autoware_ad_api_msgs/RouteData[<=1] data
3 changes: 3 additions & 0 deletions common/autoware_ad_api_msgs/routing/msg/RouteData.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
geometry_msgs/Pose start
geometry_msgs/Pose goal
autoware_ad_api_msgs/RouteSegment[] segments
2 changes: 2 additions & 0 deletions common/autoware_ad_api_msgs/routing/msg/RoutePrimitive.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
int64 id
string type # The same id may be used for each type.
2 changes: 2 additions & 0 deletions common/autoware_ad_api_msgs/routing/msg/RouteSegment.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
autoware_ad_api_msgs/RoutePrimitive preferred
autoware_ad_api_msgs/RoutePrimitive[] alternatives # Does not include the preferred primitive.
8 changes: 8 additions & 0 deletions common/autoware_ad_api_msgs/routing/msg/RouteState.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
uint16 UNKNOWN = 0
uint16 UNSET = 1
uint16 SET = 2
uint16 ARRIVED = 3
uint16 CHANGING = 4

builtin_interfaces/Time stamp
uint16 state
2 changes: 2 additions & 0 deletions common/autoware_ad_api_msgs/routing/srv/ClearRoute.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
autoware_ad_api_msgs/ResponseStatus status
6 changes: 6 additions & 0 deletions common/autoware_ad_api_msgs/routing/srv/SetRoute.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
std_msgs/Header header
geometry_msgs/Pose goal
autoware_ad_api_msgs/RouteSegment[] segments
---
uint16 ERROR_ROUTE_EXISTS = 1
autoware_ad_api_msgs/ResponseStatus status
8 changes: 8 additions & 0 deletions common/autoware_ad_api_msgs/routing/srv/SetRoutePoints.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
std_msgs/Header header
geometry_msgs/Pose goal
geometry_msgs/Pose[] waypoints
---
uint16 ERROR_ROUTE_EXISTS = 1
uint16 ERROR_PLANNER_UNREADY = 2
uint16 ERROR_PLANNER_FAILED = 3
autoware_ad_api_msgs/ResponseStatus status
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@

cmake_minimum_required(VERSION 3.14)
project(tier4_integration_launch)
project(autoware_ad_api_specs)

find_package(autoware_cmake REQUIRED)
autoware_package()

ament_auto_package(
INSTALL_TO_SHARE
launch
)
ament_auto_package()
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef DEFAULT_AD_API__SPECS__INTERFACE__VERSION_HPP_
#define DEFAULT_AD_API__SPECS__INTERFACE__VERSION_HPP_
#ifndef AUTOWARE_AD_API_SPECS__INTERFACE_HPP_
#define AUTOWARE_AD_API_SPECS__INTERFACE_HPP_

#include "autoware_ad_api_msgs/srv/interface_version.hpp"
#include <autoware_ad_api_msgs/srv/interface_version.hpp>

namespace ad_api::interface::version
namespace autoware_ad_api::interface
{

struct T
struct Version
{
using Service = autoware_ad_api_msgs::srv::InterfaceVersion;
static constexpr char name[] = "/api/interface/version";
};

} // namespace ad_api::interface::version
} // namespace autoware_ad_api::interface

#endif // DEFAULT_AD_API__SPECS__INTERFACE__VERSION_HPP_
#endif // AUTOWARE_AD_API_SPECS__INTERFACE_HPP_
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_
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
// 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__ROUTING_HPP_
#define AUTOWARE_AD_API_SPECS__ROUTING_HPP_

#include <rclcpp/qos.hpp>

#include <autoware_ad_api_msgs/msg/route.hpp>
#include <autoware_ad_api_msgs/msg/route_state.hpp>
#include <autoware_ad_api_msgs/srv/clear_route.hpp>
#include <autoware_ad_api_msgs/srv/set_route.hpp>
#include <autoware_ad_api_msgs/srv/set_route_points.hpp>

namespace autoware_ad_api::routing
{

struct SetRoutePoints
{
using Service = autoware_ad_api_msgs::srv::SetRoutePoints;
static constexpr char name[] = "/api/routing/set_route_points";
};

struct SetRoute
{
using Service = autoware_ad_api_msgs::srv::SetRoute;
static constexpr char name[] = "/api/routing/set_route";
};

struct ClearRoute
{
using Service = autoware_ad_api_msgs::srv::ClearRoute;
static constexpr char name[] = "/api/routing/clear_route";
};

struct RouteState
{
using Message = autoware_ad_api_msgs::msg::RouteState;
static constexpr char name[] = "/api/routing/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;
};

struct Route
{
using Message = autoware_ad_api_msgs::msg::Route;
static constexpr char name[] = "/api/routing/route";
static constexpr size_t depth = 1;
static constexpr auto reliability = RMW_QOS_POLICY_RELIABILITY_RELIABLE;
static constexpr auto durability = RMW_QOS_POLICY_DURABILITY_TRANSIENT_LOCAL;
};

} // namespace autoware_ad_api::routing

#endif // AUTOWARE_AD_API_SPECS__ROUTING_HPP_
20 changes: 20 additions & 0 deletions common/autoware_ad_api_specs/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>autoware_ad_api_specs</name>
<version>0.0.0</version>
<description>The autoware_ad_api_specs package</description>
<maintainer email="isamu.takagi@tier4.jp">Takagi, Isamu</maintainer>
<license>Apache License 2.0</license>

<buildtool_depend>ament_cmake_auto</buildtool_depend>

<build_depend>autoware_cmake</build_depend>

<test_depend>ament_lint_auto</test_depend>
<test_depend>autoware_lint_common</test_depend>

<export>
<build_type>ament_cmake</build_type>
</export>
</package>
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ void DetectedObjectsDisplay::processMessage(DetectedObjects::ConstSharedPtr msg)
clear_markers();
int id = 0;
for (const auto & object : msg->objects) {
// TODO(Satoshi Tanaka): fixing from string label to one string
// Get marker for shape
auto shape_marker = get_shape_marker_ptr(
object.shape, object.kinematics.pose_with_covariance.pose.position,
Expand All @@ -53,6 +54,28 @@ void DetectedObjectsDisplay::processMessage(DetectedObjects::ConstSharedPtr msg)
label_marker_ptr->id = id++;
add_marker(label_marker_ptr);
}

// Get marker for velocity text
geometry_msgs::msg::Point vel_vis_position;
vel_vis_position.x = object.kinematics.pose_with_covariance.pose.position.x - 0.5;
vel_vis_position.y = object.kinematics.pose_with_covariance.pose.position.y;
vel_vis_position.z = object.kinematics.pose_with_covariance.pose.position.z - 0.5;
auto velocity_text_marker = get_velocity_text_marker_ptr(
object.kinematics.twist_with_covariance.twist, vel_vis_position, object.classification);
if (velocity_text_marker) {
auto velocity_text_marker_ptr = velocity_text_marker.value();
velocity_text_marker_ptr->header = msg->header;
add_marker(velocity_text_marker_ptr);
}

// Get marker for twist
auto twist_marker = get_twist_marker_ptr(
object.kinematics.pose_with_covariance, object.kinematics.twist_with_covariance);
if (twist_marker) {
auto twist_marker_ptr = twist_marker.value();
twist_marker_ptr->header = msg->header;
add_marker(twist_marker_ptr);
}
}
}

Expand Down
7 changes: 7 additions & 0 deletions common/component_interface_specs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
cmake_minimum_required(VERSION 3.14)
project(component_interface_specs)

find_package(autoware_cmake REQUIRED)
autoware_package()

ament_auto_package()
Loading