facebookresearch / habitat-sim

A flexible, high-performance 3D simulator for Embodied AI research.
https://aihabitat.org/
MIT License
2.58k stars 418 forks source link

Habitat Sim Orientation Different From Habitat Lab Env Orientation #1843

Open arjung128 opened 2 years ago

arjung128 commented 2 years ago

In the habitat viewer, we stood at position [-12.6393,-2.90739,9.42184] and orientation [0,-0.707098,0,0.707116]. We then plugged the same position into the API with 'obs = env._sim.get_observations_at(position=position, rotation=rotation, keep_agent_at_new_pose=True)' and got a different view. Here is what we got: habitat_offset

aclegg3 commented 2 years ago

Hey @arjung128,

Some clarification:

I'm hopeful that this is the only issue here as both images appear to be a bathroom. If so, you could record and set the camera sensor position instead of the agent position to capture these additional degrees of freedom. The "Motion Tracking Camera" section of the "Habitat-Sim Advanced Topics" from our ECCV tutorial series could serve as a reference here. Also you could use the example/viewer.py instead of the viewer.cpp to avoid recompiling modified code.

Beyond that I'd need more information. To start: