rosbag2-analysis

Analyze rosbag2 data to extract trajectories and timing metrics.

18|2|Updated Apr 20, 2026
One-click install
npx skills add https://github.com/wimblerobotics/ros2-copilot-skills --skill rosbag2-analysis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rosbag2-analysis
Source: https://github.com/wimblerobotics/ros2-copilot-skills/tree/main/rosbag2-analysis
Command: npx skills add https://github.com/wimblerobotics/ros2-copilot-skills --skill rosbag2-analysis

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Analyzes rosbag2 data offline to read bag files, plot trajectories, and perform timing analyses or MCAP format comparisons.

Core Features & Use Cases

  • Trajectory extraction and visualization from /odom data.
  • Velocity profiling and timing jitter analysis from high-rate topics.
  • Bag format comparison (sqlite3 vs mcap) and basic inspection.

Quick Start

Load a rosbag2 recording and run the analysis script to generate trajectory plots and timing reports.

Frequently Asked Questions about rosbag2-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract and plot robot trajectories from rosbag2 data offline?

Analyze rosbag2 data offline to extract trajectories by loading your bag recording and running a Python script that reconstructs paths from /odom data, generating trajectory plots and timing reports using pandas and matplotlib.

Can I perform timing jitter analysis on high-rate ROS 2 topics using rosbag2?

Analyze rosbag2 data offline to perform timing jitter analysis on high-rate ROS 2 topics by calculating velocity profiling and timing metrics, outputting the results as CSV files and plots for detailed inspection.

Does rosbag2 analysis support both sqlite3 and mcap bag formats?

Rosbag2 analysis supports both sqlite3 and mcap formats for bag inspection and format comparison, extracting data using rosbag2_py to perform trajectory reconstruction and performance analysis across these storage types.

What Python libraries are needed to analyze ROS 2 bag files for performance metrics?

To analyze ROS 2 bag files for performance metrics, use Python libraries rosbag2_py, pandas, and matplotlib for data extraction, topic filtering, trajectory reconstruction, and generating CSV or plot outputs.

How do I filter specific ROS 2 topics when inspecting a rosbag2 file?

Filter specific ROS 2 topics when inspecting a rosbag2 file by applying topic filtering during offline analysis to isolate relevant high-rate topics for trajectory extraction and velocity profiling.