参考链接:

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. windows form窗体应用程序,建一个记事本参考代码,重点是打开,保存,另存为...
  2. 可交互的对抗网络如何增强人类创造力?
  3. Softer-NMS:CMU旷视最新论文提出定位更加精确的目标检测算法
  4. 二张图白话广告RTA技术
  5. 统计各个函数的耗时_Prometheus 常用函数 histogram_quantile 的若干“反直觉”问题...
  6. 浏览器与服务器响应流程-----(转)
  7. 【BZOJ4653】区间,离散化+线段树
  8. ajax json java_ajax_json
  9. CentOS 6.5 + Nginx 1.8.0 + PHP 5.6(with PHP-FPM) 负载均衡源码安装 之 (三)Nginx负载均衡配置...
  10. gwr模型用什么做_Science:几万人的马拉松,起跑为什么不乱?用流体力学模型来解释!...
  11. fortran 学习笔记1-编译环境
  12. 关于财务BI系统-报表分析(全)
  13. centos下ftp服务器搭建
  14. tushare复权数据使用
  15. 【论文笔记】Combining Reinforcement Learning and Rule-based Method to Manipulate Objects in Clutter
  16. 6.MySQL列Cardinality(基数)
  17. 什么软件可以支持视频转换成文字?
  18. 如何使用自己的云服务器做代理服务器
  19. Android 9.0 (P)
  20. RFC 文档(501-1000)

热门文章

  1. 直播答题html,H5实现直播答题可能吗?
  2. python股票策略_用Python编写简单股票策略
  3. 中国机器人最新统计数据发布及分析(附图)
  4. html登录错误有提示,为什么我登录之后的提示老是网页上有错误呢?
  5. 在OpenCV里使用机器学习库sklearn 实现手写数字识别1
  6. java计算机毕业设计ssm学生宿舍管理系统15pjb(附源码、数据库)
  7. Leetcode 345 Reverse Vowels of a String 字符串处理
  8. Excel中 匹配尾部字符并替换
  9. 傅里叶变换及其在opencv中图像去噪的实现
  10. Sipeed麦克风阵列板练习