Git Product home page Git Product logo

Comments (6)

andreadelprete avatar andreadelprete commented on September 26, 2024

Hi @TaeilJin
first of all I'd need some more information. Which branch of TSID are you using? master or devel? Or did you install it with robotpkg?
Which version of python are you using? 2 or 3? On which OS are you? Which version of pinocchio are you using?

from tsid.

TaeilJin avatar TaeilJin commented on September 26, 2024

Thank you for your quick response!

I use python 2.7 in Linux (ubuntu 18.04).

I build TSID from source of master branch.
There was no src folder in /opt/openrobots, so I cloned git(master branch) on my /home/myOwn folder and then modified the line " -DCMAKE_INSTALL_PREFIX=$"opt"/openrobots "

I installed the pinocchio using robotpkg. Based on my knowledge, I can't find the version of the pinocchio.

from tsid.

olivier-stasse avatar olivier-stasse commented on September 26, 2024

To get pinocchio version could you tell us the result of:

dpkg -l | grep robotpkg-pinocchio

The third column will tell us the version of the package.

from tsid.

TaeilJin avatar TaeilJin commented on September 26, 2024

Thank you for instruction!

It tells version of pinocchio is 2.3.1

from tsid.

andreadelprete avatar andreadelprete commented on September 26, 2024

Hi @TaeilJin
sorry for the delay, hard period for me in Italy.

At a first glance the problem seems related to mixing numpy arrays and matrices. Probably you're using a version of pinocchio that by default uses arrays (which is the new standard), but that script is still using matrices. You may fix that quickly by asking pinocchio (or more precisely eigenpy) to use matrices. The command to do so is

import eigenpy
eigenpy.switchToNumpyMatrix()

Moreover, it seems you're using one of the few scripts that has not been converted yet from python 2 to python 3. You may wanna switch to using python 3, since python 2 won't be supported any more (eventually).

from tsid.

andreadelprete avatar andreadelprete commented on September 26, 2024

Hi @TaeilJin
I've just pushed on the devel branch of TSID an updated version of demo_romeo.py, which works with numpy.array, so it should be compatible with pinocchio and eigenpy now.
I've also upgraded it to Python 3, which now is the new standard, so I suggest you to switch to Python 3 as well. This should solve the issue, so I close it. Feel free to re-open it if you have some more questions.

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.