ikpy icon indicating copy to clipboard operation
ikpy copied to clipboard

BVH parser

Open gemlongman opened this issue 5 years ago • 7 comments

Is there a simple way to create a chain with BVH motion files?In fact it will be perfect to add a BVH parser.

gemlongman avatar Jul 13 '20 11:07 gemlongman

Hello @gemlongman,

I'm not familiar with BVH motion capture files: do you know how exactly they encode their data? (And would you have an example?)

Phylliade avatar Jul 14 '20 16:07 Phylliade

Here is a BVH file in the zip which could be found more in https://sites.google.com/a/cgspeed.com/cgspeed/motion-capture/daz-friendly-release, they can be imported by Motion Builder to see motion. Meanwhile, there is some BVH python parser such as https://pypi.org/project/bvh/, but it will take lots of work to adapt. Running Jump To Standing Idle.zip

gemlongman avatar Jul 15 '20 03:07 gemlongman

After some investigations I'm joining you in the fact that's a super good idea!

The BVH file's HIERARCHY section is very close to the definition of a URDF, so this shouldn't be so difficult to rewrite a parser, even from scratch. I've found a good spec here: https://research.cs.wisc.edu/graphics/Courses/cs-838-1999/Jeff/BVH.html

Regarding the features, am I right to suppose we will need actually two features?

  • Creating a chain from a BVH HIERARCHY section
  • Importing a forward kinematics trajectory from a BVH MOTION section

Phylliade avatar Aug 02 '20 12:08 Phylliade

yeah~you are right Besides, for a BVH animation, the movement smooth is same important as some joint being fix at the target position. Maybe it is another big problem...

gemlongman avatar Aug 04 '20 09:08 gemlongman

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 03 '20 14:10 stale[bot]