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

Panda robot action units #37

Closed
fikricanozgur opened this issue Oct 19, 2022 · 1 comment
Closed

Panda robot action units #37

fikricanozgur opened this issue Oct 19, 2022 · 1 comment
Labels
question Further information is requested

Comments

@fikricanozgur
Copy link

What is the unit of actions in the case of end-effector control: movement of end-effector in x,y and z axis and the change of finger distance? Since the simulator runs for 20 timesteps (40ms) at each action of the agent and the actions are clipped between -1 and 1 I would guess that they are in cm but I would like to know for sure. I though maybe the finger movement is in mm since it needs to cover a smaller length compared to the panda robot?

@fikricanozgur fikricanozgur added the question Further information is requested label Oct 19, 2022
@qgallouedec
Copy link
Owner

qgallouedec commented Oct 19, 2022

Action is actually indirectly a force. The timestep only sets the time during which this pseudo-force is applied.

TLDR:
First, the action is multiplied by 0.05 (0.2 for the finger action). The output is the target displacement (e.g. if the action is [0.1, 0.0, 0.0] then the target position of the gripper is its position + 5mm in the x direction).
Then, the pybullet physics engine performs an inverse kinematics to obtain the target angles of the joints. Then, PyBullet uses a PD controller to compute the torque applied on each joint.
Thus, we can think of the action as a virtual force applied at the gripper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants