Comments (3)
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.
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.
Actually, it is indirect velocity control since the target position is current_position + action*dx
.
See this line:
panda-gym/panda_gym/envs/robots/panda.py
Line 84 in 68c8742
I donβt know if it is equivalent to velocity control in pybullet.
from panda-gym.
Related Issues (20)
- pybullet.error: Error loading texture HOT 6
- When is it panda-gym going to be compatible with python 3.11? HOT 1
- how to realize the sb3 train demo code with panda-gym? HOT 2
- Typo in the `core.py` script HOT 1
- Render screen is out of sync HOT 6
- `NAN` in the training HOT 1
- How to get `predict` data from a saved model? HOT 2
- TypeError: catching classes that do not inherit from BaseException is not allowed HOT 6
- Shape of `achieved_goal` and `desired_goal` HOT 6
- Discussion about the future work HOT 9
- Decreasing Size of Action Space HOT 2
- Compatibility of gym-0.24 branch? HOT 2
- panda-gym v2 error; "TypeError: catching classes that do not inherit from BaseException is not allowed". HOT 2
- Clarification about 'observation', 'achieved_goal' and 'desired_goal' HOT 5
- Flip and Stack question HOT 3
- change the observation and return HOT 1
- reproduce the results HOT 1
- reproduce the results HOT 2
- Set to move in a two-dimensional plane HOT 6
- Clarification about the observation or system state returned by the task class HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from panda-gym.