Git Product home page Git Product logo

Comments (3)

qgallouedec avatar qgallouedec commented on September 22, 2024

This sounds interesting,
Honestly, I have no experience with sim2real transfer, I just know that it is not straightforward.

First point, I understand that you want to work with velocity control. panda-gym works with velocity control: actions are velocity targets. So you don't need to modify the code of panda-gym.

Secondly, you should configure the interface with gym and ROS to use the learned model on the real robot. I wrote a code in the past that may help you: https://github.com/qgallouedec/franka_python . It is an interface between the real panda robot and python via ROS.
It is provided as is, I no longer maintain this repository.

If you find/write a clean and nice code that allows to control a real robot based on panda-gym, let us know!

from panda-gym.

ruturajsambhusvt avatar ruturajsambhusvt commented on September 22, 2024

Thank you for the response. I was looking into PyBullet documentation, and I guess there is this line of code here in the PyBullet.py ->
self.physics_client.setJointMotorControlArray(
self._bodies_idx[body],
jointIndices=joints,
controlMode=self.physics_client.POSITION_CONTROL,
targetPositions=target_angles,
forces=forces,
)

I think this needs to be changed to VELOCITY_CONTROL, please correct me if I am wrong. I did that and am trying to train the reach joint space sparse reach task, but there is no much improvement after 5.5 million timesteps.

from panda-gym.

qgallouedec avatar qgallouedec commented on September 22, 2024

Actually, it is indirect velocity control since the target position is current_position + action*dx.

See this line:

target_ee_position = ee_position + ee_displacement

I don’t know if it is equivalent to velocity control in pybullet.

from panda-gym.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.