Skip to content

feat: publish the topic in rosbag as pre-task before play rosbag#192

Merged
MasatoSaeki merged 10 commits intodevelopfrom
feat/parse_and_play_rosbag
Aug 17, 2025
Merged

feat: publish the topic in rosbag as pre-task before play rosbag#192
MasatoSaeki merged 10 commits intodevelopfrom
feat/parse_and_play_rosbag

Conversation

@MasatoSaeki
Copy link
Copy Markdown
Contributor

@MasatoSaeki MasatoSaeki commented Aug 1, 2025

Types of PR

  • New Features
  • Upgrade of existing features
  • Bugfix

Description

This PR publishes the topic in rosbag as pre-task before play rosbag

sample command

ros2 launch driving_log_replayer_v2 driving_log_replayer_v2.launch.xml scenario_path:=<path> dataset_index:=<index> remap_profile:=x2_perception publish_topic_from_rosbag:=/sensing/camera/camera0/camera_info,/sensing/camera/camera1/camera_info,/sensing/camera/camera2/camera_info,/sensing/camera/camera3/camera_info,/sensing/camera/camera4/camera_info,/sensing/camera/camera5/camera_info,/sensing/camera/camera6/camera_info,/sensing/camera/camera7/camera_info,/sensing/camera/camera8/camera_info,/sensing/camera/camera9/camera_info,/sensing/camera/camera10/camera_info

How to review this PR

https://evaluation.ci.tier4.jp/evaluation/reports/2bbeba10-0f59-5234-8743-56a37bbf7d7f?project_id=prd_jt

Others

Copilot AI review requested due to automatic review settings August 1, 2025 17:08
@MasatoSaeki MasatoSaeki marked this pull request as draft August 1, 2025 17:08

This comment was marked as outdated.

Signed-off-by: MasatoSaeki <masato.saeki@tier4.jp>
@MasatoSaeki MasatoSaeki force-pushed the feat/parse_and_play_rosbag branch from 9509e9f to 4c23f5b Compare August 1, 2025 19:33
Signed-off-by: MasatoSaeki <masato.saeki@tier4.jp>
Signed-off-by: MasatoSaeki <masato.saeki@tier4.jp>
Signed-off-by: MasatoSaeki <masato.saeki@tier4.jp>
@MasatoSaeki MasatoSaeki marked this pull request as ready for review August 8, 2025 08:10
@MasatoSaeki MasatoSaeki requested a review from Copilot August 8, 2025 08:10
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds functionality to publish specific topics from a rosbag file as a pre-task before the main rosbag playback begins. This enables publishing essential topics (like camera_info) that need to be available before the actual simulation starts.

  • Adds a new ROS2 node to read and publish selected topics from rosbag files
  • Integrates the pre-task publishing into the launch sequence with proper timing
  • Adds configuration parameter for specifying which topics to publish

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
scripts/publish_topic_from_rosbag_node.py New ROS2 node that reads rosbag and publishes specified topics
driving_log_replayer_v2/publish_topic_from_rosbag.py Core rosbag reading functionality with topic filtering
driving_log_replayer_v2/launch/rosbag.py Launch integration with pre-task execution before main rosbag playback
driving_log_replayer_v2/launch/perception.py Adds launch argument for topic selection parameter
CMakeLists.txt Installs the new script executable

Comment thread driving_log_replayer_v2/scripts/publish_topic_from_rosbag_node.py
Comment thread driving_log_replayer_v2/scripts/publish_topic_from_rosbag_node.py Outdated
Comment thread driving_log_replayer_v2/driving_log_replayer_v2/publish_topic_from_rosbag.py Outdated
Comment thread driving_log_replayer_v2/scripts/publish_topic_from_rosbag_node.py Outdated
MasatoSaeki and others added 5 commits August 8, 2025 17:24
Signed-off-by: MasatoSaeki <masato.saeki@tier4.jp>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: MasatoSaeki <masato.saeki@tier4.jp>
Signed-off-by: MasatoSaeki <masato.saeki@tier4.jp>
@MasatoSaeki MasatoSaeki requested a review from TadaKazuto August 8, 2025 09:13
@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

@TadaKazuto TadaKazuto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

動作確認OK

@MasatoSaeki MasatoSaeki merged commit 079747a into develop Aug 17, 2025
7 checks passed
@MasatoSaeki MasatoSaeki deleted the feat/parse_and_play_rosbag branch August 17, 2025 10:54
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.

3 participants