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

Added new teleoperation script + PushCubeLoop env + small refactoring of the environments. #34

Merged
merged 10 commits into from
Oct 20, 2024

Conversation

michel-aractingi
Copy link
Contributor

@michel-aractingi michel-aractingi commented Oct 15, 2024

What does this PR do:

  • Added new teleoperation script with LeRobot code in examples/teleoperate_leader_lerobot.py
  • Added new PushCubeLoop-v0 env in push_cube_loop_env.py to mimic the RL task currently used in LeRobot.
  • Added visualizations to PickPlace-v0 and PushCube-v0 in order to visualize the target region.
  • Added indexing to the cube and arm poses based on their body name in the sim in all envs rather than constant indices.
  • Added control decimation, i.e. multiple simulation steps per control step.
  • Improved the contact between gripper and cube by modifying the collision params in the description.

Bug fixes:

How to checkout and test:

In order to test the teleoperation you should:

  1. Get the start_pos from the calibration done by LeRobot and change the values in examples/teleoperate_leader_lerobot.py. (can be found in .cache/calibration/koch/main_leader.json)
  2. Run (use mjpython for mac):
python examples/teleoperate_leader_lerobot.py --device /dev/tty.usbmodem585A0078211 --env-name PushCubeLoop-v0

depending on your device and environment you'd like to test.

TODO

Learning:

  • Validate action space: instead of absolute joint angle commands add a delta joint angle commands.
  • Validate reward function: debug reward function by trying to learn the tasks with LeRobot's tdmpc
  • Add sparse reward functions.

@perezjln perezjln merged commit f270bba into perezjln:main Oct 20, 2024
0 of 4 checks passed
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.

2 participants