Skip to content

Commit 308a20f

Browse files
dhruvtyaDhruv Tyagi
andauthored
Add bag recorder services (#3)
* Switched from gitlab to github branch * Added separate bag name field --------- Co-authored-by: Dhruv Tyagi <dhruv@polymathrobotics.com>
1 parent c768afc commit 308a20f

File tree

5 files changed

+63
-27
lines changed

5 files changed

+63
-27
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,11 @@ rosidl_generate_interfaces(${PROJECT_NAME}
5353
"srv/ListVehicleOptions.srv"
5454
"srv/ListPathLogicOptions.srv"
5555
"srv/ListReferenceTargets.srv"
56-
"srv/ManageMapDataRecording.srv"
5756
"srv/GenerateOfflineMap.srv"
5857
"srv/LoadMap.srv"
58+
"srv/StartBagRecording.srv"
59+
"srv/StopBagRecording.srv"
60+
"srv/GetBagRecordingStatus.srv"
5961
DEPENDENCIES ${dependencies}
6062
)
6163

srv/GetBagRecordingStatus.srv

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
## Request
2+
3+
---
4+
## Response
5+
6+
# Indicate successful run of service
7+
bool success
8+
9+
# Error messages
10+
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

srv/ManageMapDataRecording.srv

Lines changed: 0 additions & 26 deletions
This file was deleted.

srv/StartBagRecording.srv

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## Request
2+
3+
# Bag file suffix (optional, recommended)
4+
string bag_suffix
5+
6+
# The following fields will be checked for data in-order (optional)
7+
string[] include_topics
8+
string[] exclude_topics
9+
string topic_profile
10+
11+
# Record for pre-set time duration in seconds (optional)
12+
# Default 0: record until manually stopped or max time limit reached
13+
uint8 record_duration
14+
15+
---
16+
## Response
17+
18+
# Indicate successful run of service
19+
bool success
20+
21+
# Bag file name (excluding path)
22+
string bag_name
23+
24+
# Error messages
25+
string error

srv/StopBagRecording.srv

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## Request
2+
3+
---
4+
## Response
5+
6+
# Indicate successful run of service
7+
bool success
8+
9+
# Bag file name (excluding path)
10+
string bag_name
11+
12+
# Error messages
13+
string error

0 commit comments

Comments
 (0)