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 #928

Merged
merged 97 commits into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
79d76ca
build(landmark_tf_caster): add missing libopencv-dev dependency (#5138)
esteve Sep 26, 2023
11206eb
feat(dynamic_avoidance): add max obstacle vel (#5142)
takayuki5168 Sep 26, 2023
a596ce2
fix(behavior_path_planner): add empty guard to combinePath (#5147)
kosuke55 Sep 27, 2023
5715e44
feat(behavior_path_planner): lane change collided polygon intersect l…
zulfaqar-azmi-t4 Sep 27, 2023
7fdda42
feat(motion_utils): add debug backtrace print (#5101)
TakaHoribe Sep 27, 2023
bb89363
feat(logger_level_configure): add util to set logger level externally…
TakaHoribe Sep 27, 2023
3731fd0
feat(ndt_scan_matcher): adding exe time to diagnostics for checking r…
yvzksgl Sep 27, 2023
0373d21
fix(autoware_auto_tf2): remove tf2 geometry function duplicated in tf…
wep21 Sep 27, 2023
0f19d71
fix(ndt_scan_matcher): removed duplicate parameter declarations "init…
SakodaShintaro Sep 27, 2023
7149338
feat(planning/control modules): enable logging_level_configure (#5146)
TakaHoribe Sep 27, 2023
154da3d
fix(goal_planner): fix goal searcher dying in free space (#5151)
kosuke55 Sep 27, 2023
c6701df
perf(goal_planner): speed up goal candidates update (#5114)
kosuke55 Sep 27, 2023
c7d3d0e
fix(goal_planner): disable freespace planner when fixed goal (#5152)
kosuke55 Sep 27, 2023
0cd4f62
fix(out_of_lane): lateral distance calculation for predicted path (#5…
TakaHoribe Sep 27, 2023
b98abd2
chore(vechicle_info_util): update maintainer (#4835)
YamatoAndo Sep 27, 2023
d27efb2
docs(start_planner): add freespace pull out docs (#5161)
kosuke55 Sep 27, 2023
f2ffc66
docs(goal_planner): move smooth goal connection to goal planner docs …
kosuke55 Sep 27, 2023
639d5c0
feat(goal_planner): prioritize goals before objects to avoid (#5137)
kosuke55 Sep 28, 2023
4558485
refactor(localization_error_monitor): rework parameters (#5143)
SKT-r Sep 28, 2023
f2263e1
refactor(gnss_poser): rework parameters (#5140)
SKT-r Sep 28, 2023
c552c3d
fix(drivable_area_expansion): segment index out of range (#5120)
takayuki5168 Sep 28, 2023
32c2e67
feat(time_synchronizer): organize twist input (#5160)
kminoda Sep 28, 2023
17984b4
feat(intersection): use planned velocity from upstream modules (#5156)
soblin Sep 28, 2023
c56423d
refactor(ndt_scan_matcher): delete default parameters from ndt_scan_m…
TaikiYamada4 Sep 28, 2023
7e9b4de
feat(pose_twist_estimator): automatically initialize pose only with g…
shmpwk Sep 28, 2023
3eda018
chore: update CODEOWNERS (#5087)
awf-autoware-bot[bot] Sep 28, 2023
a3e16df
refactor(behavior_path_planner): remove last_approved_pose_ from star…
kyoichi-sugahara Sep 28, 2023
fe9ad68
refactor(localization_error_monitor): refactor diag (#4964)
YamatoAndo Sep 28, 2023
32d2b84
fix(tier4_perception_launch): add parameters for light weight radar f…
scepter914 Sep 28, 2023
684a4cc
fix(traffic_light_fine_detector): add data_path arg and update defaul…
lexavtanke Sep 28, 2023
376ca2d
fix(traffic_light_ssd_fine_detector): add arg data_path, update model…
lexavtanke Sep 28, 2023
d4ceaa6
fix(traffic_light_classifier): add arg data_path, update model path (…
lexavtanke Sep 28, 2023
dea2b07
fix(tensorrt yolo): update model path (#5158)
lexavtanke Sep 28, 2023
a48e80b
fix(image_projection_based_fusion): add arg data_path, update model_p…
lexavtanke Sep 28, 2023
22d5959
fix(tensorrt_yolox): add data_path arg and update default model path …
lexavtanke Sep 28, 2023
aa90375
fix(lidar_centerpoint): add arg data_path, update model path (#5162)
lexavtanke Sep 28, 2023
952753f
feat(perception_launch): add data_path arg to perception launch (#5069)
lexavtanke Sep 28, 2023
ee7c345
build(behavior_velocity_intersection_module): add missing grid_map_co…
esteve Sep 28, 2023
1caa1b3
feat(blockage_diag): dust detection (#3212)
swiftfile Sep 28, 2023
e32ed72
refactor(localization_packages): remove unused <depend> in packages.x…
YamatoAndo Sep 29, 2023
ec30503
refactor(behavior_path_planner): use updateData() (#5165)
kyoichi-sugahara Sep 29, 2023
ad69c28
refactor(behavior path planner): simplify code by using lambda (#5124)
danielsanchezaran Sep 29, 2023
e337576
feat(predicted_path_checker): check predicted trajectory to avoid col…
brkay54 Sep 29, 2023
b32f8ef
feat(tier4_control_launch): add launch argument for predicted path ch…
brkay54 Oct 1, 2023
c99c6b2
feat(lane_change): expand target lanes for object filtering (#5167)
zulfaqar-azmi-t4 Oct 2, 2023
de83f25
fix(crosswalk_traffic_light_estimator): change the shape of pedestria…
TomohitoAndo Oct 2, 2023
3c5a0b8
fix(crosswalk): check all elements in traffic signal (#5169)
TomohitoAndo Oct 2, 2023
a448307
feat(behavior_path_planner): safety check against dynamic objects aft…
kyoichi-sugahara Oct 2, 2023
14ef695
fix(trajectory_visualizer): fix plotter error (#5181)
soblin Oct 2, 2023
93b6118
feat(intersection): ignore occlusion behind blocking vehicle (#5122)
soblin Oct 2, 2023
89404e6
perf(system_monitor): fix program command line reading (#5191)
Owen-Liuyuxuan Oct 2, 2023
c6b802f
fix(behavior_path_planner): if ego leaves the current lane turn the s…
beyzanurkaya Oct 2, 2023
de07fb8
fix(lidar_apollo_instance_segmentation): add arg data_path, update mo…
lexavtanke Oct 2, 2023
bab1453
feat(logger_level_reconfigure_plugin): use node interface and some co…
TakaHoribe Oct 2, 2023
e7bc187
fix(map_based_prediction): filter by distance for opposite lanes as w…
kminoda Oct 2, 2023
a6af44e
feat(localization_error_monitor): update parameter (#5201)
kminoda Oct 2, 2023
ccf9235
fix(avoidance): add debug info (#5205)
rej55 Oct 2, 2023
6e49e82
fix(simulator, controller): fix inverse pitch calculation (#5199)
soblin Oct 3, 2023
8ab910b
feat(crosswalk): dyanmic timeout for no intention to walk decision (#…
takayuki5168 Oct 3, 2023
8c38126
fix(out_of_lane): improve stop decision (#5207)
maxime-clem Oct 3, 2023
58a513e
feat: add common interface specs test (#5034)
shulanbushangshu Oct 3, 2023
81ede03
fix(utils): fix bug in drivable area expansion (#5198)
satoshi-ota Oct 3, 2023
1c2c59d
feat: add common interface utils test (#5173)
shulanbushangshu Oct 3, 2023
9aa2e5a
feat(goal_planner): secure lateral distance for path planning with co…
yuki-takagi-66 Oct 3, 2023
68544c7
ci(build-and-test-differential): remove sync for the build-and-test-d…
xmfcx Oct 3, 2023
ac06a5c
chore: sync files (#4372)
awf-autoware-bot[bot] Oct 3, 2023
8a0ff1c
revert: "chore: sync files (#4372)" (#5213)
mitsudome-r Oct 3, 2023
6155f1f
feat(intersection): aggressively peek into attention area if traffic …
soblin Oct 4, 2023
a9bb25a
build(lidar_apollo_segmentation_tvm): fix compiling error tier4_autow…
felixf4xu Oct 4, 2023
26e3be8
fix(obstacle_cruise_planner): fix coordinate transformation bag (#5180)
yuki-takagi-66 Oct 4, 2023
9cf1f7c
perf(ndt_scan_matcher): changed default `initial_estimate_particles_n…
SakodaShintaro Oct 4, 2023
bc68063
feat(yabloc_image_processing): support both of raw and compressed im…
KYabuuchi Oct 4, 2023
5fed746
chore: fix spell-check errors in perception packages (#5215)
miursh Oct 4, 2023
36c17b3
refactor(heatmap_visualizer): add JSON Schema and remove default valu…
ktro2828 Oct 4, 2023
8770e1e
feat(intersection): ignore high curvature lane occlusion (#5223)
soblin Oct 4, 2023
98004ce
build(yabloc_common): add missing libgoogle-glog-dev dependency (#5225)
esteve Oct 4, 2023
8649d93
refactor(safety_check): support lambda function in target filtering l…
satoshi-ota Oct 5, 2023
c763eda
fix(detected_object_validation): change the points_num of the validat…
badai-nguyen Oct 5, 2023
02fda2f
refactor(safety_check): use common function in safety check library (…
satoshi-ota Oct 5, 2023
dd275bf
fix(lane_change): current lane obj treated as target lane obj (#5214)
zulfaqar-azmi-t4 Oct 5, 2023
877b04b
fix(blind_spot): fix runtime crash (#5227)
soblin Oct 5, 2023
8e971bc
fix(behavior_velocity_crosswalk_module): stop at stop line associated…
kyoichi-sugahara Oct 5, 2023
b0310e7
refactor(safety_check): define filtering function in safety check lib…
satoshi-ota Oct 5, 2023
e12817d
fix(tier4_perception_launch): fix faraway detection to reduce calcula…
scepter914 Oct 6, 2023
6dfb197
feat(obstacle_cruise_planner): obstacle type dependent slow down for …
danielsanchezaran Oct 6, 2023
950805f
feat(intersection)!: disable the exception behavior in the private ar…
yuki-takagi-66 Oct 6, 2023
057d3d4
feat(lane_change): separate execution and cancel safety check param (…
zulfaqar-azmi-t4 Oct 6, 2023
0c48944
feat(intersection): yield initially on green light (#5234)
soblin Oct 6, 2023
83821d4
feat(rtc_auto_mode_manager): eliminate rtc auto mode manager (#5235)
kyoichi-sugahara Oct 7, 2023
c508aa7
fix(image_projection_based_fusion): add iou_x use in long range for r…
badai-nguyen Oct 9, 2023
9ddb07a
fix(vehicle_cmd_gate): fix filtering condition (#5250)
kminoda Oct 10, 2023
adb4872
fix(lane_change): add guard to neigibor lanelets (#5245)
kosuke55 Oct 10, 2023
b36bc09
chore(default_ad_api_helpers): update readme topic (#5258)
kminoda Oct 10, 2023
45339f6
feat(autoware_auto_msgs_adapter): add map adapter (#4700)
cyn-liu Oct 10, 2023
82d9840
refactor(behavior_path_planner): separate processing time function (#…
TakaHoribe Oct 11, 2023
2aa9d1c
chore(obstacle_velocity_limiter): publish processing time as float (#…
TakaHoribe Oct 11, 2023
3a8ff49
fix(map_projection_loader): fix sample config parameter in readme (#5…
KYabuuchi Oct 11, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ common/tier4_datetime_rviz_plugin/** [email protected] [email protected]
common/tier4_debug_rviz_plugin/** [email protected]
common/tier4_debug_tools/** [email protected]
common/tier4_localization_rviz_plugin/** [email protected] [email protected] [email protected] [email protected]
common/tier4_logging_level_configure_rviz_plugin/** [email protected] [email protected] [email protected]
common/tier4_perception_rviz_plugin/** [email protected]
common/tier4_planning_rviz_plugin/** [email protected] [email protected] [email protected]
common/tier4_screen_capture_rviz_plugin/** [email protected]
Expand Down Expand Up @@ -84,9 +85,10 @@ launch/tier4_sensing_launch/** [email protected]
launch/tier4_simulator_launch/** [email protected] [email protected] [email protected] [email protected] [email protected]
launch/tier4_system_launch/** [email protected] [email protected]
launch/tier4_vehicle_launch/** [email protected]
localization/ar_tag_based_localizer/** [email protected] [email protected]
localization/ekf_localizer/** [email protected] [email protected] [email protected] [email protected] [email protected]
localization/gyro_odometer/** [email protected] [email protected]
localization/landmark_based_localizer/ar_tag_based_localizer/** [email protected] [email protected]
localization/landmark_based_localizer/landmark_tf_caster/** [email protected] [email protected]
localization/localization_error_monitor/** [email protected] [email protected] [email protected]
localization/ndt_scan_matcher/** [email protected] [email protected] [email protected] [email protected]
localization/pose2twist/** [email protected] [email protected]
Expand Down Expand Up @@ -150,7 +152,7 @@ planning/behavior_path_planner/** [email protected] kosuke.takeuchi@tier4
planning/behavior_velocity_blind_spot_module/** [email protected] [email protected] [email protected]
planning/behavior_velocity_crosswalk_module/** [email protected] [email protected] [email protected] [email protected]
planning/behavior_velocity_detection_area_module/** [email protected] [email protected] [email protected]
planning/behavior_velocity_intersection_module/** [email protected] [email protected] [email protected] [email protected]
planning/behavior_velocity_intersection_module/** [email protected] [email protected] [email protected] [email protected] [email protected]
planning/behavior_velocity_no_drivable_lane_module/** [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]
planning/behavior_velocity_no_stopping_area_module/** [email protected] [email protected] [email protected]
planning/behavior_velocity_occlusion_spot_module/** [email protected] [email protected] [email protected]
Expand All @@ -160,6 +162,7 @@ planning/behavior_velocity_planner_common/** [email protected] shumpei.wakab
planning/behavior_velocity_run_out_module/** [email protected] [email protected] [email protected] [email protected]
planning/behavior_velocity_speed_bump_module/** [email protected] [email protected] [email protected]
planning/behavior_velocity_stop_line_module/** [email protected] [email protected] [email protected]
planning/behavior_velocity_template_module/** [email protected]
planning/behavior_velocity_traffic_light_module/** [email protected] [email protected] [email protected]
planning/behavior_velocity_virtual_traffic_light_module/** [email protected] [email protected] [email protected]
planning/behavior_velocity_walkway_module/** [email protected] [email protected] [email protected] [email protected]
Expand Down Expand Up @@ -215,6 +218,8 @@ system/dummy_infrastructure/** [email protected]
system/emergency_handler/** [email protected]
system/mrm_comfortable_stop_operator/** [email protected]
system/mrm_emergency_stop_operator/** [email protected]
system/system_diagnostic_graph/** [email protected]
system/system_diagnostic_monitor/** [email protected]
system/system_error_monitor/** [email protected]
system/system_monitor/** [email protected] [email protected]
system/topic_state_monitor/** [email protected]
Expand All @@ -224,4 +229,4 @@ vehicle/accel_brake_map_calibrator/accel_brake_map_calibrator/** taiki.tanaka@ti
vehicle/external_cmd_converter/** [email protected]
vehicle/raw_vehicle_cmd_converter/** [email protected] [email protected] [email protected]
vehicle/steer_offset_estimator/** [email protected]
vehicle/vehicle_info_util/** [email protected] [email protected] [email protected] [email protected]
vehicle/vehicle_info_util/** [email protected] [email protected] [email protected]
14 changes: 0 additions & 14 deletions .github/sync-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,6 @@
- \"\"
- -cuda
include:" {source}
- source: .github/workflows/build-and-test-differential.yaml
pre-commands: |
sd "container: ros:(\w+)" "container: ghcr.io/autowarefoundation/autoware-universe:\$1-latest" {source}

sd -s 'container: ${{ matrix.container }}' 'container: ${{ matrix.container }}${{ matrix.container-suffix }}' {source}
sd -- \
" include:" \
" container-suffix:
- \"\"
- -cuda
include:" {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 Down
6 changes: 0 additions & 6 deletions common/autoware_auto_geometry/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@ ament_auto_add_library(${PROJECT_NAME} SHARED
src/bounding_box.cpp
)

if(tf2_geometry_msgs_VERSION VERSION_LESS 0.25.4)
target_compile_definitions(${PROJECT_NAME} PRIVATE
DEFINE_LEGACY_FUNCTION
)
endif()

if(BUILD_TESTING)
set(GEOMETRY_GTEST geometry_gtest)
set(GEOMETRY_SRC test/src/test_geometry.cpp
Expand Down
5 changes: 0 additions & 5 deletions common/autoware_auto_tf2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ if(BUILD_TESTING)
"tf2_geometry_msgs"
"tf2_ros"
)
if(tf2_geometry_msgs_VERSION VERSION_LESS 0.25.4)
target_compile_definitions(test_tf2_autoware_auto_msgs PRIVATE
DEFINE_LEGACY_FUNCTION
)
endif()
endif()

ament_auto_package()
Original file line number Diff line number Diff line change
Expand Up @@ -45,57 +45,6 @@ using BoundingBox = autoware_auto_perception_msgs::msg::BoundingBox;

namespace tf2
{
#ifdef DEFINE_LEGACY_FUNCTION
/*************/
/** Point32 **/
/*************/

/** \brief Apply a geometry_msgs TransformStamped to a geometry_msgs Point32 type.
* This function is a specialization of the doTransform template defined in tf2/convert.h.
* \param t_in The point to transform, as a Point32 message.
* \param t_out The transformed point, as a Point32 message.
* \param transform The timestamped transform to apply, as a TransformStamped message.
*/
template <>
inline void doTransform(
const geometry_msgs::msg::Point32 & t_in, geometry_msgs::msg::Point32 & t_out,
const geometry_msgs::msg::TransformStamped & transform)
{
const KDL::Vector v_out = gmTransformToKDL(transform) * KDL::Vector(t_in.x, t_in.y, t_in.z);
t_out.x = static_cast<float>(v_out[0]);
t_out.y = static_cast<float>(v_out[1]);
t_out.z = static_cast<float>(v_out[2]);
}

/*************/
/** Polygon **/
/*************/

/** \brief Apply a geometry_msgs TransformStamped to a geometry_msgs Polygon type.
* This function is a specialization of the doTransform template defined in tf2/convert.h.
* \param t_in The polygon to transform.
* \param t_out The transformed polygon.
* \param transform The timestamped transform to apply, as a TransformStamped message.
*/
template <>
inline void doTransform(
const geometry_msgs::msg::Polygon & t_in, geometry_msgs::msg::Polygon & t_out,
const geometry_msgs::msg::TransformStamped & transform)
{
// Don't call the Point32 doTransform to avoid doing this conversion every time
const auto kdl_frame = gmTransformToKDL(transform);
// We don't use std::back_inserter to allow aliasing between t_in and t_out
t_out.points.resize(t_in.points.size());
for (size_t i = 0; i < t_in.points.size(); ++i) {
const KDL::Vector v_out =
kdl_frame * KDL::Vector(t_in.points[i].x, t_in.points[i].y, t_in.points[i].z);
t_out.points[i].x = static_cast<float>(v_out[0]);
t_out.points[i].y = static_cast<float>(v_out[1]);
t_out.points[i].z = static_cast<float>(v_out[2]);
}
}
#endif

/******************/
/** Quaternion32 **/
/******************/
Expand Down
34 changes: 34 additions & 0 deletions common/component_interface_specs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,38 @@ project(component_interface_specs)
find_package(autoware_cmake REQUIRED)
autoware_package()

include_directories(
include
SYSTEM
${rclcpp_INCLUDE_DIRS}
${rosidl_runtime_cpp_INCLUDE_DIRS}
${rcl_INCLUDE_DIRS}
${autoware_adapi_v1_msgs_INCLUDE_DIRS}
${autoware_auto_planning_msgs_INCLUDE_DIRS}
${autoware_planning_msgs_INCLUDE_DIRS}
${autoware_auto_vehicle_msgs_INCLUDE_DIRS}
${tier4_control_msgs_INCLUDE_DIRS}
${nav_msgs_INCLUDE_DIRS}
${tier4_system_msgs_INCLUDE_DIRS}
${tier4_vehicle_msgs_INCLUDE_DIRS}
${autoware_auto_perception_msgs_INCLUDE_DIRS}
${tier4_map_msgs_INCLUDE_DIRS}
)

if(BUILD_TESTING)
ament_add_ros_isolated_gtest(test_component_interface_specs
test/gtest_main.cpp
test/test_planning.cpp
test/test_control.cpp
test/test_localization.cpp
test/test_system.cpp
test/test_map.cpp
test/test_perception.cpp
test/test_vehicle.cpp
)
target_include_directories(test_component_interface_specs
PRIVATE include
)
endif()

ament_auto_package()
17 changes: 16 additions & 1 deletion common/component_interface_specs/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,28 @@
<license>Apache License 2.0</license>

<buildtool_depend>ament_cmake_auto</buildtool_depend>
<buildtool_depend>ament_cmake_core</buildtool_depend>
<buildtool_depend>ament_cmake_export_dependencies</buildtool_depend>
<buildtool_depend>ament_cmake_test</buildtool_depend>
<buildtool_depend>autoware_cmake</buildtool_depend>

<buildtool_export_depend>ament_cmake_core</buildtool_export_depend>
<buildtool_export_depend>ament_cmake_test</buildtool_export_depend>

<depend>autoware_adapi_v1_msgs</depend>
<depend>autoware_auto_perception_msgs</depend>
<depend>autoware_auto_planning_msgs</depend>
<depend>autoware_auto_vehicle_msgs</depend>
<depend>autoware_planning_msgs</depend>
<depend>nav_msgs</depend>
<depend>rcl</depend>
<depend>rclcpp</depend>
<depend>rosidl_runtime_cpp</depend>
<depend>tier4_control_msgs</depend>
<depend>tier4_map_msgs</depend>
<depend>tier4_system_msgs</depend>
<depend>tier4_vehicle_msgs</depend>

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

Expand Down
21 changes: 21 additions & 0 deletions common/component_interface_specs/test/gtest_main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Copyright 2023 The Autoware Contributors
//
// 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.

#include "gtest/gtest.h"

int main(int argc, char * argv[])
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
46 changes: 46 additions & 0 deletions common/component_interface_specs/test/test_control.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// Copyright 2023 The Autoware Contributors
//
// 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.

#include "component_interface_specs/control.hpp"
#include "gtest/gtest.h"

TEST(control, interface)
{
{
using control_interface::IsPaused;
IsPaused is_paused;
size_t depth = 1;
EXPECT_EQ(is_paused.depth, depth);
EXPECT_EQ(is_paused.reliability, RMW_QOS_POLICY_RELIABILITY_RELIABLE);
EXPECT_EQ(is_paused.durability, RMW_QOS_POLICY_DURABILITY_TRANSIENT_LOCAL);
}

{
using control_interface::IsStartRequested;
IsStartRequested is_start_requested;
size_t depth = 1;
EXPECT_EQ(is_start_requested.depth, depth);
EXPECT_EQ(is_start_requested.reliability, RMW_QOS_POLICY_RELIABILITY_RELIABLE);
EXPECT_EQ(is_start_requested.durability, RMW_QOS_POLICY_DURABILITY_TRANSIENT_LOCAL);
}

{
using control_interface::IsStopped;
IsStopped is_stopped;
size_t depth = 1;
EXPECT_EQ(is_stopped.depth, depth);
EXPECT_EQ(is_stopped.reliability, RMW_QOS_POLICY_RELIABILITY_RELIABLE);
EXPECT_EQ(is_stopped.durability, RMW_QOS_POLICY_DURABILITY_TRANSIENT_LOCAL);
}
}
46 changes: 46 additions & 0 deletions common/component_interface_specs/test/test_localization.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// Copyright 2023 The Autoware Contributors
//
// 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.

#include "component_interface_specs/localization.hpp"
#include "gtest/gtest.h"

TEST(localization, interface)
{
{
using localization_interface::InitializationState;
InitializationState initialization_state;
size_t depth = 1;
EXPECT_EQ(initialization_state.depth, depth);
EXPECT_EQ(initialization_state.reliability, RMW_QOS_POLICY_RELIABILITY_RELIABLE);
EXPECT_EQ(initialization_state.durability, RMW_QOS_POLICY_DURABILITY_TRANSIENT_LOCAL);
}

{
using localization_interface::KinematicState;
KinematicState kinematic_state;
size_t depth = 1;
EXPECT_EQ(kinematic_state.depth, depth);
EXPECT_EQ(kinematic_state.reliability, RMW_QOS_POLICY_RELIABILITY_RELIABLE);
EXPECT_EQ(kinematic_state.durability, RMW_QOS_POLICY_DURABILITY_VOLATILE);
}

{
using localization_interface::Acceleration;
Acceleration acceleration;
size_t depth = 1;
EXPECT_EQ(acceleration.depth, depth);
EXPECT_EQ(acceleration.reliability, RMW_QOS_POLICY_RELIABILITY_RELIABLE);
EXPECT_EQ(acceleration.durability, RMW_QOS_POLICY_DURABILITY_VOLATILE);
}
}
28 changes: 28 additions & 0 deletions common/component_interface_specs/test/test_map.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Copyright 2023 The Autoware Contributors
//
// 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.

#include "component_interface_specs/map.hpp"
#include "gtest/gtest.h"

TEST(map, interface)
{
{
using map_interface::MapProjectorInfo;
MapProjectorInfo map_projector;
size_t depth = 1;
EXPECT_EQ(map_projector.depth, depth);
EXPECT_EQ(map_projector.reliability, RMW_QOS_POLICY_RELIABILITY_RELIABLE);
EXPECT_EQ(map_projector.durability, RMW_QOS_POLICY_DURABILITY_TRANSIENT_LOCAL);
}
}
28 changes: 28 additions & 0 deletions common/component_interface_specs/test/test_perception.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Copyright 2023 The Autoware Contributors
//
// 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.

#include "component_interface_specs/perception.hpp"
#include "gtest/gtest.h"

TEST(perception, interface)
{
{
using perception_interface::ObjectRecognition;
ObjectRecognition object_recognition;
size_t depth = 1;
EXPECT_EQ(object_recognition.depth, depth);
EXPECT_EQ(object_recognition.reliability, RMW_QOS_POLICY_RELIABILITY_RELIABLE);
EXPECT_EQ(object_recognition.durability, RMW_QOS_POLICY_DURABILITY_VOLATILE);
}
}
Loading
Loading