habitat-lab
habitat-lab copied to clipboard
How to enable two agents to independently obtain their own observations (they have their own RGB sensor and their own Depth sensor respectively)
How to enable two agents to independently obtain their own observations (they have their own RGB sensor and their own Depth sensor respectively)?
Hey @yyf17,
This shouldn't be too tough to accomplish. You are able to create multiple agents and attach distinct sensors to each. Once the scene and agents are initialized you can manually compute and query sensor observations for any agent/sensor independently from the others. See how we do so in this interactive viewer example. Note that doing so efficiently for training may require some refactoring in your Habitat-lab environment/task code.
Also note that our python sensor API is undergoing some re-design in the near future. Hopefully this will make use cases like yours easier, but keep an eye out for changes which may be relevant to you moving forward.
@aclegg3 Thank you.