【Pinocchio】ubuntu18.04安装pinocchio

参考官方教程,过程如下:

  1. Ensure you have some required installation dependencies

     sudo apt install -qqy lsb-release curl
    
  2. Register the authentication certificate of robotpkg:

     sudo mkdir -p /etc/apt/keyrings
     curl http://robotpkg.openrobots.org/packages/debian/robotpkg.asc \
         | sudo tee /etc/apt/keyrings/robotpkg.asc
    
  3. Add robotpkg as source repository to apt:

     echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/robotpkg.asc] http://robotpkg.openrobots.org/packages/debian/pub $(lsb_release -cs) robotpkg" \
         | sudo tee /etc/apt/sources.list.d/robotpkg.list
    
  4. You need to run at least once apt update to fetch the package descriptions:

     sudo apt update
    

安装 Pinocchio

  1. The installation of Pinocchio and its dependencies is made through the line:(此处需要安装python2.7版本

     sudo apt install -qqy robotpkg-py2*-pinocchio
    

注意:这个过程中可能会出现一些库的冲突,根据提示sudo apt install安装对应的库版本即可。

配置环境变量

把以下内容加入到 $HOME/.bashrc

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/python2.7/site-packages:$PYTHONPATH # Adapt your desired python version here
export CMAKE_PREFIX_PATH=/opt/openrobots:$CMAKE_PREFIX_PATH

All the packages will be installed in the /opt/openrobots directory.

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值