AirSim icon indicating copy to clipboard operation
AirSim copied to clipboard

Disable collision checking in CV Mode

Open kshitijgoel007 opened this issue 7 years ago • 7 comments
trafficstars

I am trying to disable collision checking, both between multiple pawns and pawn with the environment. I am currently using Python Client and running all the vehicles in CV Mode. How do I disable all the collision checking functionality? (I have my own collision checker that I want to test)

kshitijgoel007 avatar May 12 '18 21:05 kshitijgoel007

Try putting "EnableCollisionPassthrogh": true in settings.json root and let us know if it works.

sytelus avatar May 14 '18 20:05 sytelus

@sytelus Works, thanks. Closing.

kshitijgoel007 avatar May 14 '18 22:05 kshitijgoel007

Sorry, this doesn't work. I mistakenly evaluated the above with trajectories that didn't have collisions in first place.

kshitijgoel007 avatar May 15 '18 00:05 kshitijgoel007

I got the same issue. Try to change positions/poses, but it pawn with the environment. The

"EnableCollisionPassthrogh": true command did not help!

patrickschulte avatar May 25 '18 17:05 patrickschulte

@sytelus Is there any update on this issue?

kshitijgoel007 avatar Jun 27 '18 08:06 kshitijgoel007

@kshitijgoel007 a work around is to write a function that changes the state of the drone/car when a collision is detected. You can easly do that by using the info passed by collisioninfo. Here is a sample from my drone of what collision info passes

"collision_info <CollisionInfo> { 'has_collided': False, 'impact_point': <Vector3r> { 'x_val': -0.3316308557987213, 'y_val': 0.3356521427631378, 'z_val': 0.8735041618347168}, 'normal': <Vector3r> { 'x_val': -9.536425468748e-13, 'y_val': -1.1920131453635154e-19, 'z_val': -1.0}, 'object_id': 148, 'object_name': 'Ground_5', 'penetration_depth': 0.0, 'position': <Vector3r> { 'x_val': 0.0, 'y_val': 0.0, 'z_val': 0.6751062870025635}, 'time_stamp': 1533561354892807936}"

AloshkaD avatar Aug 06 '18 13:08 AloshkaD

@sytelus Is there any update on this issue? I want to disable collisions between multiple vehicles but keep collisions with the environment, so that I can simulate tons of cars at the same time to speed up RL training.

liqimai avatar Dec 15 '23 08:12 liqimai