battery-data-analysis

Analyze ROS 2 rosbag2 battery data to compute discharge curves and health metrics.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Analyzes robot battery data to reveal discharge behavior and health status, turning raw logs into actionable insights for maintenance and reliability planning.

Core Features & Use Cases

  • Collects and analyzes battery metrics (voltage, current, charge, capacity, temperature) from ROS 2 bag recordings.
  • Generates discharge curves, current histograms, and power plots; computes energy per mission and remaining runtime; estimates state of health.
  • Use Case: compare battery packs across missions to forecast replacement timing and detect degradation early.

Quick Start

Run the battery analysis script on a rosbag2 recording to generate plots and health metrics.

Frequently Asked Questions about battery-data-analysis

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

FAQPage Schema
How do I analyze robot battery discharge behavior and health status from ROS 2 rosbag2 data?

This Skill analyzes robot battery data from ROS 2 rosbag2 recordings to compute discharge curves, energy consumption, runtime, and state of health. It uses /battery_state and /cmd_vel topics to extract voltage, current, charge, capacity, and temperature metrics for health insights.

What battery metrics can I extract from ROS 2 bag recordings for maintenance planning?

From ROS 2 bag recordings, you can extract voltage, current, charge, capacity, and temperature metrics to compute discharge curves, current histograms, power plots, energy per mission, remaining runtime, and state of health for maintenance planning and early degradation detection.

Can I compare battery pack degradation across different patrol missions using rosbag2 logs?

Yes, you can compare battery pack degradation across patrol missions using rosbag2 logs. The Skill computes discharge curves, voltage sag, and state of health metrics from /battery_state data, enabling you to detect degradation early and forecast replacement timing across different missions.

Do I need specific ROS 2 topics to compute battery state of health and power vs velocity?

Yes, you need the /battery_state and /cmd_vel ROS 2 topics in rosbag2 recordings to compute battery state of health and power vs velocity. The Skill performs basic input validation on these topics to ensure accurate energy and runtime calculations.

What is the best way to estimate remaining runtime and voltage sag for ROS 2 field deployments?

The best way to estimate remaining runtime and voltage sag for ROS 2 field deployments is to process rosbag2 recordings with this Skill. It computes energy per mission, remaining runtime, and voltage sag from /battery_state telemetry, providing clear error handling for reliable field insights.