Open sreeharshaparuchur1 opened 1 year ago
Hi @sreeharshaparuchur1 sorry for the late reply. Have you figured out how to create this function? If not, since you have several questions, feel free to reach out to me by email to schedule a video call so I can answer your questions altogether and help you debug.
Hello there @ChanganVR,
I would like to create an 'env' object similar to the one defined here that has a 'step' function and returns the observations, rewards, dones and infos for every timestep, initially on just one environment (unlike the multiple that the code snipped referenced above can handle).
So how do I go about doing this? I've tried tracing the code for multiple models that use soundspaces such as av_wan, av_nav, savi and Move2Hear. However, these codes initialize a 'Trainer' from the baseline registry class which I am unable to breakdown and trace to locate where the env class is being initialized.
The method of initializing a soundspaces environment given in the soundspaces2_quick_tutorial won't work for my desired application as it requires very low-level initialization of the scene_dataset, camera parameters and agent action space.
So, I have tried initializing the environment similar to how it's done in the shortest path follower example script. As I want to initialize an AudioNav environment, I have modified the code and config loaded as follows:
the code:
the config loaded above:
However, when I try to initialize a greedyFollower as given in the shortest_path_follower_example with:
I run into this error:
what's even more concerning is that on printing the agent characteristics given by
print(f"{env.habitat_env.sim.agents}")
I see this:
This is not expected behaviour as the ActuationSpec object above does not reflect the manually set TURN_ANGLE and FORWARD_STEP_SIZE from the above config.
Kindly let me know what I'm doing wrong and what a simple way to get the class above would be as well as how I can manually adjust the rewards for each timestamp as I would want to design a reward of my own and test it in the soundspaces environment.
Thank you!