GibsonEnv icon indicating copy to clipboard operation
GibsonEnv copied to clipboard

Real Time Plotting on play_husky_camera.py

Open Berk035 opened this issue 5 years ago • 1 comments

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:

  1. play(env, zoom=4, callback=plt.callback), PlayPlot class is imported as plt and it's callback function is called as callback function.
  2. if callback is not None: callback(prev_obs, obs, action, rew, env_done, info), the code is worked successively.
  3. 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.

Berk035 avatar Mar 04 '20 16:03 Berk035

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.

Berk035 avatar Mar 18 '20 13:03 Berk035