Skip to content

Commit f365616

Browse files
fix: add system msg (#79)
* fix:add system msg Signed-off-by: jack.song <jack.song@autocore.ai> * fix:add system msgs Signed-off-by: jack.song <jack.song@autocore.ai> * fix:add system msgs Signed-off-by: jack.song <jack.song@autocore.ai> * fix:add system msgs Signed-off-by: jack.song <jack.song@autocore.ai> * style(pre-commit): autofix --------- Signed-off-by: jack.song <jack.song@autocore.ai> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 2f4a0be commit f365616

File tree

5 files changed

+79
-0
lines changed

5 files changed

+79
-0
lines changed

autoware_system_msgs/CMakeLists.txt

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
cmake_minimum_required(VERSION 3.5)
2+
project(autoware_system_msgs)
3+
4+
find_package(ament_cmake_auto REQUIRED)
5+
ament_auto_find_build_dependencies()
6+
7+
rosidl_generate_interfaces(${PROJECT_NAME}
8+
"msg/AutowareState.msg"
9+
"msg/HazardStatus.msg"
10+
"msg/HazardStatusStamped.msg"
11+
DEPENDENCIES
12+
geometry_msgs
13+
std_msgs
14+
unique_identifier_msgs
15+
nav_msgs
16+
builtin_interfaces
17+
diagnostic_msgs
18+
ADD_LINTER_TESTS
19+
)
20+
21+
if(BUILD_TESTING)
22+
find_package(ament_lint_auto REQUIRED)
23+
ament_lint_auto_find_test_dependencies()
24+
endif()
25+
26+
ament_auto_package()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
uint8 INITIALIZING = 1
2+
uint8 WAITING_FOR_ROUTE = 2
3+
uint8 PLANNING = 3
4+
uint8 WAITING_FOR_ENGAGE = 4
5+
uint8 DRIVING = 5
6+
uint8 ARRIVED_GOAL = 6
7+
uint8 FINALIZING = 7
8+
builtin_interfaces/Time stamp
9+
uint8 state
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
uint8 NO_FAULT = 0
2+
uint8 SAFE_FAULT = 1
3+
uint8 LATENT_FAULT = 2
4+
uint8 SINGLE_POINT_FAULT = 3
5+
uint8 level
6+
bool emergency
7+
bool emergency_holding
8+
diagnostic_msgs/DiagnosticStatus[] diag_no_fault
9+
diagnostic_msgs/DiagnosticStatus[] diag_safe_fault
10+
diagnostic_msgs/DiagnosticStatus[] diag_latent_fault
11+
diagnostic_msgs/DiagnosticStatus[] diag_single_point_fault
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
builtin_interfaces/Time stamp
2+
autoware_system_msgs/HazardStatus status

autoware_system_msgs/package.xml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0"?>
2+
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
3+
<package format="3">
4+
<name>autoware_system_msgs</name>
5+
<version>0.0.0</version>
6+
<description>Autoware system messages package.</description>
7+
<maintainer email="isamu.takagi@tier4.jp">Takagi, Isamu</maintainer>
8+
<license>Apache License 2.0</license>
9+
10+
<buildtool_depend>ament_cmake_auto</buildtool_depend>
11+
12+
<build_depend>rosidl_default_generators</build_depend>
13+
14+
<depend>builtin_interfaces</depend>
15+
<depend>diagnostic_msgs</depend>
16+
<depend>geometry_msgs</depend>
17+
<depend>nav_msgs</depend>
18+
<depend>std_msgs</depend>
19+
<depend>unique_identifier_msgs</depend>
20+
21+
<exec_depend>rosidl_default_runtime</exec_depend>
22+
23+
<test_depend>ament_lint_auto</test_depend>
24+
<test_depend>ament_lint_common</test_depend>
25+
26+
<member_of_group>rosidl_interface_packages</member_of_group>
27+
28+
<export>
29+
<build_type>ament_cmake</build_type>
30+
</export>
31+
</package>

0 commit comments

Comments
 (0)