habitat-lab icon indicating copy to clipboard operation
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)

Open yyf17 opened this issue 3 years ago • 2 comments

How to enable two agents to independently obtain their own observations (they have their own RGB sensor and their own Depth sensor respectively)? image

yyf17 avatar Dec 29 '21 09:12 yyf17

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 avatar Jan 04 '22 17:01 aclegg3

@aclegg3 Thank you.

yyf17 avatar Jan 05 '22 02:01 yyf17