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 do I disable animals in Neighborhood environment? #2696

Closed
llucid-97 opened this issue May 16, 2020 · 2 comments
Closed

How do I disable animals in Neighborhood environment? #2696

llucid-97 opened this issue May 16, 2020 · 2 comments

Comments

@llucid-97
Copy link

I'm trying to use airsim's Neighborhood scene as an RL environment.
One of my "fail conditions" is collisions.
Animals trigger this by running into the vehicle, or standing on the spawn point, clipping into the car and launching it off to space the second it spawns 🤣
Is there a way to configure the neighborhood environment to disable animal spawns? I haven't found one in the docs

@rajat2004
Copy link
Contributor

Lol 😆
There are PRs to add such an API, see #2651, which has lots of others as well, #2561 which was closed in favour of the former
However there's no such functionality in the current binaries at least

A lengthy workaround could be to use simGetCollisionInfo and check the object name, and if it matches with the animals, then ignore that. Not a pretty one, but might work

@llucid-97
Copy link
Author

llucid-97 commented May 17, 2020

Thanks, I'll use that workaround for now and just hard reset on the lunar launches 👍

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

No branches or pull requests

2 participants