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(tier4_rtc_msgs): add new field to rtc cooperate status #119

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
1 change: 1 addition & 0 deletions tier4_rtc_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ ament_auto_find_build_dependencies()

rosidl_generate_interfaces(${PROJECT_NAME}
"msg/Command.msg"
"msg/State.msg"
"msg/CooperateCommand.msg"
"msg/CooperateResponse.msg"
"msg/CooperateStatus.msg"
Expand Down
17 changes: 17 additions & 0 deletions tier4_rtc_msgs/msg/CooperateStatus.msg
Original file line number Diff line number Diff line change
@@ -1,8 +1,25 @@
builtin_interfaces/Time stamp

# Request unique id
unique_identifier_msgs/UUID uuid

# Indicate module type which makes this cooperate request.
tier4_rtc_msgs/Module module

# Indicate whether the system judges it's safe condition to execute or not.
bool safe

# Indicate RTC approval status
tier4_rtc_msgs/Command command_status

# Current execution state
tier4_rtc_msgs/State state

# RTC execution mode
# TRUE: Auto mode (it can execute without human operator's approval.)
# FALSE: Manual mode (it needs human operator's approval to execute.)
bool auto_mode

# Section which will be modified when this cooperate request is approved.
float32 start_distance
float32 finish_distance
7 changes: 7 additions & 0 deletions tier4_rtc_msgs/msg/State.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
uint8 type

uint8 WAITING_FOR_EXECUTION = 0
uint8 RUNNING = 1
uint8 ABORTING = 2
uint8 SUCCEEDED = 3
uint8 FAILED = 4
Loading