Skip to content

Commit 6d81ccf

Browse files
authored
Split out Bag Recording Status (#6)
1 parent fd23ddb commit 6d81ccf

File tree

3 files changed

+9
-16
lines changed

3 files changed

+9
-16
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ rosidl_generate_interfaces(${PROJECT_NAME}
3333
"msg/CortexStatus.msg"
3434
"msg/FlowCommand.msg"
3535
"msg/BagRecording.msg"
36+
"msg/BagRecordingStatus.msg"
3637
"msg/ReferenceTarget.msg"
3738
"msg/NavigationCommand.msg"
3839
"msg/NavigationFeedback.msg"

msg/BagRecordingStatus.msg

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
bool is_recording
2+
# Name of the currently recording bag file (empty if not recording)
3+
string bag_name
4+
# Time elapsed since the start of current recording in seconds (0 if not recording)
5+
uint16 time_elapsed
6+
string recorded_topics
7+
uint16 planned_duration

srv/GetBagRecordingStatus.srv

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,6 @@
22

33
---
44
## Response
5-
6-
# Indicate successful run of service
75
bool success
8-
9-
# Error messages
106
string error
11-
12-
# Current recording status
13-
bool is_recording
14-
15-
# Name of the currently recording bag file (empty if not recording)
16-
string bag_name
17-
18-
# Time elapsed since the start of current recording in seconds (0 if not recording)
19-
uint16 time_elapsed
20-
21-
# List of topics included/excluded in the current recording
22-
string recorded_topics
7+
BagRecordingStatus status

0 commit comments

Comments
 (0)