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

Basic arm reaching environment created, myoArmReachRandom-v0 #232

Open
wants to merge 10 commits into
base: dev
Choose a base branch
from

Conversation

jamesheald
Copy link
Contributor

I have created a basic environment for reaching to random targets in space with the MyoSuite arm.

  • I created a new myoarm_reach.xml file by modifying the existing myoarm_relocate.xml file (I removed the object, table and bin and added a target as a site element).
  • I used the ReachEnvV0 environment class as the entry point for the environment.
  • The palm position ('S_grasp') is the part of the arm that needs to reach the target.
  • I registered a new environment, ''myoArmReachRandom-v0', in /myosuite/myosuite/envs/myo/myobase/init.py.
  • The target_reach_range has been set to encourage reasonable exploration of the 3D space.
  • Let me know if you have an established methodology for determining the ideal environment parameters (e.g. target_reach_range, max_episode_steps, far_th). I'd love to optimise these so that the environment can be made available to the community (a couple of people have already messaged me in the MyoSuite slack workspace to ask if they can access the environment).

@vikashplus
Copy link
Collaborator

Looks good to me. Next step will be train a policy to ensure all parameters are playing well.

@vikashplus vikashplus assigned jamesheald and unassigned vikashplus Sep 18, 2024
Vittorio-Caggiano and others added 7 commits October 28, 2024 16:02
BUGFIX: Fix object-target proximity threshold
Use model that has no hand or hand muscles
Add fixed and random arm reach environments.
@jamesheald
Copy link
Contributor Author

Following Vittorio's advice, I have created a myoArm model that has no hand or hand muscles (see myo_sim PR 29).

I have created a fixed and random variant of the task:

  1. Fixed: single target
  2. Random: random targets in a 30cm x 30cm x 30cm cube

Results of training for the fixed and random variants of the environment look good to me.

Vittorio suggested to include the hand bones and joints for the reaching tasks (previously excluded) and just exclude the hand tendons and muscles. The file has been updated to reflect this change.
@jamesheald
Copy link
Contributor Author

Vittorio suggested to include the hand bones and joints (previously excluded) and only exclude the hand tendons and muscles. I've done this and trained a SAC policy on the random variant of the task. Here are the training results.

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

Successfully merging this pull request may close these issues.

3 participants