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

fix: add system msg #79

Merged
merged 5 commits into from
Dec 12, 2023
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
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_system_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
bool emergency
bool 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_system_msgs</name>
<version>0.0.0</version>
<description>Autoware system 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>diagnostic_msgs</depend>
<depend>geometry_msgs</depend>
<depend>nav_msgs</depend>
<depend>std_msgs</depend>
<depend>unique_identifier_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>
Loading