-
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
Adding sensors to HITL app #2384
Comments
System information & package versions
In case this is relevant 😃 |
Hey @ambervg, Thanks for the detailed info! |
@0mdc Thanks. Would love to hear when you have any thoughts! |
It might be valuable for me to expand a little bit about what exactly I want to do. The goal is to export observations from different angles in the simulation. These angles can be static in the environment or moving with the agent (e.g. zoomed-out first person perspective). My assumption was that sensors would be the easiest way to do that, but I am also open to alternative approaches. |
Hey @ambervg Apologize for the late reply. This stack is also obscure to me. These observation keys probably have to be defined. Note that the
There are some utilities that may be helpful if you want quick observations, such as the |
@zephirefaith Since you had to go through these hoops recently, would you know if anything else needs to be defined for this to function as expected in the current stack? |
@0mdc @zephirefaith @rutadesai I guess that for agent_1 sensors the issue is also that the sensors of the gui_controlled_agent are being cleared, as described in facebookresearch/habitat-lab#2003 . Any solutions for that? |
Hey @ambervg, just went through your issue and saw that you're specifically having trouble with the Here that specific sensor is being removed (not sure why, CC:@0mdc). If you can confirm you can see the other sensors, then I'd recommend adding a guard/flag here and see if this solves your problem? |
That's it! Using the same guard as in config_helper.py does the job. I don't know if there is a specific reason for this sensor to be removed, but so far nothing is breaking.
Thank you! |
Great! Glad this worked, could you please close out this issue (or tagging @0mdc)? |
I am working on a simple HITL app and for this I am trying to add some more sensors via a config.yaml file. The final goal would be to export some video's from these sensors. I have been looking at default_structured_configs.py from the habitat-lab repo on how to structure that config.yaml file.
Below I will post a snippet. I also made a dummy project repo, which I will link here.
However, when I try to access the sensor information through
sim.get_sensor_observations().keys()
, I don't see my newly created sensors. Is there something else I need to do so I can retrieve observations through these sensors? Looking at this tutorial it seems like adding them to the config should be enough.Please let me know whether what I am asking is unclear, so I can elaborate. If anyone could help me out with this question, that would be greatly appreciated! I did checkout the documentation/tutorials before posting this issue, so I hope that I have not overlooked an obvious answer from there.
The text was updated successfully, but these errors were encountered: