GibsonEnv
GibsonEnv copied to clipboard
Real Time Plotting on play_husky_camera.py
Hello everyone,
I have tried to work real time plotting on play_husky_camera.py for a while. Unfortunately, I met a little bit weird problem. I applied following steps and a weird error was occurred:
- play(env, zoom=4, callback=plt.callback), PlayPlot class is imported as plt and it's callback function is called as callback function.
- if callback is not None: callback(prev_obs, obs, action, rew, env_done, info), the code is worked successively.
- But, in this point the error (callback() missing 1 required positional argument: 'info') occurred in despite of def callback(self, obs_t, obs_tp1, action, rew, done, info):
Do you have any idea for solving this problem? Thank you in advance.
A contributor wrote the callback function would be like this:
def callback(obs_t, obs_tp1, action, rew, done, info): return [rew,]
Unfortunately, the error is still exist.