Code Monkey home page Code Monkey logo

Comments (7)

jcarpent avatar jcarpent commented on September 1, 2024

Could you provide a short Python example to understand what you did exactly?

from pinocchio.

thuuzi avatar thuuzi commented on September 1, 2024

Could you provide a short Python example to understand what you did exactly?

Yes.Here's a pseudocode snippet in C++ to illustrate the issue. First, I construct a floating base model as follows:

pinocchio::JointModelComposite rootJoint(2); rootJoint.addJoint(pinocchio::JointModelTranslation()); rootJoint.addJoint(pinocchio::JointModelSphericalZYX()); pinocchio::urdf::buildModel(my_model_urdf_path, rootJoint, my_model);

then I get the Jacobian Jac

pinocchio::getFrameJacobian(my_model, data, ee_link_number, pinocchio::LOCAL_WORLD_ALIGNED, Jac); Eigen::Matrix3d Jac_v = Jac.topLeftCorner<3, 3>();

I find Jac_v was always an identity matrix. It's corresponding to linear velocity part of the floating base. If the velocity is represented in the LOCAL frame, Jac_v should vary with the floating base pose but it' didn't. So I think the floating base velocity is instead represented in the WORLD frame.

from pinocchio.

jcarpent avatar jcarpent commented on September 1, 2024

Could you give us the value of the configuration vector associated with the FF?

from pinocchio.

thuuzi avatar thuuzi commented on September 1, 2024

Could you give us the value of the configuration vector associated with the FF?

Actually I have tried many configurations randomly, results are the same. And other parts of the jacobian are correct. I just want to know whether the generalized velocity of the floating base is represented in WORLD frame when the root joints are JointModelTranslation() and JointModelSphericalZYX(). Could you clarify this for me?

from pinocchio.

fabinsch avatar fabinsch commented on September 1, 2024

hi @thuuzi, after several discussions we have recently merged a python script in #2143 that could help you. You can easily extend it to have a combination of JointModelTranslation and JointModelSphericalZYX as root joint and visualize it.

from pinocchio.

thuuzi avatar thuuzi commented on September 1, 2024

really appreciate it

from pinocchio.

thuuzi avatar thuuzi commented on September 1, 2024

After test, the floating base velocity is represented in the WORLD frame with JointModelTranslation and JointModelSphericalZYX as root joint

from pinocchio.

Related Issues (20)

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.