How to get the image as the observation in the "reacher"


#1

Typically, we can get the joint angle as the observation in the “reacher” task with the assistance of OPENAI GYM. However, now I need to get the picture of the reacher as the observation to test the DRL algorithm. How should modify the file “reacher.py” or anything else?
Thanks a lot
cardwing


#2

I have the same problem with you.I would like to know if there is a function in gym that can
capture the image of the demo window.I want to use the image of every moment to be the input of DNN.Do you find the solution?


#3

Did you find a solution?


#4

You can run:

screen = env.render(mode='rgb_array')