Skip to content

Commit

Permalink
feat(autoware_vehicle_msgs): add autoware_vehicle_msgs (#78)
Browse files Browse the repository at this point in the history
* feat(autoware_vehicle_msgs): add autoware_vehicle_msgs

Signed-off-by: beginningfan <[email protected]>

* feat(autoware_vehicle_msgs): add ControlModeCommand.srv

Signed-off-by: beginningfan <[email protected]>

* style(pre-commit): autofix

* fix(autoware_vehicle_msgs): remove msgs unused

Signed-off-by: beginningfan <[email protected]>

* style(pre-commit): autofix

---------

Signed-off-by: beginningfan <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
beginningfan and pre-commit-ci[bot] authored Dec 12, 2023
1 parent 11aa883 commit 2f4a0be
Show file tree
Hide file tree
Showing 15 changed files with 184 additions and 0 deletions.
37 changes: 37 additions & 0 deletions autoware_vehicle_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# All rights reserved.
cmake_minimum_required(VERSION 3.5)

### Export headers
project(autoware_vehicle_msgs)

# Generate messages
find_package(ament_cmake_auto REQUIRED)
ament_auto_find_build_dependencies()

rosidl_generate_interfaces(${PROJECT_NAME}
"msg/ControlModeCommand.msg"
"msg/ControlModeReport.msg"
"msg/Engage.msg"
"msg/GearCommand.msg"
"msg/GearReport.msg"
"msg/HazardLightsCommand.msg"
"msg/HazardLightsReport.msg"
"msg/SteeringReport.msg"
"msg/TurnIndicatorsCommand.msg"
"msg/TurnIndicatorsReport.msg"
"msg/VehicleOdometry.msg"
"msg/VelocityReport.msg"
"srv/ControlModeCommand.srv"
DEPENDENCIES
"autoware_planning_msgs"
"builtin_interfaces"
"std_msgs"
ADD_LINTER_TESTS
)

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()
endif()

ament_auto_package()
6 changes: 6 additions & 0 deletions autoware_vehicle_msgs/msg/ControlModeCommand.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
uint8 NO_COMMAND = 0
uint8 AUTONOMOUS = 1
uint8 MANUAL = 2

builtin_interfaces/Time stamp
uint8 mode
10 changes: 10 additions & 0 deletions autoware_vehicle_msgs/msg/ControlModeReport.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
uint8 NO_COMMAND = 0
uint8 AUTONOMOUS = 1
uint8 AUTONOMOUS_STEER_ONLY = 2
uint8 AUTONOMOUS_VELOCITY_ONLY = 3
uint8 MANUAL = 4
uint8 DISENGAGED = 5
uint8 NOT_READY = 6

builtin_interfaces/Time stamp
uint8 mode
2 changes: 2 additions & 0 deletions autoware_vehicle_msgs/msg/Engage.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
builtin_interfaces/Time stamp
bool engage
28 changes: 28 additions & 0 deletions autoware_vehicle_msgs/msg/GearCommand.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
uint8 NONE = 0
uint8 NEUTRAL = 1
uint8 DRIVE = 2
uint8 DRIVE_2 = 3
uint8 DRIVE_3 = 4
uint8 DRIVE_4 = 5
uint8 DRIVE_5 = 6
uint8 DRIVE_6 = 7
uint8 DRIVE_7 = 8
uint8 DRIVE_8 = 9
uint8 DRIVE_9 = 10
uint8 DRIVE_10 = 11
uint8 DRIVE_11 = 12
uint8 DRIVE_12 = 13
uint8 DRIVE_13 = 14
uint8 DRIVE_14 = 15
uint8 DRIVE_15 = 16
uint8 DRIVE_16 = 17
uint8 DRIVE_17 = 18
uint8 DRIVE_18 = 19
uint8 REVERSE = 20
uint8 REVERSE_2 = 21
uint8 PARK = 22
uint8 LOW = 23
uint8 LOW_2 = 24

builtin_interfaces/Time stamp
uint8 command
28 changes: 28 additions & 0 deletions autoware_vehicle_msgs/msg/GearReport.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
uint8 NONE = 0
uint8 NEUTRAL = 1
uint8 DRIVE = 2
uint8 DRIVE_2 = 3
uint8 DRIVE_3 = 4
uint8 DRIVE_4 = 5
uint8 DRIVE_5 = 6
uint8 DRIVE_6 = 7
uint8 DRIVE_7 = 8
uint8 DRIVE_8 = 9
uint8 DRIVE_9 = 10
uint8 DRIVE_10 = 11
uint8 DRIVE_11 = 12
uint8 DRIVE_12 = 13
uint8 DRIVE_13 = 14
uint8 DRIVE_14 = 15
uint8 DRIVE_15 = 16
uint8 DRIVE_16 = 17
uint8 DRIVE_17 = 18
uint8 DRIVE_18 = 19
uint8 REVERSE = 20
uint8 REVERSE_2 = 21
uint8 PARK = 22
uint8 LOW = 23
uint8 LOW_2 = 24

builtin_interfaces/Time stamp
uint8 report
6 changes: 6 additions & 0 deletions autoware_vehicle_msgs/msg/HazardLightsCommand.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
uint8 NO_COMMAND = 0
uint8 DISABLE = 1
uint8 ENABLE = 2

builtin_interfaces/Time stamp
uint8 command
5 changes: 5 additions & 0 deletions autoware_vehicle_msgs/msg/HazardLightsReport.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
uint8 DISABLE = 1
uint8 ENABLE = 2

builtin_interfaces/Time stamp
uint8 report
2 changes: 2 additions & 0 deletions autoware_vehicle_msgs/msg/SteeringReport.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
builtin_interfaces/Time stamp
float32 steering_tire_angle
7 changes: 7 additions & 0 deletions autoware_vehicle_msgs/msg/TurnIndicatorsCommand.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
uint8 NO_COMMAND = 0
uint8 DISABLE = 1
uint8 ENABLE_LEFT = 2
uint8 ENABLE_RIGHT = 3

builtin_interfaces/Time stamp
uint8 command
6 changes: 6 additions & 0 deletions autoware_vehicle_msgs/msg/TurnIndicatorsReport.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
uint8 DISABLE = 1
uint8 ENABLE_LEFT = 2
uint8 ENABLE_RIGHT = 3

builtin_interfaces/Time stamp
uint8 report
4 changes: 4 additions & 0 deletions autoware_vehicle_msgs/msg/VehicleOdometry.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
builtin_interfaces/Time stamp
float32 velocity_mps
float32 front_wheel_angle_rad
float32 rear_wheel_angle_rad
4 changes: 4 additions & 0 deletions autoware_vehicle_msgs/msg/VelocityReport.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
std_msgs/Header header
float32 longitudinal_velocity
float32 lateral_velocity
float32 heading_rate
27 changes: 27 additions & 0 deletions autoware_vehicle_msgs/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?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_vehicle_msgs</name>
<version>1.0.0</version>
<description>Interfaces between core Autoware.Auto vehicle components</description>
<maintainer email="[email protected]">Apex.AI, Inc.</maintainer>
<license>Apache 2</license>

<buildtool_depend>ament_cmake_auto</buildtool_depend>
<buildtool_depend>rosidl_default_generators</buildtool_depend>

<depend>autoware_planning_msgs</depend>
<depend>builtin_interfaces</depend>
<depend>std_msgs</depend>

<exec_depend>rosidl_default_runtime</exec_depend>

<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>

<member_of_group>rosidl_interface_packages</member_of_group>

<export>
<build_type>ament_cmake</build_type>
</export>
</package>
12 changes: 12 additions & 0 deletions autoware_vehicle_msgs/srv/ControlModeCommand.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
uint8 NO_COMMAND = 0
uint8 AUTONOMOUS = 1
uint8 AUTONOMOUS_STEER_ONLY = 2
uint8 AUTONOMOUS_VELOCITY_ONLY = 3
uint8 MANUAL = 4

builtin_interfaces/Time stamp
uint8 mode

---

bool success

0 comments on commit 2f4a0be

Please sign in to comment.