-
Notifications
You must be signed in to change notification settings - Fork 419
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
Distance to closest semantic wall #526
Comments
In theory yes, you can use the bounding boxes in the semantic annotations to approximate this. However, in practice, this still won't give you what you are looking for as the closet obstacle search will simply find the closet obstacle, regardless of whether or not it is furniture or a wall, so you may still end up near walls. Perhaps a better way to do this is to iterate over all the wall objects in the scene (https://aihabitat.org/docs/habitat-sim/habitat_sim.scene.SemanticScene.html#objects from here: https://aihabitat.org/docs/habitat-sim/habitat_sim.simulator.Simulator.html#semantic_scene) and then check to see if the distance to the bounding box is greater than some threshold (https://aihabitat.org/docs/habitat-sim/habitat_sim.geo.OBB.html#distance). I believe the walls in replica are annotated in a way that they can be well approximated by a bounding box, so this should work. |
Sounds interesting. One pointer -- @mpiseno is building native "data/sensor acquisition" capability in Habitat-Sim, i.e. the ability to extract images/semantics from various viewpoints across 3D scenes. You can follow his progress here: #518 |
Closing as the question was answered. |
❓ Questions and Help
Hi,
Thanks for providing Habitat! Great work!
I am building an agent that walks around in the scene by traversing randomly navigable points and collecting sensor data from the Replica dataset.
I have successfully achieved the above, but I would like to have better control when sampling the random points. I do not want them to be too close to a wall because this will make the sensor data less reliable. Being close to e.g. a chair is, however, not a problem. Currently, I have set a threshold as follows:
This means that I will add the point only if its distance to any obstacle is at least max_search_radius. This means that I will also stay away from furniture, which I don't want.
My question: Given a surface point (e.g. coming from the output of the function "closest_obstacle_surface_point", is there any way to find it's semantic class such that I can only focus on walls?
Thanks a lot
The text was updated successfully, but these errors were encountered: