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

Can habitat get the whole information of the simulation scene? #2094

Open
Roberyan opened this issue Oct 25, 2024 · 1 comment
Open

Can habitat get the whole information of the simulation scene? #2094

Roberyan opened this issue Oct 25, 2024 · 1 comment
Labels
good first issue Good for newcomers support User support requested (e.g. system specific issue or API usage question)

Comments

@Roberyan
Copy link

I am working on a project to extract image data for training a model. I wonder if habitat is able to locate different object's location even in different rooms? Like I want to measure the distance of robot to any given objects in the simulation env, is this possible in habitat env? I did not see anything similar in the tutorial page.

@aclegg3
Copy link
Contributor

aclegg3 commented Oct 29, 2024

Yes, you can get distance to objects assuming the objects are annotated (as SemanticObjects) or dynamic/kinematic (ManagedObjects).
For example, with ReplicaCAD or HSSD (dataset with inserted objects) you can get all the objects from the RigidObjectManager and use their .translation property as the input to a navmesh snap function call. That will give you a valid navigable point to reach the object (sometimes this can be more difficult to acquire). Once you have a valid nav point you can use the ShortestPathFollower to get a geodesic path from the agent'd position to the object position and measure it for distance.

This is actually not too expensive overall but there are several details in that exmplanation which I have't unwrapped. Feel free to ask any follow-up questions once you've looked in to the things I mentioned above or to ground the problem in your specific use case.

@aclegg3 aclegg3 added good first issue Good for newcomers support User support requested (e.g. system specific issue or API usage question) labels Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers support User support requested (e.g. system specific issue or API usage question)
Projects
None yet
Development

No branches or pull requests

2 participants