Skip to content

Commit

Permalink
fix: add message
Browse files Browse the repository at this point in the history
Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp>
  • Loading branch information
isamu-takagi committed Aug 10, 2022
1 parent 23982c2 commit 3772e2c
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/autoware_ad_api_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ autoware_package()
rosidl_generate_interfaces(${PROJECT_NAME}
common/msg/ResponseStatus.msg
interface/srv/InterfaceVersion.srv
operation_mode/srv/ChangeOperationMode.srv
operation_mode/msg/OperationMode.msg
operation_mode/msg/OperationModeState.msg
DEPENDENCIES
builtin_interfaces
std_msgs
Expand Down
4 changes: 4 additions & 0 deletions common/autoware_ad_api_msgs/common/msg/ResponseStatus.msg
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ uint16 DEPRECATED = 50000
uint16 SERVICE_UNREADY = 50001
uint16 SERVICE_TIMEOUT = 50002
uint16 TRANSFORM_ERROR = 50003
uint16 PARAMETER_ERROR = 50004

# constants for code
uint16 NO_EFFECT = 60001

# variables
bool success
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# constants for mode
uint16 UNKNOWN = 0
uint16 STOP = 1
uint16 AUTONOMOUS = 2
uint16 LOCAL = 3
uint16 REMOTE = 4

# variables
uint16 mode
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
builtin_interfaces/Time stamp
autoware_ad_api_msgs/OperationMode operation
bool is_autoware_control_enabled
bool is_in_transition
bool change_to_stop
bool change_to_autonomous
bool change_to_local
bool change_to_remote
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
uint16 ERROR_NOT_AVAILABLE = 1
uint16 ERROR_IN_TRANSITION = 2
autoware_ad_api_msgs/ResponseStatus status

0 comments on commit 3772e2c

Please sign in to comment.