Skip to content

Commit

Permalink
fix:add system msg
Browse files Browse the repository at this point in the history
Signed-off-by: jack.song <[email protected]>
  • Loading branch information
shulanbushangshu committed Dec 8, 2023
1 parent 11aa883 commit 7082741
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 0 deletions.
26 changes: 26 additions & 0 deletions autoware_system_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
cmake_minimum_required(VERSION 3.5)
project(autoware_planning_msgs)

find_package(ament_cmake_auto REQUIRED)
ament_auto_find_build_dependencies()

rosidl_generate_interfaces(${PROJECT_NAME}
"msg/AutowareState.msg"
"msg/HazardStatus.msg"
"msg/HazardStatusStamped.msg"
DEPENDENCIES
geometry_msgs
std_msgs
unique_identifier_msgs
nav_msgs
builtin_interfaces
diagnostic_msgs
ADD_LINTER_TESTS
)

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

ament_auto_package()
9 changes: 9 additions & 0 deletions autoware_system_msgs/msg/AutowareState.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
uint8 INITIALIZING = 1
uint8 WAITING_FOR_ROUTE = 2
uint8 PLANNING = 3
uint8 WAITING_FOR_ENGAGE = 4
uint8 DRIVING = 5
uint8 ARRIVED_GOAL = 6
uint8 FINALIZING = 7
builtin_interfaces/Time stamp
uint8 state
11 changes: 11 additions & 0 deletions autoware_system_msgs/msg/HazardStatus.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
uint8 NO_FAULT = 0
uint8 SAFE_FAULT = 1
uint8 LATENT_FAULT = 2
uint8 SINGLE_POINT_FAULT = 3
uint8 level;
boolean emergency
boolean emergency_holding
diagnostic_msgs/DiagnosticStatus[] diag_no_fault
diagnostic_msgs/DiagnosticStatus[] diag_safe_fault
diagnostic_msgs/DiagnosticStatus[] diag_latent_fault
diagnostic_msgs/DiagnosticStatus[] diag_single_point_fault
2 changes: 2 additions & 0 deletions autoware_system_msgs/msg/HazardStatusStamped.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
builtin_interfaces/Time stamp
autoware_system_msgs/HazardStatus status
31 changes: 31 additions & 0 deletions autoware_system_msgs/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?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_planning_msgs</name>
<version>0.0.0</version>
<description>Autoware planning messages package.</description>
<maintainer email="[email protected]">Takagi, Isamu</maintainer>
<license>Apache License 2.0</license>

<buildtool_depend>ament_cmake_auto</buildtool_depend>

<build_depend>rosidl_default_generators</build_depend>

<depend>builtin_interfaces</depend>
<depend>geometry_msgs</depend>
<depend>nav_msgs</depend>
<depend>std_msgs</depend>
<depend>unique_identifier_msgs</depend>
<depend>diagnostic_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>

0 comments on commit 7082741

Please sign in to comment.