-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample_config.yaml
More file actions
84 lines (74 loc) · 3.51 KB
/
Copy pathexample_config.yaml
File metadata and controls
84 lines (74 loc) · 3.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# RosBag Blackbox – Example Configuration
#
# Copy and adapt this file; pass it to the node via:
# ros2 run rosbag_blackbox ringbuffer_node \
# --ros-args -p config_file:=/path/to/config.yaml
#
# Pattern syntax (zenoh-style):
# * matches exactly ONE path segment (e.g. /camera/* → /camera/left)
# ** matches ANY depth of namespace (e.g. /camera/** → /camera/left/image_raw)
#
# Topic selectors (at least one must be provided per entry):
# pattern: <glob> – match by topic NAME using the syntax above
# type: <string> – match by message TYPE (exact, e.g. geometry_msgs/msg/Twist)
# Both keys may be combined; in that case BOTH conditions must hold.
# ── Ring-buffer settings ────────────────────────────────────────────────────
buffer:
duration_seconds: 10 # keep the last N seconds of messages in memory
# ── Snapshot output ─────────────────────────────────────────────────────────
snapshot:
directory: /tmp/rosbag_blackbox_snapshots
# Supported placeholders: {datetime}, {date}, {time}, {timestamp}
name_pattern: "snapshot_{datetime}"
# ── Topic recording rules ────────────────────────────────────────────────────
# Rules are evaluated in order; the first matching pattern wins.
# If this section is empty (or the file is omitted), ALL discovered topics
# are recorded with the default (best-effort, volatile, depth=10) QoS.
topics:
# ── Camera topics at max 10 Hz ─────────────────────────────────────────
- pattern: "/camera/**"
max_frequency: 10.0 # Hz (omit or set to 0 for unlimited)
qos:
reliability: best_effort
durability: volatile
depth: 1
# ── All Twist messages, whatever topic they appear on ──────────────────
- type: "geometry_msgs/msg/Twist"
max_frequency: 10.0
qos:
reliability: best_effort
durability: volatile
depth: 10
# ── TF / TF-static (reliable, higher depth) ────────────────────────────
- pattern: "/tf"
qos:
reliability: reliable
durability: volatile
depth: 100
- pattern: "/tf_static"
qos:
reliability: reliable
# transient_local = "latched": the subscriber receives the last
# message even when it joins after the publisher sent it.
durability: transient_local
depth: 1
# ── Occupancy-grid map (latched, published rarely) ─────────────────────
- pattern: "/map"
qos:
reliability: reliable
durability: transient_local # latched topic
depth: 1
# ── LIDAR at 5 Hz ──────────────────────────────────────────────────────
- pattern: "/*/scan"
max_frequency: 5.0
qos:
reliability: best_effort
durability: volatile
depth: 1
# ── Catch-all: record every other topic at best-effort / low rate ───────
- pattern: "/**"
max_frequency: 5.0
qos:
reliability: best_effort
durability: volatile
depth: 10