Skip to content
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

Cannot Change Motorcycle/Bicycle Driver #7612

Closed
GoodarzMehr opened this issue May 7, 2024 · 5 comments
Closed

Cannot Change Motorcycle/Bicycle Driver #7612

GoodarzMehr opened this issue May 7, 2024 · 5 comments
Assignees
Labels
art Requires changes/additions to art content

Comments

@GoodarzMehr
Copy link

CARLA version: 0.9.15
Platform/OS: Ubuntu 22.04
Problem you have experienced: I am using the following piece of code to change the driver of motorcycles/bicycles:

if v_blueprint.has_attribute('driver_id'):
    v_blueprint.set_attribute(
        'driver_id',
        random.choice(v_blueprint.get_attribute('driver_id').recommended_values)
    )

However, I have noticed that in practice nothing changes and each motorcycle/bicycle is spawned with the same driver. Could you please confirm if this is the case or if I am doing something wrong?

@Madecu Madecu added the art Requires changes/additions to art content label May 10, 2024
@DnDare
Copy link

DnDare commented May 10, 2024

Hi, making changes to 'driver_id', won't change the rider.
You should change the rider at Unreal's project, you'll have to download it
I don't think you can change riders at the package.

@Blyron
Copy link
Contributor

Blyron commented May 10, 2024

Yeah. We haven't implemented that yet. We will need to do that in Editor. For now at least

@00bix
Copy link

00bix commented May 10, 2024

Out of curiosity: When is spawn this bike: https://carla.readthedocs.io/en/0.9.15/catalogue_vehicles/#diamondback-century
I get this rider :
Screenshot from 2024-05-10 13-44-51

... How come the vehicles in the catalgoue are not the vehicles i can spawn? Am I missing something?

@DnDare
Copy link

DnDare commented May 10, 2024

It's the same vehicle, but we updated the rider.

@GoodarzMehr
Copy link
Author

Thanks! I saw it in multiple example scripts so I was under the impression that it would change the rider.

I'll leave this issue open for now. Please let me know if/when it gets implemented, since it would help diversify scenarios a tiny bit more.

@Madecu Madecu closed this as completed May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
art Requires changes/additions to art content
Projects
None yet
Development

No branches or pull requests

5 participants