stack-of-tasks / pinocchio

A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives
http://stack-of-tasks.github.io/pinocchio/
BSD 2-Clause "Simplified" License
1.67k stars 357 forks source link

Installation of pinocchio 3.0 #2270

Closed paumarquez closed 1 week ago

paumarquez commented 1 month ago

Bug description

Installing pinocchio 3.0 is not possible from pypi, conda or apt. When I do so, I get the 2.7 version

Expected behavior

Pinocchio 3.0 should be installed.

Reproduction steps

apt install -qqy lsb-release curl \
     && mkdir -p /etc/apt/keyrings \
     && curl http://robotpkg.openrobots.org/packages/debian/robotpkg.asc \
      | tee /etc/apt/keyrings/robotpkg.asc \
     && echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/robotpkg.asc] http://robotpkg.openrobots.org/packages/debian/pub $(lsb_release -cs) robotpkg" \
      | tee /etc/apt/sources.list.d/robotpkg.list \
     && apt update \
     && apt install -qqy robotpkg-py3*-pinocchio

export PATH=/opt/openrobots/bin:$PATH
export PKG_CONFIG_PATH=/opt/openrobots/lib/pkgconfig:$PKG_CONFIG_PATH
export LD_LIBRARY_PATH=/opt/openrobots/lib:$LD_LIBRARY_PATH
export PYTHONPATH=/opt/openrobots/lib/python3.10/site-packages:$PYTHONPATH # Adapt your desired python version here
export CMAKE_PREFIX_PATH=/opt/openrobots:$CMAKE_PREFIX_PATH

In python:

import pinocchio as pin                                                                                                                  
pin.__version__                                                                                                                          
'2.7.0'

System

nim65s commented 1 month ago

This is known, we are working on it. ref https://github.com/stack-of-tasks/pinocchio/discussions/2265

jcarpent commented 1 week ago

@paumarquez You can now use conda to get Pinocchio 3 on Mac, Linux, and Windows systems. Enjoy! I will close this issue. Meanwhile, alternative installation solutions will come with time.