PyKDL 运动学动力学库-安装(源码编译方式)

视频讲解:PyKDL 运动学动力学库-安装(源码编译方式)_哔哩哔哩_bilibili

https://github.com/orocos/orocos_kinematics_dynamics

pip3 install PyKDL的方式会失败

dar@dar:~/MuJoCoBin/mujoco-learning$ pip install PyKDL

Defaulting to user installation because normal site-packages is not writeable

Collecting PyKDL

Using cached PyKDL-1.4.0.tar.gz (1.5 kB)

Preparing metadata (setup.py) ... error

error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.

│ exit code: 1

╰─> [7 lines of output]

running egg_info

creating /tmp/pip-pip-egg-info-v_i1ib0_/PyKDL.egg-info

writing /tmp/pip-pip-egg-info-v_i1ib0_/PyKDL.egg-info/PKG-INFO

writing dependency_links to /tmp/pip-pip-egg-info-v_i1ib0_/PyKDL.egg-info/dependency_links.txt

writing top-level names to /tmp/pip-pip-egg-info-v_i1ib0_/PyKDL.egg-info/top_level.txt

writing manifest file '/tmp/pip-pip-egg-info-v_i1ib0_/PyKDL.egg-info/SOURCES.txt'

error: package directory 'PyKDL' does not exist

[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

error: metadata-generation-failed

× Encountered error while generating package metadata.

╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.

hint: See above for details.

使用源码编译的形式

git clone https://github.com/orocos/orocos_kinematics_dynamics.git

参考
https://github.com/orocos/orocos_kinematics_dynamics/blob/master/orocos_kdl/INSTALL.md

sudo apt-get install libeigen3-dev libcppunit-dev
cd orocos_kdl
mkdir build 
cd build 
cmake ..
make -j32
sudo make install

安装

cd python_orocos_kdl 
mkdir build 
cd build 
cmake .. 
make -j32

添加ldd路径到bashrc

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib 
sudo ldconfig 
python3 tests/PyKDLtest.py

相关文章

php源码安装(php源码安装扩展)

php介绍PHP即“超文本预处理器”。PHP原始为Personal Home Page的缩写,已经正式更名为 "PHP: Hypertext Preprocessor"。php的应用服...

【Python深度学习系列】Win10下CUDA+cuDNN+Tensorflow安装与配置

这是我的第292篇原创文章。一、前置知识安装GPU版本的pytorch和tensorflow之前需要理清楚这几个关系:显卡(电脑进行数模信号转换的设备,有的电脑可能是双显卡,一个是inter的集成显卡...

从小白到专家 PG技术大讲堂 - Part 2:PG源代码安装

PostgreSQL从小白到专家,是从入门逐渐能力提升的一个系列教程,内容包括对PG基础的认知、包括安装使用、包括角色权限、包括维护管理、、等内容,希望对热爱PG、学习PG的同学们有帮助,欢迎持续关注...

源码安装包管理(源码安装是什么意思)

1. 源码包基本概述2. 源码包的好处3. 源码包的获取4. 源码包分类5. 源码包的安装5.1 configure脚本的功能5.2 编译安装注意事项5.3 源码包编译实例1. 源码包基本概述在lin...

Python RPC 之 Thrift(Python rpc)

thrift-0.12.0 python3.4.3Thrift 简介:Thrift 是一款高性能、开源的 RPC 框架,产自 Facebook 后贡献给了 Apache,Thrift 囊括了整个 RP...