-
Notifications
You must be signed in to change notification settings - Fork 8.6k
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
envs robotics - touch sensors - Shadow Hand #1299
Conversation
Co-authored-by: Luca Lach <[email protected]>
Co-authored-by: Luca Lach <[email protected]>
Co-authored-by: Luca Lach <[email protected]>
Thanks for your PR! I'm excited to get this merged and will work with @pzhokhov to figure out the best next steps. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again for this PR! I'm excited to get it merged soon.
I did an initial review and left some comments. Please address them and then I'll take another look. This PR will automatically update when you push to your branch, so just do that and let me know once ready.
Co-authored-by: Luca Lach <[email protected]>
my 2 cents here are the following - a couple of tests of the new environments are failing (tried running manually, unfortunately, those won't show in travis because this is an external PR and as such our mujoco key is not injected => no tests of mujoco-based envs are run). Please run them manually (via |
…s_85.xml; ManipulateTouchSensorsEnv._render_callback() Co-authored-by: Luca Lach <[email protected]>
Co-authored-by: Luca Lach <[email protected]>
@matthiasplappert @pzhokhov I improved the code and fixed requested changes. 376 tests passed without errors. The number of tests exceeds 359, probably because of the new touch-sensory robotic environments. gym/gym/envs/tests/test_envs.py Line 23 in 49cd480
I added obs to ManipulateTouchSensorsEnv.init here: gym/gym/envs/robotics/robot_env.py Line 38 in 49cd480
Please let me know if I can make any further improvements. |
@matthiasplappert @ndrwmlnk confirmed - tests are passing; if @matthiasplappert is happy, I am happy :) |
here's a successful travis build with the changes: https://travis-ci.org/openai/gym/jobs/489766042 (pay the "All checks have failed" no heed, I messed something up with github webhook when trying to set a build with the changes up) |
Will take another pass tomorrow (crazy busy week so far) and then we can hopefully get this merged. Thanks everyone for helping! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM now. Also verified that this works properly when building for a PyPI release and that all necessary assets are included. Merging this now.
And thanks for working with us on this PR; happy that we got it merged :) |
* extending robotics shadow hand with touch sensors * extending robotics shadow hand with touch sensors * extending robotics shadow hand with touch sensors * extending robotics shadow hand with touch sensors * extending robotics shadow hand with touch sensors * extending robotics shadow hand with touch sensors * extending robotics shadow hand with touch sensors Co-authored-by: Luca Lach <[email protected]> * add touch sensors layout * add touch sensors layout * extending robotics shadow hand with touch sensors Co-authored-by: Luca Lach <[email protected]> * extending robotics shadow hand with touch sensors * add touch sensors layout Co-authored-by: Luca Lach <[email protected]> * update touch sensors layout 85 Co-authored-by: Luca Lach <[email protected]> * add manipulate_egg_touch_sensors_85.xml & manipulate_pen_touch_sensors_85.xml; ManipulateTouchSensorsEnv._render_callback() Co-authored-by: Luca Lach <[email protected]> * add shared_touch_sensors_92.xml; solve pytest . failure Co-authored-by: Luca Lach <[email protected]>
* extending robotics shadow hand with touch sensors * extending robotics shadow hand with touch sensors * extending robotics shadow hand with touch sensors * extending robotics shadow hand with touch sensors * extending robotics shadow hand with touch sensors * extending robotics shadow hand with touch sensors * extending robotics shadow hand with touch sensors Co-authored-by: Luca Lach <[email protected]> * add touch sensors layout * add touch sensors layout * extending robotics shadow hand with touch sensors Co-authored-by: Luca Lach <[email protected]> * extending robotics shadow hand with touch sensors * add touch sensors layout Co-authored-by: Luca Lach <[email protected]> * update touch sensors layout 85 Co-authored-by: Luca Lach <[email protected]> * add manipulate_egg_touch_sensors_85.xml & manipulate_pen_touch_sensors_85.xml; ManipulateTouchSensorsEnv._render_callback() Co-authored-by: Luca Lach <[email protected]> * add shared_touch_sensors_92.xml; solve pytest . failure Co-authored-by: Luca Lach <[email protected]>
@matthiasplappert
We (@ndrwmlnk @llach) covered the hand model with 92 touch sensors and extended the HandManipulate{Block, Egg, Pen}-v0 environments to HandManipulate{Block, Egg, Pen}TouchSensors-v0. Now, an observation additionally contains 92 touch values (0 - no touch, 1 - touch detected). Sensory information allows faster and better convergence (preliminary results).
Test the environments with pre-trained weights (currently in training):
https://rebrand.ly/TouchSensors
python baselines/her/experiment/play.py HandManipulateBlockTouchSensors.pkl
python baselines/her/experiment/play.py HandManipulateEggTouchSensors.pkl
python baselines/her/experiment/play.py HandManipulatePenTouchSensors.pkl
Touch sensor sites are tailored to physical geoms (robot0:DC_Hand), thus may visually overlap with meshes (robot0:D_Vizual). Active touch sensors are highlighted in red, inactive sensors - in green:
https://rebrand.ly/TouchSensors
sensors_cube_geoms.mp4
sensors_cube_mesh.mp4
sensors_cube.mp4
sensors.mp4