From d22fb990ba872c58821e0d6865e064aee2f1f0e8 Mon Sep 17 00:00:00 2001 From: cyn-liu <104069308+cyn-liu@users.noreply.github.com> Date: Tue, 14 Jan 2025 14:50:15 +0800 Subject: [PATCH] feat(autoware_internal_planning_msgs): add PathWithLaneId.msg (#42) * feat(autoware_internal_planning_msgs): add PathWithLaneId.msg Signed-off-by: liu cui * style(pre-commit): autofix --------- Signed-off-by: liu cui Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .../CMakeLists.txt | 32 +++++++++++++++++++ .../msg/PathPoint.msg | 5 +++ .../msg/PathPointWithLaneId.msg | 2 ++ .../msg/PathWithLaneId.msg | 4 +++ autoware_internal_planning_msgs/package.xml | 28 ++++++++++++++++ 5 files changed, 71 insertions(+) create mode 100644 autoware_internal_planning_msgs/CMakeLists.txt create mode 100644 autoware_internal_planning_msgs/msg/PathPoint.msg create mode 100644 autoware_internal_planning_msgs/msg/PathPointWithLaneId.msg create mode 100644 autoware_internal_planning_msgs/msg/PathWithLaneId.msg create mode 100644 autoware_internal_planning_msgs/package.xml diff --git a/autoware_internal_planning_msgs/CMakeLists.txt b/autoware_internal_planning_msgs/CMakeLists.txt new file mode 100644 index 0000000..402ad2c --- /dev/null +++ b/autoware_internal_planning_msgs/CMakeLists.txt @@ -0,0 +1,32 @@ +cmake_minimum_required(VERSION 3.5) +project(autoware_internal_planning_msgs) + +if(NOT CMAKE_CXX_STANDARD) + set(CMAKE_CXX_STANDARD 14) + set(CMAKE_CXX_STANDARD_REQUIRED ON) + set(CMAKE_CXX_EXTENSIONS OFF) +endif() + +if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") + add_compile_options(-Wall -Wextra -Wpedantic) +endif() + +find_package(ament_cmake_auto REQUIRED) +ament_auto_find_build_dependencies() + +rosidl_generate_interfaces(${PROJECT_NAME} + "msg/PathPoint.msg" + "msg/PathPointWithLaneId.msg" + "msg/PathWithLaneId.msg" + DEPENDENCIES + builtin_interfaces + geometry_msgs + std_msgs +) + +if(BUILD_TESTING) + find_package(ament_lint_auto REQUIRED) + ament_lint_auto_find_test_dependencies() +endif() + +ament_auto_package() diff --git a/autoware_internal_planning_msgs/msg/PathPoint.msg b/autoware_internal_planning_msgs/msg/PathPoint.msg new file mode 100644 index 0000000..697681f --- /dev/null +++ b/autoware_internal_planning_msgs/msg/PathPoint.msg @@ -0,0 +1,5 @@ +geometry_msgs/Pose pose +float32 longitudinal_velocity_mps +float32 lateral_velocity_mps +float32 heading_rate_rps +bool is_final diff --git a/autoware_internal_planning_msgs/msg/PathPointWithLaneId.msg b/autoware_internal_planning_msgs/msg/PathPointWithLaneId.msg new file mode 100644 index 0000000..25a02d2 --- /dev/null +++ b/autoware_internal_planning_msgs/msg/PathPointWithLaneId.msg @@ -0,0 +1,2 @@ +autoware_internal_planning_msgs/PathPoint point +int64[] lane_ids diff --git a/autoware_internal_planning_msgs/msg/PathWithLaneId.msg b/autoware_internal_planning_msgs/msg/PathWithLaneId.msg new file mode 100644 index 0000000..27a74bc --- /dev/null +++ b/autoware_internal_planning_msgs/msg/PathWithLaneId.msg @@ -0,0 +1,4 @@ +std_msgs/Header header +autoware_internal_planning_msgs/PathPointWithLaneId[] points +geometry_msgs/Point[] left_bound +geometry_msgs/Point[] right_bound diff --git a/autoware_internal_planning_msgs/package.xml b/autoware_internal_planning_msgs/package.xml new file mode 100644 index 0000000..6e9add2 --- /dev/null +++ b/autoware_internal_planning_msgs/package.xml @@ -0,0 +1,28 @@ + + + + autoware_internal_planning_msgs + 0.1.0 + The autoware_internal_planning_msgs package + Yukihiro Saito + Cynthia Liu + Apache License 2.0 + + ament_cmake_auto + rosidl_default_generators + + rosidl_default_runtime + + builtin_interfaces + geometry_msgs + std_msgs + + ament_lint_auto + ament_lint_common + + rosidl_interface_packages + + + ament_cmake + +