Giter VIP home page Giter VIP logo

naokinematics's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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

naokinematics's Issues

Bug Forward kinematics results don't correspond to naoqi getPosition method results

When comparing the nao forward kinematics results of this library and those from naoqi, I noticed a bug in the Z axis value.

The code:

    //Right Hand
    joints[L_ARM+SHOULDER_PITCH]=0;
    joints[L_ARM+SHOULDER_ROLL]=0;
    joints[L_ARM+ELBOW_YAW]=0;
    joints[L_ARM+ELBOW_ROLL]=0;
    joints[L_ARM+WRIST_YAW]=0;
    //Right Hand
    joints[R_ARM+SHOULDER_PITCH]=0;
    joints[R_ARM+SHOULDER_ROLL]=0;
    joints[R_ARM+ELBOW_YAW]=0;
    joints[R_ARM+ELBOW_ROLL]=0;
    joints[R_ARM+WRIST_YAW]=0;

    //Now we can set the joints to the class
    nkin.setJoints(joints);

    output1= nkin.getForwardEffector((NAOKinematics::Effectors)CHAIN_L_ARM);

    //Right Hand
    output2 = nkin.getForwardEffector((NAOKinematics::Effectors)CHAIN_R_ARM);

    std::cout << "x = " << output1(0,3) << " y = " << output1(1,3) << " z = " << output1(2,3) <<  std::endl;
    std::cout << "x = " << output2(0,3) << " y = " << output2(1,3) << " z = " << output2(2,3) <<  std::endl;

The output:

x = 218.7 y = 113 z = 112.31
x = 218.7 y = -113 z = 112.31

Naoqi output for the Left arm in the same configuration in meters:

x = 0.21852196753025055,
y = 0.11063870042562485,
z = 0.08774302154779434,

The bug correspons to the HandOffsetZ constant when used to calculate the constant translation matrix. According to the aldebaran documentation HandOffsetZ is negative in the z axis.

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.