[Documentation] [TitleIndex] [WordIndex

Only released in EOL distros:  

Package Summary

The bvh_broadcaster package

Overview

This package broadcasts BVH files (a motion capture data format) as tf transfromations.

GitHub repository: https://github.com/mingfeisun/bvh_broadcaster

Data input

Input contains two string parameters:

You can find relevant BVH-formatted CMU MoCap from this post. Get BVH-formatted motion capture data from here.

Usage

   1 python bvh_broadcaster.py [-h] [-n NAME] [-l] bvh_file base_frame
   2 
   3 positional arguments:
   4   bvh_file              A path to bvh file that you want to broadcast
   5   base_frame            An existing frame in rviz on which the skeleton will
   6                         be loaded
   7 
   8 optional arguments:
   9   -h, --help            show this help message and exit
  10   -n NAME, --name NAME  Node name, default: BVHBroadcaster
  11   -l, --loop            Loop broadcasting

For example:

   1 # add execution access
   2 chmod +x scripts/bvh_broadcaster.py
   3 # loop broadcasting bvh to world frame
   4 python scripts/bvh_broadcaster.py example/13_14.bvh world -l

Now, you can view the result in rviz:

https://raw.githubusercontent.com/mingfeisun/bvh_broadcaster/master/example/example_bvh.gif

The original actor and BVH file are as follows:

https://github.com/mingfeisun/bvh_broadcaster/blob/master/example/example_actor.gif?raw=truehttps://github.com/mingfeisun/bvh_broadcaster/blob/master/example/example_animator.gif?raw=true

BVH resources for Motion Capture

CMU provides a lot of useful motion capture data, see CMU MoCap. Nevertheless, these data are not presented in BVH format. You can find relevant BVH-formatted CMU MoCap from this post.


2024-11-09 13:03