ROS2 Data Recording - Custom Bag Recorder

Medium rosbag2 68% pass rate
#rosbag#recording#data#topics

Practice the ROS2 Data Recording - Custom Bag Recorder coding problem in rosbag2. Browser-based execution with automated grading — no local ROS install required. 68% of engineers pass this challenge.

Problem Statement

Programmatically invoke ros2 bag record functionality via a subprocess or direct API (if available) to record specific topics.

Requirements

  • Create a node that uses subprocess to start regular recording
  • Record topic /chatter
  • Create a file/directory named my_bag
  • Stop recording after 5 seconds

Input/Output Format

Output:

  • A bag directory created on the filesystem.

⚠️ Common Pitfalls

  • Not waiting long enough for data to be captured.
  • Path issues (use absolute paths or know your CWD).

📚 Helpful Resources

Frequently asked questions

What is the ROS2 Data Recording - Custom Bag Recorder practice problem?

It is a hands-on rosbag2 challenge on SimuCode where you implement and run ROS2 code in the browser with runtime-verified tests.

How do I practice ROS2 Data Recording - Custom Bag Recorder online?

Open this page, sign in, and solve the problem in the built-in IDE. Your solution is graded against real ROS2 execution checks.

What skills does ROS2 Data Recording - Custom Bag Recorder test?

This Medium problem focuses on rosbag, recording, data skills used in robotics interviews and production systems.