Giter Club home page Giter Club logo

mvnx-to-urdf's Introduction

Contents

Installation

Prerequisites

  • Matlab
  • iDynTree: a library of robots dynamics algorithms for control, estimation and simulation.

Una-tantum procedure

  • Install the robotology-superbuild.
    git clone https://github.com/robotology/robotology-superbuild.git
    mkdir build
    cd build
    
    Follow installation instructions here. The required library iDynTree will be automatically install via the superbuild.
  • Enable the Matlab bindings for iDynTree.
    cd robotology-superbuild/build/src/iDynTree
    cmake ..
    ccmake .
        ROBOTOLOGY_ENABLE_MATLAB    ON
        IDYNTREE_USES_MATLAB        ON
        Matlab_ROOT_DIR             root-to-your-application-Matlab
    make install
    
    • In your .bashrc add export Matlab_ROOT_DIR="root-to-your-application-Matlab".
    • Open Matlab and browse to the folder your-path/robotology-superbuild/build.
    • Run the script Startup-robotology-superbuild.m.

How to generate models

What you need

  • A data folder (e.g., data) containing your dataset, per each subject (e.g., S00X) with
    • a .mvnx file for the human whole-body acquisition.
    • a .mat file with markers acquisition for the hand (if you wantto build the model with articulated hands)
  • The folder templates containig human templates for URDF models.

How to use it

  • Move to the folder where you clone the repo.

  • Run the script computeHumanURDF.m

  • Fill the dialog box with required info.

  • If you do not want to include the articulad model of the hand into the URDF, insert 'n'. This means that the hand will be represented only by a unique rigid box in the URDF.

  • If you want to include the articulad model of the hand into the URDF, insert 'y'. This will open another dialog box, as follows:

  • With the second dialog box you can choose if building
    • an anthropometric model of the hand. This model does not require the markers acquisition, but only the .mvnx.
    • a marker-driven model of the hand. This model also requires an acquisition of markers properly positioned on top of the hand with a standard optical cameras tracking (e.g., Vicon).

Examples

Given

  • the subject number (e.g., 1)
  • the subject mass (e.g., 60)
  • the subject height (e.g.,1.80)
OPT 48 DOF 66 DOF ANTHROPOMETRIC HAND MARKER-DRIVEN HAND GENERATED URDF
1 ✔️ 1
2 ✔️ 2
3 ✔️ ✔️ 3
4 ✔️ ✔️ 4

mvnx-to-urdf's People

Contributors

claudia-lat avatar lrapetti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mvnx-to-urdf's Issues

Failed to read XML file

Hello!

I've installed the asked robotology by given manual. But during the installation, I did some steps differently.
First, I created a folder 'build'
Then inside the build I made
cmake .. and ccmake ..
But here I did not meet ROBOTOLOGY_ENABLE_MATLAB line to ON it.
After I made
make install inside of iDynTree, not inside of the build folder.

The thing is that the folder was compiled. But when I run computeHumanURDF.m script on Matlab, it returns the next error:

`[Start] Computation of Subject_01 URDF model
- Model with 66 DoFs (excluded hand DoFs)
- Model without articulated hand
- Subject mass: 85.00 [kg]
- Subject height: 180.00 [m]
Error using xml_read (line 143)
Failed to read XML file
/home/robot/Documents/HRI/human-model-generator-master/human_23links/data/mvnx/Participant_541_Setup_A_Seq_3_Trial_1.xsens.mvnx

Error in extractDataFromMvnx (line 26)
mvnxData = xml_read(mvnxFilename);

Error in computeHumanURDF (line 111)
suit = extractDataFromMvnx(bucket.mvnxFilename);`

Could you help with that?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.