carla-simulator / carla

Open-source simulator for autonomous driving research.
http://carla.org
MIT License
10.88k stars 3.5k forks source link

Vehicle behaviour on Gradient Road #3853

Closed MS012086 closed 1 year ago

MS012086 commented 3 years ago

Hello All, We encountered trembling behavior in vehicles on Gradient road, Whether it is Carla vehicle dynamic issue or Gradient roads are not supported in Carla? Could you please help us regarding this issue.

Here with we have attached movie file for your reference

Tested platform: Carla: 0.9.9.4 Linux: Ubuntu 18.04 LTS Python 3.7

Thanks in advance!

https://user-images.githubusercontent.com/65219753/106630096-875b9c00-65a1-11eb-8db3-54808ed3a37c.mp4

qhaas commented 3 years ago

We have noticed similar 'bouncing' when using OpenGL in CARLA 0.9.8 and 0.9.11 with Town03, but switching to -vulkan from -opengl seemed to make it go away. What rendering options were you using?

MS012086 commented 3 years ago

we have noticed similar bouncing issue when switching over to -vulkan from -opengl in carla 0.9.9.4

https://user-images.githubusercontent.com/65219753/106723980-b4ee2700-662d-11eb-82f4-1850b409f143.mp4

jackbart94 commented 3 years ago

Hi,

It says that the video can't be played because the file is corrupt. Could you upload them again and also give more information about what you are executing?

MS012086 commented 3 years ago

Hi, We are using a road profile with certain elevation angle and trying to run the default carla vehicle in autopilot mode. We could observe normal motion in the straight road but once the vehicle enters the road with elevated profile we could notice bouncy movement during its motion. we observed similar behaviour even in curved road with elevation angle. what could be the reason behind this weird behaviour of the vehicle in the elevated road? herewith we are attaching the video again

https://user-images.githubusercontent.com/65219753/106914838-69ba3e00-672b-11eb-9403-95e6ea90c253.mp4

Axel1092 commented 3 years ago

Hi @MS012086, how are you generating the map? Are you using Roadrunner? How long is the road? With Gradient roads I assume that you mean the shape of the road cross section, I suppose that roadrunner of the software you are using could create small bumps in the road if this is not perfectly aligned, causing the car to have this weird motion. Can you verify that the road is completely flat and without sudden height differences?

MS012086 commented 3 years ago

Hi @Axel1092 , Yes, We are using roadrunner tool for map generation. The road is about 5 km long. We have checked the road profile in roadrunner and could see that the height of the road increase gradually without any sudden difference. The road is flat and only its height increases gradually after a certain distance . Herewith attaching a screenshot from roadrunner. RoadRunner

Axel1092 commented 3 years ago

@MS012086 sorry for the late response. I can only think that this issue is due to small variations in the road geometry at the time of exporting. Carla has no support for superelevation or crossfall (non flat cross section in the road). Perhaps roadrunner is exporting additional objects as well. Also, in the parts where the vehicle has the strange behavior we can see this weird noise in the image which leads me to think that there is an issue with the geometry of the road. image

MS012086 commented 3 years ago

Hi @Axel1092 ,

Thank you very much for your information.

We have removed additional objects( Guardrail and surrounding landscape) from road profile. And now we could not visualize the bouncing behavior on the road. Even after removing the additional objects, we could see the noise in the image but it is not affecting the vehicle behavior.

dschambach commented 3 years ago

We have been trying to debug a very similar situation - a flat three lane road which is 5km - with no elevation change. If terrain is present - vehicles appear to collide with invisible humps positioned on the road. Removing the terrain object (which surrounds the road) fixes this behavior.

dschambach commented 3 years ago

@Axel1092 - Here is an video that shows the difference/problem. Note the vehicles appear to be colliding with some kind of bumps along the road when terrain object is active. The only difference between the first and second part of the video is the deletion of the terrain mesh from the level.

https://user-images.githubusercontent.com/16140583/111001829-5b1e0280-8339-11eb-8f2b-54911570d564.mp4

dschambach commented 3 years ago

A workaround - is to import a generic/flat DEM into RoadRunner and apply it to your scene. This changes the triangulation of the terrain mesh before it is exported, which in our case fixed the problem.

Axel1092 commented 3 years ago

It would seem that roadrunner is creating some geometry under the road that is causing the cars to move like that. Perhaps the terrain is not flat under the road and it overlaps with the road itself?

stale[bot] commented 2 years ago

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.

HariKrishnaPadala commented 4 months ago

I also observed the same behavior in Carla. The car suddenly jumps at some location on the road mesh. The mesh appears to be smooth (verified in 3D modeling viewers) and still the cars jumps, front wheels first followed by rear wheels as if it hit something. This behavior is only observed with cars moving on the road. Other objects like rolling cylinder/sphere in the same place of the road does not hit anything. When I changed the road mesh to the procedural mesh generated from Carla, the car does not jump and follows smoothly. Can anyone suggest what is going wrong here?

dschambach commented 4 months ago

Are you using road runner to create scenes? Do those scenes have bridges in them?

On Tue, Mar 19, 2024 at 12:05 AM HariKrishnaPadala @.***> wrote:

I also observed the same behavior in Carla. The car suddenly jumps at some location on the road mesh. The mesh appears to be smooth (verified in 3D modeling viewers) and still the cars jumps, front wheels first followed by rear wheels as if it hit something. This behavior is only observed with cars moving on the road. Other objects like rolling cylinder/sphere in the same place of the road does not hit anything. When I changed the road mesh to the procedural mesh generated from Carla, the car does not jump and follows smoothly. Can anyone suggest what is going wrong here?

— Reply to this email directly, view it on GitHub https://github.com/carla-simulator/carla/issues/3853#issuecomment-2006018102, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD3ESJ72UTXHM5DGN4TL7VLYY7PSDAVCNFSM4W67EQUKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBQGYYDCOBRGAZA . You are receiving this because you commented.Message ID: @.***>

HariKrishnaPadala commented 4 months ago

Not Roadrunner. I am trying to use the procedural mesh from CARLA. The scene does not have bridge, just a normal road intersection. The car jumps mainly when it is trying to cross a intersection, even though the intersection appears to be smooth.