Skip to content

feat(autoware_carla_interface): add spectator follow script#12526

Draft
mitsudome-r wants to merge 3 commits intoautowarefoundation:mainfrom
mitsudome-r:feat/add-spectator-follow
Draft

feat(autoware_carla_interface): add spectator follow script#12526
mitsudome-r wants to merge 3 commits intoautowarefoundation:mainfrom
mitsudome-r:feat/add-spectator-follow

Conversation

@mitsudome-r
Copy link
Copy Markdown
Member

@mitsudome-r mitsudome-r commented Apr 30, 2026

Description

  • Adds a spectator_follow helper script that locks the CARLA spectator (free) camera onto the ego vehicle, so the in-simulator view chases the car automatically instead of having to be panned manually.
  • Connects to the running CARLA server, locates the ego actor by role_name, and updates the spectator transform at a fixed rate. Re-acquires the actor automatically if it is removed/respawned, and retries while waiting for it to spawn.
  • Exposes camera framing as CLI flags (--distance, --height, --pitch, --rate) plus connection options (--host, --port, --timeout, --role), with sensible defaults (chase-cam 8 m back, 4 m up, −15° pitch, 30 Hz). Top-down view is supported via --distance 0 --height <h> --pitch -90.
  • Documents the new tool in the package README, including usage, the full flag table, and a top-down example.

Related links

Parent Issue:

How was this PR tested?

  • Build: colcon build --packages-select autoware_carla_interface
  • Launch CARLA + autoware_carla_interface.launch.xml and confirm the ego vehicle spawns
  • Run ros2 run autoware_carla_interface spectator_follow in a separate terminal and verify the CARLA spectator camera tracks the ego vehicle as it drives

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 30, 2026

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

@github-actions github-actions Bot added type:documentation Creating or refining documentation. (auto-assigned) component:simulation Virtual environment setups and simulations. (auto-assigned) labels Apr 30, 2026
mitsudome-r and others added 3 commits May 7, 2026 15:56
Signed-off-by: Ryohsuke Mitsudome <ryohsuke.mitsudome@tier4.jp>
Signed-off-by: Ryohsuke Mitsudome <ryohsuke.mitsudome@tier4.jp>
@mitsudome-r mitsudome-r force-pushed the feat/add-spectator-follow branch from e249b0c to a1b9d54 Compare May 7, 2026 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:simulation Virtual environment setups and simulations. (auto-assigned) type:documentation Creating or refining documentation. (auto-assigned)

Projects

Status: To Triage

Development

Successfully merging this pull request may close these issues.

1 participant