Skip to content
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

Real Time Plotting on play_husky_camera.py #116

Open
Berk035 opened this issue Mar 4, 2020 · 1 comment
Open

Real Time Plotting on play_husky_camera.py #116

Berk035 opened this issue Mar 4, 2020 · 1 comment

Comments

@Berk035
Copy link

Berk035 commented Mar 4, 2020

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
Copy link
Author

Berk035 commented Mar 18, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant