Up:Tutorial    Previous:Grasping Function     Next: Wheeled mobile robot  


Control of humanoid agent by BVH file

※This tutorial is valid for later than SIGVerse v2.1.0

Download sample programs

Make working directory.

$ cd ~
$ mkdir readBVH
$ cd readBVH

Please download the programs from below link.

https://github.com/SIGVerse/samples/tree/master/controllers/AgentControllerByBVHfile

You can download all sample controllers from this page.

The package includes the following files.

  • Controller
    • srcs/BVH.cpp
    • srcs/BVH.h
    • srcs/BVHController.cpp
    • srcs/BVHController.h
  • World file
    • BVHWorld.xml
  • Agent configuration file
    • Man-bvh.xml
  • Shape model for the humanoid agent
    • bvh_man.x3d
  • other
    • Makefile

Compilation

$ make

BVHController.so will be output.

Getting bvh file

Put your favority bvh file on the current directory (~/readBVH). This tutorial uses Action_Kick_bvh.bvh provided by PV STUDIO

Configuration of world file

Specify the target bvh file in the world file

$ emacs BVHWorld.xml

BVHWorld.xml old

new

The path for the bvh file should be relative path from the directories to execute.

BVHWorld.xml

Execution

$ sigserver.sh -w ./BVHWorld.xml

You can see an avator agent is standing with its hands opened.

Push the start button to start the simulation. The bvh file will be read after the simulation start.

motion_kick.PNG

The agent will perform kick motion.

sample model

Joint names used in the sample model (bvh_man.x3d) is as shown in the following picture. All of the joints is configured to rotate around x,y,z axis of local coordinate.

joint_name.jpg

reference

Up:Tutorial    Previous:Grasping Function     Next: Wheeled mobile robot  

Counter: 2543, today: 3, yesterday: 0

Attach file: filemotion_kick.PNG 689 download [Information] filejoint_name.jpg 111 download [Information] filereadBVH_2.1.0.tar.gz 696 download [Information]

Front page   Edit Freeze Diff Backup Upload Copy Rename Reload   New List of pages Search Recent changes   Help   RSS of recent changes
Last-modified: 2016-02-25 (Thu) 18:56:35 (424d)