robot-control-stack icon indicating copy to clipboard operation
robot-control-stack copied to clipboard

Pinocchio IK with MJCF

Open juelg opened this issue 1 year ago • 2 comments

It should be possible to use the mjcf as a base for the pinoccio ik. Implementation has already been started to this branch. However, there are a few issues that come up while integrating it:

  • you need use the robot mjcf file and not the scene file. Includes seem to not work in the pinocchio mjcf parser
  • xml options "compiler", "option", "default" and "asset" need to be inside the xml file given to pinocchio
  • the mjcf has to have all definition on the top as the pinocchio compiler only does a single run
  • it seems as if the gravcomp tags are not supported, so we might need a way to remove them before feeding into pinocchio

Definition of done

  • [x] cartesian example is working with mjcf xml file
  • [x] define a way to get the robot mjcf file (parsing out of the scene file or directly specifying it)
  • [x] remove the gravcomp tags automatically in a temp location before reading the file in
  • [x] test that the cartesian example is also working for other robots (UR5 and so101), they are implemented in #197
  • [x] a small test that tests inverse and forward kinematic calculation of pinocchio and robotics library

juelg avatar Jul 17 '25 15:07 juelg

all except the tests done in #205

juelg avatar Aug 08 '25 14:08 juelg

tests for pinocchio ik added in #232

juelg avatar Nov 23 '25 18:11 juelg