Skip to content

Add ROS 2 support for offline rosbag processing in metrics_carla (issue #708) #709

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 11, 2025

Conversation

canveo
Copy link
Collaborator

@canveo canveo commented May 11, 2025

This pull request addresses issue #708 by adding support for reading and processing rosbag2 files in ROS 2 within metrics_carla.py.

Key changes:

Integrated rosbag2_py, rclpy.serialization, and rosidl_runtime_py to extract messages offline.

Replaced CSV-based processing with direct parsing of ROS 2 bag messages for topics such as /odometry, /clock, /speedometer, and /vehicle_status.

Maintains backward compatibility with previous metrics logic and visualizations.

Validated against recordings from CARLA simulations using ROS 2 Humble.

@canveo canveo merged commit 5f849ec into JdeRobot:noetic-devel May 11, 2025
2 checks passed
@canveo
Copy link
Collaborator Author

canveo commented May 11, 2025

Review completed.
This PR adds ROS 2 support for offline rosbag analysis in metrics_carla.py.
Functionality verified: .json and .png output files are generated correctly after simulation ends.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant