feat(autoware_carla_interface): add spectator follow script#12526
Draft
mitsudome-r wants to merge 3 commits intoautowarefoundation:mainfrom
Draft
feat(autoware_carla_interface): add spectator follow script#12526mitsudome-r wants to merge 3 commits intoautowarefoundation:mainfrom
mitsudome-r wants to merge 3 commits intoautowarefoundation:mainfrom
Conversation
|
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
Signed-off-by: Ryohsuke Mitsudome <ryohsuke.mitsudome@tier4.jp>
Signed-off-by: Ryohsuke Mitsudome <ryohsuke.mitsudome@tier4.jp>
e249b0c to
a1b9d54
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
spectator_followhelper 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.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.--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.Related links
Parent Issue:
How was this PR tested?
colcon build --packages-select autoware_carla_interfaceautoware_carla_interface.launch.xmland confirm the ego vehicle spawnsros2 run autoware_carla_interface spectator_followin a separate terminal and verify the CARLA spectator camera tracks the ego vehicle as it drivesNotes for reviewers
None.
Interface changes
None.
Effects on system behavior
None.