Support tele-op for Franka Kitchen environments ("vel" mode)#142
Support tele-op for Franka Kitchen environments ("vel" mode)#142sriramsk1999 wants to merge 5 commits intovikashplus:devfrom
Conversation
|
I haven't tested in cases you are using it now. This might be a good chance for me to test those. I'm traveling this week. I'll be able to take a look next week. |
|
Bump on this PR. Even though the teleop works, it would be good to know if the implementation is correct, especially since it doesn't work when I normalize the velocities. |
vikashplus
left a comment
There was a problem hiding this comment.
Thanks for your contributions and appologies for the delay in reviews. I have been traveling.
|
Let me know when its ready for a merge and I'll do a thorough review. |
|
Ready for review! |
vikashplus
left a comment
There was a problem hiding this comment.
Added one comment, rest looks good.
| </body> | ||
|
|
||
| <site name='target' pos='0 0 0' size='0.1' rgba='0 2 0 .2'/> | ||
| <site name='target' type='box' size='.03 .07 .04' pos='-0.4 0.4 2.1' group='1' rgba='0 1 .4 0' euler="0 3.14 3.14"/> |
There was a problem hiding this comment.
To make it a general solution
- we can keep the site in its default position.
- When teleOp is initialized, we should programmatically move this site to where the end effector is. That will avoid any initial jump in teleOp during connection to the robot.
There was a problem hiding this comment.
Done! It's working as expected, but I'm seeing some weird behaviour from the rpFrankaRobotiqData-v0 environment:
The target site isn't placed exactly at the end effector. It's placed a little bit above + rotated compared to the actual location of the end effector. For the Franka Kitchen environment, the goal site is centered exactly on the end effector.
There was a problem hiding this comment.
This seems like an issue with conventions. Double-check where all the site frames are (both position and orientations)
There was a problem hiding this comment.
It looks like we see this issue because the end_effector site is defined for the Franka gripper, and the Robotiq gripper doesn't redefine it. Because of the grippers' different dimensions, it doesn't align perfectly for the Robotiq gripper.
- The overall difference is fairly small (see images below) and probably doesn't matter much for teleop.
- This issue can also be observed in the main branch and is not introduced in this PR.


Changes Summary:
ee_targetto Franka Kitchen xmlnormalize_actionsMotivation:
Currently, the teleop code only supports "pos" mode environments, where the expected input action is the qpos coordinates. Other environments, like the Franka Kitchen envs, are "vel" mode - where input action is the velocity of each joint.
NOTE: Normalizing the qvel does not work, the values are too small and the end effector never reaches the teleop target. Is there some issue with how the normalization is called?