-
Notifications
You must be signed in to change notification settings - Fork 367
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
OpenScenario support - TeleportAction #703
Comments
Hey @Sumza, we have no current plans to change the TeleportAction, and yes, the reset of velocity is intentional, for stability purposes. Is it bothering you in any way that reset? we are mainly using it when spawning actors, so if that's the case, I'm curious to see your use case |
Hey @glopezdiest , we are using Teleport action in story to achieve Re-Initialization of traffic objects with desired relative position and keep the velocity. We also observe that Teleport Action affects the stability of TV if started with previously achieved velocity in curve road profile. |
I see. If you really don't want to reset the velocities, you can directly remove it. You can go to srunner/scenariomanager/scenarioatomics/atomic_behaviors.py, class ActorTransformSetterToOSCPosition and remove this part of the code at the initialize function
|
Thankyou for your Input, It helped my requirement. I tried implementing the Teleport Action on a curved road and below is the observed behaviour video output : TeleportAction_CurvedRoad.mp4When the Traffic vehicle is teleported from one part of the curved road to another part of the same curved road, we can see that the vehicle takes a small time gap to adjust to the teleported part of the curved road. Is there any way this time delay can be avoided while Teleporting vehicles on Curved Road ? |
I'm sorry but for me, it seems like your video is corrupted. Is it also happening on your end? Can you perhaps re-upload it |
The video is playing fine at my end, i am re-uploading the video. Kindly check and let me know its running fine you this time. TeleportAction_CurveRoad.mp4 |
Okay, yeah, its works fine for me now. I don't think we ever designed the TeleportAction to work as you are using it so there are bound to be some errors. How are you controlling that vehicle? XOSC controllers use the local planner, which has a waypoint buffer and you probably aren't resetting it, maybe that's causing some issues |
Hello, you mentioned local planner and waypoint buffer, how can I reset them? |
What version of CARLA are you using? We improved the agents a lot for 0.9.12 and they work differently. For > 0.9.12, check this variable, which is a list of future waypoints the vehicle will pas through. On teleport, you'd have to reset that to be empty. For previous versions, you'll want to reset two variables (this and this). However, I don't know if that alone will be enough as I've personally never tried it. |
Thanks for the reply, I am using carla0.9.12. I have not used the method you mentioned, I will try it later. At present, after trying to use RoutingAction->AssignRouteAction->Route->waypoint->position->relativelaneposition (reset the start point and the end point), I solved the problem of the object on the straight road. |
I have observed that when TeleportAction is used, the entity gets teleported to the required location but with the reset in velocity ( i.e. Entity velocity comes back to zero) and then the consecutive events are executed.
Is this the desired behaviour or any future updations is in progress for the TeleportAction tag ?
The text was updated successfully, but these errors were encountered: