Conversation
|
Nice! Do you have a screenshot? Were you able to train a zoo policy? |
|
Link to screenshot 1 I didn't include a solution but I have used the Guided Policy Search package to successfully solve the environment. We could try to include that, but we would either have to: a) make GPS a dependency and use it in the policy or b) try to build it ourselves using their codebase and the paper. The first one seems kind of messy and the second one seems difficult. I am trying to make a Deep RL policy but I'm not really sure how to proceed. As a sidenote, Roboschool installs pretty smoothly on Linux but for Mac, I needed to use Homebrew to install |
|
I'm getting an environment version mismatch for some reason, setting env = gym.make('RoboschoolPegInsertion-v1') in the agent_zoo/demo_peg_insertion.py fixes it for me. Also I don't see the POV camera (rgb_array) being inserted into the state (?). |
Hello, here is my pull request:
Peg Insertion Environment
Roboschool seems like a pretty cool project, but I think it would be cooler and more useful if there were some realistic robots that could perform manipulation tasks. As a first step, I've tried to develop a peg insertion environment here.
Environment
I did not develop this environment myself; I copied the MJCF file from @cbfinn 's Guided Policy Search Repository. I have included the license text from her repository at the top of the XML file accordingly. I'm not really sure how to deal with these licensing things, but I assume this should be adequate.
The environment includes a robot with an arm grasping a "peg" (cylinder). There is also a table with a slot for the peg. The goal is to put the peg in the slot efficiently.
Also, it is not clear to me whether the file should have gone in
mujoco_assetsormodels_robot, but I went with the former because it made the code easier.Development
I wasn't able to find much documentation, so I tried to adapt the code by looking at some of the other examples in the
agent_zoofolder. As a result, some of the code might be a little janky (e.g: I had to use a nested function because I was getting errors otherwise).The environment is a
SingleRobotEmptyScenewith reasonable constants for gravity, timestep, and frame skip.RL Formalization
humanorrgb_array)rgb_arraymode)Usage
Environment is registered as
"RoboschoolPegInsertion-v0"Notes
Looking at the Contributing New Environments guidelines:
TL;DR : I tried to make an environment with a robot trying to insert a peg into a slot.