How to get the velocity of the ego vehicle? #4947
Replies: 7 comments 2 replies
-
You can use get_velocity() https://carla.readthedocs.io/en/latest/python_api/ |
Beta Was this translation helpful? Give feedback.
-
@varunjammula i used the same method to get the velocity. It gives 3D vector with x,y,z cordinates. After that did you use 3.6*sqrt(x2 +y2+z**2)? for my project i need longitudinal and lateral velocity can you help out in further detail? |
Beta Was this translation helpful? Give feedback.
-
Have you got the solution for your answer? I also want to know longitudinal and lateral velocity of vehicle for my project. |
Beta Was this translation helpful? Give feedback.
-
Okay. and with this equation 3.6*sqrt(x2 +y2+z**2), it gives me longitudinal velocity? |
Beta Was this translation helpful? Give feedback.
-
Okay. I understood the concept. And yes you have clarified the concept that velocity depends on the travel direction. Let's say I am moving my vehicle in four direction e.g north, south, east and west. Is there any way to fix my longitudinal velocity and lateral velocity in this case. As carla is giving me 3D vector, it's really confusing. I want to give specific lateral velocity and longitudinal velocity based on specific case. Thanks once again for sparing time to share your knowledge. |
Beta Was this translation helpful? Give feedback.
-
Hi, would you please share with us what you have ended up doing eventually to get the longitudinal and lateral velocities? |
Beta Was this translation helpful? Give feedback.
-
I want to control vehicle in the intersection area. |
Beta Was this translation helpful? Give feedback.
-
How to get the speed of the vehicle running on auto-pilot? I have checked the carla docs but couldn't figure it out. I found that there is a workaround, by calculating the velocity by location of the vehicle relative to time.
Is there a better way to get the velocity of the ego?
Beta Was this translation helpful? Give feedback.
All reactions