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

How to enable collision in in CV mode? #1565

Closed
karimmamer opened this issue Nov 23, 2018 · 3 comments
Closed

How to enable collision in in CV mode? #1565

karimmamer opened this issue Nov 23, 2018 · 3 comments

Comments

@karimmamer
Copy link

karimmamer commented Nov 23, 2018

Hi,

I am trying to detect collision in CV mode however the camera passes through the objects, collision count doesn't appear on Unreal and has_collided is always False. I am using the following code:
``import airsim

client = airsim.VehicleClient()
client.confirmConnection()
client.reset()

for i in range(40):
client.simSetVehiclePose(airsim.Pose(airsim.Vector3r(i, 0, 0), airsim.to_quaternion(0, 0, 0)), False)
info = client.simGetCollisionInfo()
if info.has_collided:
print(info)

and the following settings:
``{
"SeeDocsAt": "https://github.com/Microsoft/AirSim/blob/master/docs/settings.md",
"SettingsVersion": 1.2,
"SimMode": "ComputerVision",
"ViewMode": "Fpv"
}

I work with python 3, Unreal 4.18 and Blocks environment on Ubuntu 16.04.

@BrunoXL
Copy link

BrunoXL commented Nov 23, 2018

I think CV mode has made to not allow collision!

@karimmamer
Copy link
Author

I assumed it is available after reading this paragraph in the documentation.

@jonyMarino
Copy link
Collaborator

See the ExternalPhysics Engine
Closed due to age.
Please feel free to open a new issue (referring to this one) if you still have this problem.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants