参考链接:

https://hungpham2511.github.io/toppra/installation.html#installation-instructions-for-c-api

https://stack-of-tasks.github.io/pinocchio/download.html

https://github.com/stack-of-tasks/eigenpy/tree/v2.5.0

https://zhuanlan.zhihu.com/p/104717000

https://zhuanlan.zhihu.com/p/142116903

一下载develop版本,内含cpp版

toppra-develop

二.安装python版

pip install .

You can now try a basic example:

python examples/kinematics.py

Advanced: Other solver backends

The default installation comes with an implementation of the seidel LP solver, specialized for parametrization problem. Other backends are also available.

To install qpoases run following command after installing pyinvoke

invoke install-solvers

安装openrae 和Pymanoid

Advanced: OpenRAVE and Pymanoid

In order to run some of the examples, it is necessary to install openRAVE. A good instruction for installing this library on Ubuntu 16.04 can be found here.

Note

The humanoid and redundantly-actuated torque examples are not yet included in the current library. See tag v0.1 if you want to run these examples.

Multi-contact and torque bounds. To use these functionality, the following libraries are needed:

  1. [openRAVE](https://github.com/rdiankov/openrave)

  2. [pymanoid](https://github.com/stephane-caron/pymanoid)

openRAVE can be tricky to install, a good instruction for installing openRAVE on Ubuntu 16.04 can be found [here](https://scaron.info/teaching/installing-openrave-on-ubuntu-16.04.html).

To install pymanoid locally, do the following ` sh mkdir git && cd git git clone <pymanoid-git-url> git checkout 54299cf export PYTHONPATH=$PYTHONPATH:$HOME/git/pymanoid `

Advanced: OpenRAVE and Pymanoid

In order to run some of the examples, it is necessary to install openRAVE. A good instruction for installing this library on Ubuntu 16.04 can be found here.

Note

The humanoid and redundantly-actuated torque examples are not yet included in the current library. See tag v0.1 if you want to run these examples.

Multi-contact and torque bounds. To use these functionality, the following libraries are needed:

  1. [openRAVE](https://github.com/rdiankov/openrave)

  2. [pymanoid](https://github.com/stephane-caron/pymanoid)

openRAVE can be tricky to install, a good instruction for installing openRAVE on Ubuntu 16.04 can be found [here](https://scaron.info/teaching/installing-openrave-on-ubuntu-16.04.html).

To install pymanoid locally, do the following ` sh mkdir git && cd git git clone <pymanoid-git-url> git checkout 54299cf export PYTHONPATH=$PYTHONPATH:$HOME/git/pymanoid `

安装pymanoid

sudo apt-get install cython libglpk-dev python python-dev python-pip python-scipy python-simplejson
```
- Install the LP solver: ``CVXOPT_BUILD_GLPK=1 pip install cvxopt --user``
- Install the QP solver: ``pip install quadprog --user``
- For polyhedral computations (optional): ``pip install pycddlib --user``

Finally, clone this repository and run the setup script:
```
git clone --recursive https://github.com/stephane-caron/pymanoid.git
cd pymanoid
python setup.py build
python setup.py install --user

三安装cpp版

预先安装

1.Install Pinocchio 2.5.0

Add robotpkg apt repository
If you have never added robotpkg as a softwares repository, please follow first the instructions from 1 to 4. Otherwise, go directly to instruction 5. Those instructions are similar to the installation procedures presented in http://robotpkg.openrobots.org/debian.html.

Ensure you have some required installation dependencies

sudo apt install -qqy lsb-release gnupg2 curl
Add robotpkg as source repository to apt:

echo "deb [arch=amd64] http://robotpkg.openrobots.org/packages/debian/pub $(lsb_release -cs) robotpkg" | sudo tee /etc/apt/sources.list.d/robotpkg.list
Register the authentication certificate of robotpkg:

curl http://robotpkg.openrobots.org/packages/debian/robotpkg.key | sudo apt-key add -
You need to run at least once apt update to fetch the package descriptions:

sudo apt-get update
Install Pinocchio
The installation of Pinocchio and its dependencies is made through the line:

sudo apt install -qqy robotpkg-py27-pinocchio  # Adapt your desired python version here
It will install all the systems and additional required dependences.

Configure environment variables
All the packages will be installed in the /opt/openrobots directory. To make use of installed libraries and programs, you must need to configure your PATH, PKG_CONFIG_PATH, PYTHONPATH and other similar environment variables to point inside this directory. For instance:

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
You may directly add those lines to your $HOME/.bashrc for a persistent configuration.

2. install eigenpy 2.5.0

Ubuntu
You can easily install EigenPy from binairies.

Add robotpkg apt repository
Add robotpkg as source repository to apt:
sudo sh -c "echo 'deb [arch=amd64] http://robotpkg.openrobots.org/packages/debian/pub $(lsb_release -cs) robotpkg' >> /etc/apt/sources.list.d/robotpkg.list"
Register the authentication certificate of robotpkg:
curl http://robotpkg.openrobots.org/packages/debian/robotpkg.key | sudo apt-key add -
You need to run at least once apt update to fetch the package descriptions:
sudo apt-get update
Install EigenPy
The installation of EigenPy and its dependencies is made through the line:
For Python 2.7

sudo apt install robotpkg-py27-eigenpy

3. install qpoases

- GLPK: `sudo apt install libglpk-dev`
- qpOASES: `sudo apt install robotpkg-qpoases` (follow http://robotpkg.openrobots.org/debian.html for robotpkg)
- pinocchio: `sudo apt install robotpkg-pinocchio` (follow http://robotpkg.openrobots.org/debian.html for robotpkg)

4.pip install pybind11==2.5
$ git clone -b v2.5 git@github.com:pybind/pybind11.git
$ cd pybind11
$ mkdir build
$ cd build
$ cmake ..
$ sudo make install

生成C++版本的pybind11

然后还需要python版本的pybind11,就可以python setup.py install 源码安装 或者pip install pybingd11==2.5

安装pybind11遇到的坑

如果一直报错则需要

dell1804@dell1804-G3-3590:~/pybind11/build$ unset PYTHONPATH

然后重新 cmake .. 即可

make -j4

sudo make install

然后

进入toppra源码cpp文件夹

mkdir build && cd build && cmake -DBUILD_WITH_PINOCCHIO=ON -DBUILD_WITH_qpOASES=ON ..

即可,如果

则说明没有安装生成C++版本的pybind11,需要下载pybind11的源码编译安装

然后重新编译toppra

运行测试程序

注意如果安装pybind11遇到如下则:

最后附上我的~/.bashrc供大家参考

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(openrave-config --python-dir)/openravepy/_openravepy_
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/python2.7/dist-packages/openravepy/_openravepy_
export PYTHONPATH=$PYTHONPATH:$(openrave-config --python-dir)
export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/dist-packages/openravepy
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

TOPPRA 时间优化算法的轨迹规划安装记录相关推荐

  1. 基于人工势场法和果蝇优化算法的路径规划(Matlab代码实现)

    目录 1 概述 2 运行结果 2.1 算例1 2.2 算例2   3 Matlab代码实现  4 参考文献 1 概述 近年来,智能机器人逐渐应用于医疗服务﹑航空等众多领域.路径规划作为机器人实现智能自 ...

  2. 【路径规划】基于人工势场法、蝙蝠优化算法、人工鱼群算法、果蝇优化算法的路径规划(Matlab代码实现)

  3. 基于蚂蚁-遗传优化算法的路径规划问题(Matlab代码实现)

  4. 时间最优轨迹规划(3-5-3次多项式)

    轨迹规划是指机械臂在给定起始点和终止点之间运动,其中要保持时间和能量的双重最优,就需要对路径之间的插值点进行规划,目前比较常见的就是三次多项式.五次多项式以及B样条插值等进行轨迹规划.轨迹优化是指对路 ...

  5. 03论文阅读与分享————2020年中国知网六自由度机器人轨迹规划相关论文统计

    一.2020年知网论文统计 1.刘劲松. 基于时间最优的六轴关节机械手轨迹规划研究[D].湖北工业大学,2020. 创新点:遗传算法+粒子群处理时间最优 基本方法:样条插值/笛卡尔空间规划/matla ...

  6. 【Matlab代码】基于遗传算法和蚂蚁优化算法的路径优化问题

    目录 1 概述 2 Matlab代码 3 运行结果 1 概述 在1959年,Dantzing 和 Ramser在经过实验和思考后,首次提出配送车辆路径优化问题.在物流运输中配送是重要的环节,准确选择配 ...

  7. 最优控制和轨迹规划学习笔记 包含多个实际案例 主要思路是使用优化算法来找到车辆的最佳路径

    最优控制和轨迹规划学习笔记 包含多个实际案例 倒立摆上翻控制 满足车辆运动学约束的路径规划 离散点参考线优化 lattice横向距离规划 这段代码包含了三个程序,我们将分别对它们进行详细的分析. 最速 ...

  8. 【路径规划】基于头脑风暴优化算法求解带时间窗和同时取送货的车辆路径问题附matlab代码

    1 内容介绍 本文主要研究广州番禺配送中心的车辆路径规划问题,首先针对之前车辆运行中的先送货后取货模式,产生车辆运行路线的迂回,以及车辆在回程中的空载,路径规划不合理,送货时间长的问题,采用集成的观点 ...

  9. 【TWVRP】基于matlab粒子群算法求解带时间窗的车辆路径规划问题(总成本最低)【含Matlab源码 2590期】

    ⛄一.VRP简介 1 VRP基本原理 车辆路径规划问题(Vehicle Routing Problem,VRP)是运筹学里重要的研究问题之一.VRP关注有一个供货商与K个销售点的路径规划的情况,可以简 ...

最新文章

  1. Python运算符还有能这样用?
  2. 写给准备参加秋招的童鞋的一点建议(1)
  3. java 检查bytebuf长度_Java学习笔记16-Netty缓冲区ByteBuf详解
  4. 39所强基计划试点高校已全部公布招生简章
  5. jQuery省市联动
  6. linux vi 中s 替换方法
  7. ❤️《大前端—Webpack》
  8. Android Google Map –两点之间的绘图路线
  9. linux终端字体安装,在Gnome-terminal下安装以及使用Monaco字体
  10. scratch编程记忆力小游戏
  11. 东沃电子:瞬态电压抑制二极管选型指南
  12. matlab求解常微分方程(组)---dsolve、ode系列函数详解(含例程)
  13. 梦幻西游手游服务器维护公告,《梦幻西游手游》10月5日维护公告 部分区服合并...
  14. rc时间常数定义_时间常数RC的计算方法
  15. 在WordPress中使用旋转文字创建“会话”横幅:第2部分
  16. 更换APP启动图标和名称
  17. vue基础,加少量的webpack,以及脚手架搭建vue项目
  18. 马云又在“吹牛”了:让世界都没有难做的生意
  19. 【白兔兔】TiKZ画浮动汇率制度下的财政政策图
  20. 你需要知道的Linux安全

热门文章

  1. 三菱不同型号plc之间能否实现无线通讯?
  2. 少一点张扬,多一点谦虚;少一点英雄主义,多一点实事求是——读2008第11期《IT经理世界》
  3. B站兄弟连Linux视频笔记
  4. lower_bound 与 upper_bound
  5. c语言大小箱子,基于C语言箱子游戏.doc
  6. c语言有三级指针,C语言 三级指针的应用
  7. 局域网屏幕共享_局域网电脑屏幕共享
  8. Nagios配合飞信发短信
  9. k8s资源之service
  10. ALtera DE2开发板学习01