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

Walker animation when teleporting actors via Python API #3774

Open
patmalcolm91 opened this issue Jan 5, 2021 · 7 comments
Open

Walker animation when teleporting actors via Python API #3774

patmalcolm91 opened this issue Jan 5, 2021 · 7 comments
Assignees
Labels
question stale Issue has not had recent activity

Comments

@patmalcolm91
Copy link
Contributor

I have an external script which models pedestrian movement (position, speed, and orientation), and I want to be able to use this to control CARLA walker actors. I have tested two approaches so far: disabling physics for the actor and teleporting it using Walker.set_transform(), and using a WalkerControl object with a direction vector and speed corresponding to the difference between the desired location and the current location. The problem with the latter approach is that due to physics, and possibly some other factors I'm not aware of, the resulting trajectory does not precisely match the one calculated by the script. However, in the former approach, the walking animation is not present, with the walkers simply standing straight up and "gliding" across the ground.

I am looking for a way to precisely control the location and orientation of Walkers, while also being able to enable the walking animation using the python API. Is there currently any way that this could be accomplished?

Note: such a feature would also be very useful for Sumo and VISSIM co-simulation with pedestrians.

@corkyw10
Copy link
Contributor

@bernatx could you have a look at this please?

@stale
Copy link

stale bot commented Jul 21, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Issue has not had recent activity label Jul 21, 2021
@patmalcolm91
Copy link
Contributor Author

bumping, as this is still relevant.

@stale stale bot removed the stale Issue has not had recent activity label Jul 21, 2021
@stale
Copy link

stale bot commented Jan 9, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Issue has not had recent activity label Jan 9, 2022
@patmalcolm91
Copy link
Contributor Author

Bump

@stale stale bot removed the stale Issue has not had recent activity label Jan 9, 2022
@LetStarFly
Copy link

I also want to models pedestrian movement, but spawn_npc_sumo.py not support pedestrain any more. What show I do?

@stale
Copy link

stale bot commented Jun 2, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Issue has not had recent activity label Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question stale Issue has not had recent activity
4 participants