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

feat(autoware_vehicle_msgs): add autoware_vehicle_msgs #78

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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
Loading