Git Product home page Git Product logo

Comments (10)

jcarpent avatar jcarpent commented on September 26, 2024 1

@huaijiangzhu You just need to add this compilation flag -DPINOCCHIO_ENABLE_COMPATIBILITY_WITH_VERSION_1when compiling Pinocchio, nothing more.

Then someone has to take care of making TSID compatible with the last version of Pinocchio. @huaijiangzhu Can you do it? It is not hard, a simple find and replace.

from tsid.

huaijiangzhu avatar huaijiangzhu commented on September 26, 2024

@huaijiangzhu You just need to add this compilation flag -DPINOCCHIO_ENABLE_COMPATIBILITY_WITH_VERSION_1when compiling Pinocchio, nothing more.

Then someone has to take care of making TSID compatible with the last version of Pinocchio. @huaijiangzhu Can you do it? It is not hard, a simple find and replace.

Thanks for the reply! I just replaced the namespace but now I got a new error:
error: no matching function for call to ‘centerOfMass(const Model&, tsid::robots::RobotWrapper::Data&, int, bool)’
pinocchio::centerOfMass<true,true,true>(m_model, data, false);

Looks like the centerOfMass API is also changed in the new Pinocchio, but I'm not sure how to modify it accordingly. Can you help me with that?

from tsid.

jcarpent avatar jcarpent commented on September 26, 2024

Yes, sure. For this function, the template parameters have been replaced by a LEVEL, see https://github.com/stack-of-tasks/pinocchio/blob/01f211eceda3ac2e5edc8cf101690afb6f3184d3/src/algorithm/center-of-mass.hpp#L101 for further details.
In your case, you want to compute the center of mass position, velocity, and acceleration together, so then LEVEL = 2.

from tsid.

huaijiangzhu avatar huaijiangzhu commented on September 26, 2024

Yes, sure. For this function, the template parameters have been replaced by a LEVEL, see https://github.com/stack-of-tasks/pinocchio/blob/01f211eceda3ac2e5edc8cf101690afb6f3184d3/src/algorithm/center-of-mass.hpp#L101 for further details.
In your case, you want to compute the center of mass position, velocity, and acceleration together, so then LEVEL = 2.

Thank you for the explanation! But I still get the same error despite putting a 2 in the function call:
error: no matching function for call to ‘centerOfMass(const Model&, tsid::robots::RobotWrapper::Data&, int, bool)’
pinocchio::centerOfMass<true,true,true>(m_model, data, 2, false);

from tsid.

jcarpent avatar jcarpent commented on September 26, 2024

Because you have to remove the template parameters <true,true,true> to obtain:

pinocchio::centerOfMass(m_model, data, 2, false);

from tsid.

huaijiangzhu avatar huaijiangzhu commented on September 26, 2024

@jcarpent Thanks! Now the code compiles. But when I try to run the test, I get an import error:
Traceback (most recent call last): File "test_Formulation.py", line 2, in <module> import tsid File "/home/hz/py27/local/lib/python2.7/site-packages/tsid/__init__.py", line 1, in <module> import libtsid_pywrap as tsid ImportError: libtsid.so: cannot open shared object file: No such file or directory

Any idea what can cause this?

from tsid.

jcarpent avatar jcarpent commented on September 26, 2024

Have you installed TSID? In which directory?
Similarly to Pinocchio, you have to configure your environment variables. You can look at https://stack-of-tasks.github.io/pinocchio/download.html#Install_4

from tsid.

jcarpent avatar jcarpent commented on September 26, 2024

@huaijiangzhu Can you make a PR to fix these issues that you've raised?

from tsid.

huaijiangzhu avatar huaijiangzhu commented on September 26, 2024

Similarly to Pinocchio, you have to configure your environment variables. You can look at https://stack-of-tasks.github.io/pinocchio/download.html#Install_4

Thanks, it works now!

@huaijiangzhu Can you make a PR to fix these issues that you've raised?

Sure, I will!

from tsid.

andreadelprete avatar andreadelprete commented on September 26, 2024

I just created a new branch pinocchio_v2 that is compatible with the new version of Pinocchio (currently only available on the devel branch of Pinocchio). The master branch of TSID remains aligned with the master branch of Pinocchio (and the binaries), which is still on version 1.3

from tsid.

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.