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

Allow agent reference to be kept #313

Merged
merged 3 commits into from
Oct 20, 2019
Merged

Allow agent reference to be kept #313

merged 3 commits into from
Oct 20, 2019

Conversation

erikwijmans
Copy link
Contributor

Motivation and Context

Habitat-sim currently crashes if you do

agent = sim.get_agent(0)
sim.close()

as the sensors have OpenGL related things, but the simulator owns the OpenGL context.

Also makes sensors on the agent private, so we don't have to go down this rabbit hole further.

How Has This Been Tested

With the test!

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Oct 18, 2019
Copy link
Contributor

@mathfac mathfac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@erikwijmans thank you, I checked the PR fixes all issues related to agent reference. Let's merge it.
@piotr-bojanowski, you can rebase on up to date master.

@erikwijmans erikwijmans merged commit 3dd073a into master Oct 20, 2019
@erikwijmans erikwijmans deleted the fix-keep-agent branch October 20, 2019 00:03
Ram81 pushed a commit to Ram81/habitat-web-sim that referenced this pull request Dec 10, 2020
* Fix issue where habitat-sim doesn't let you keep a reference to an agent
gracefully

* More agent keeping

* Fix test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants