Idate96

dig-bag-recording

Start fast split rosbag recording for Mole dig/newton runs using the state-estimator convention. Use when you want separate bags for sensors, state, commands, lidar, camera (compressed image topics), and elevation_map, typically in tmux during digging experiments.

Idate96 1 Updated 3mo ago

Resources

2
GitHub

Install

npx skillscat add idate96/codex-skills/dig-bag-recording

Install via the SkillsCat registry.

SKILL.md

Dig Bag Recording

Quick Start

~/.codex/skills/dig-bag-recording/scripts/dig_split_recording_tmux.sh \
  --scenario dig_newton \
  --attach

This creates a single run directory:

  • sensors/
  • state/
  • commands/
  • lidar/
  • camera/ (compressed image topics)
  • elevation_map/

Workflow

  1. Start recording with the helper script.
  2. Run digging action(s).
  3. Stop both recorders with Ctrl-C in the record tmux window panes.
  4. Verify bag folders exist under the printed run directory.

Defaults

  • tmux session/window: ros:record
  • workspace: ~/ros2_ws
  • output root: ~/rosbags/dig
  • elevation topic: /mole/elevation_map_filter
  • compressed camera topic preference:
    • /hal/grpc_image_client/Main/image_raw/compressed
    • fallback also recorded by estimator utility: /camMainView/image_raw/compressed

Useful Commands

Check recorder processes:

tmux list-panes -t ros:record -F '#{pane_index} #{pane_pid} #{pane_current_command}'

List generated bags:

find ~/rosbags/dig -maxdepth 3 -type f -name metadata.yaml | sort

Resource

  • Script: scripts/dig_split_recording_tmux.sh