Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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_assets
ormodels_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_zoo
folder. 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
SingleRobotEmptyScene
with reasonable constants for gravity, timestep, and frame skip.RL Formalization
human
orrgb_array
)rgb_array
mode)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.