【机器人学:运动规划】OMPL开源运动规划库的安装和demo

2023-10-21 20:19

本文主要是介绍【机器人学:运动规划】OMPL开源运动规划库的安装和demo,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

转载:http://blog.csdn.net/gpeng832/article/details/73736225

开源运动规划库(OMPL)是美国莱斯大学的kavrakilab开发的,包含了当下主流的运动规划器。对于机器人方向的同学来说,无论是做移动机器人还是机械臂,这是必须要学习的工具。

在ubuntu14.04环境下,安装OMPL是比较简单的。

  1. 首先进入OMPL的官网http://ompl.kavrakilab.org/
    这里写图片描述
  2. 点击Getting Started下的install OMPL,进入下边的页面
    这里写图片描述
    点击“Download the OMPL installation script”,会下载一个名为“install-ompl-ubuntu.sh”的文件。
  3. 在install-ompl-ubuntu.sh的目录下,执行命令
    chmod u+x install-ompl-ubuntu.sh
    ./install-ompl-ubuntu.sh
    需要注意的是安装OMPL之前需要提前安装g++5.0和CMake 3.4以上,这样在编译的时候就不会报错了。
  4. 安装后在安装目录下会出现一个ompl-1.3.1-Source的文件夹。
    这里写图片描述
  5. 在/ompl-1.3.1-Source/build/Release/bin下有很多生成的demo可执行文件
    这里写图片描述
  6. 在终端中执行
./demo_Point2DPlanning
  • 1

这是一个质点在二维平面空间中的规划算例,结果为:

gpeng@Robotic-IdeaPad-Y470:~/ompl/ompl-1.3.1-Source/build/Release/bin$ ./demo_Point2DPlanning 
OMPL version: 1.3.1
Info:    No planner specified. Using default.
Info:    LBKPIECE1: Attempting to use default projection.
Debug:   LBKPIECE1: Planner range detected to be 486.395107
Info:    LBKPIECE1: Starting planning with 1 states already in datastructure
Info:    LBKPIECE1: Created 1043 (615 start + 428 goal) states in 277 cells (184 start (127 on boundary) + 93 goal (65 on boundary))
Info:    Solution found in 0.055480 seconds
Info:    LBKPIECE1: Starting planning with 1 states already in datastructure
Info:    LBKPIECE1: Created 520 (401 start + 119 goal) states in 153 cells (130 start (92 on boundary) + 23 goal (20 on boundary))
Info:    Solution found in 0.033183 seconds
Info:    LBKPIECE1: Starting planning with 1 states already in datastructure
Info:    LBKPIECE1: Created 594 (461 start + 133 goal) states in 160 cells (127 start (86 on boundary) + 33 goal (27 on boundary))
Info:    Solution found in 0.039627 seconds
Info:    LBKPIECE1: Starting planning with 1 states already in datastructure
Info:    LBKPIECE1: Created 609 (470 start + 139 goal) states in 215 cells (170 start (110 on boundary) + 45 goal (40 on boundary))
Info:    Solution found in 0.023786 seconds
Info:    LBKPIECE1: Starting planning with 1 states already in datastructure
Info:    LBKPIECE1: Created 608 (509 start + 99 goal) states in 232 cells (210 start (163 on boundary) + 22 goal (19 on boundary))
Info:    Solution found in 0.024900 seconds
Info:    LBKPIECE1: Starting planning with 1 states already in datastructure
Info:    LBKPIECE1: Created 269 (163 start + 106 goal) states in 121 cells (86 start (81 on boundary) + 35 goal (31 on boundary))
Info:    Solution found in 0.008904 seconds
Info:    LBKPIECE1: Starting planning with 1 states already in datastructure
Info:    LBKPIECE1: Created 333 (199 start + 134 goal) states in 202 cells (108 start (98 on boundary) + 94 goal (86 on boundary))
Info:    Solution found in 0.006044 seconds
Info:    LBKPIECE1: Starting planning with 1 states already in datastructure
Info:    LBKPIECE1: Created 250 (137 start + 113 goal) states in 135 cells (85 start (78 on boundary) + 50 goal (43 on boundary))
Info:    Solution found in 0.011098 seconds
Info:    LBKPIECE1: Starting planning with 1 states already in datastructure
Info:    LBKPIECE1: Created 521 (345 start + 176 goal) states in 202 cells (187 start (160 on boundary) + 15 goal (13 on boundary))
Info:    Solution found in 0.027484 seconds
Info:    LBKPIECE1: Starting planning with 1 states already in datastructure
Info:    LBKPIECE1: Created 376 (281 start + 95 goal) states in 143 cells (108 start (92 on boundary) + 35 goal (31 on boundary))
Info:    Solution found in 0.021535 seconds
Info:    Found 10 solutions
Info:    SimpleSetup: Path simplification took 0.001149 seconds and changed from 21 to 49 states
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38

这里写图片描述

            <link rel="stylesheet" href="http://csdnimg.cn/release/phoenix/production/markdown_views-d4dade9c33.css"></div>

这篇关于【机器人学:运动规划】OMPL开源运动规划库的安装和demo的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/256718

相关文章

mac安装nvm(node.js)多版本管理实践步骤

《mac安装nvm(node.js)多版本管理实践步骤》:本文主要介绍mac安装nvm(node.js)多版本管理的相关资料,NVM是一个用于管理多个Node.js版本的命令行工具,它允许开发者在... 目录NVM功能简介MAC安装实践一、下载nvm二、安装nvm三、安装node.js总结NVM功能简介N

python安装whl包并解决依赖关系的实现

《python安装whl包并解决依赖关系的实现》本文主要介绍了python安装whl包并解决依赖关系的实现,文中通过图文示例介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面... 目录一、什么是whl文件?二、我们为什么需要使用whl文件来安装python库?三、我们应该去哪儿下

MySQL安装时initializing database失败的问题解决

《MySQL安装时initializingdatabase失败的问题解决》本文主要介绍了MySQL安装时initializingdatabase失败的问题解决,文中通过图文介绍的非常详细,对大家的学... 目录问题页面:解决方法:问题页面:解决方法:1.勾选红框中的选项:2.将下图红框中全部改为英

MySQL9.0默认路径安装下重置root密码

《MySQL9.0默认路径安装下重置root密码》本文主要介绍了MySQL9.0默认路径安装下重置root密码,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们... 目录问题描述环境描述解决方法正常模式下修改密码报错原因问题描述mysqlChina编程采用默认安装路径,

Python使用国内镜像加速pip安装的方法讲解

《Python使用国内镜像加速pip安装的方法讲解》在Python开发中,pip是一个非常重要的工具,用于安装和管理Python的第三方库,然而,在国内使用pip安装依赖时,往往会因为网络问题而导致速... 目录一、pip 工具简介1. 什么是 pip?2. 什么是 -i 参数?二、国内镜像源的选择三、如何

Python安装时常见报错以及解决方案

《Python安装时常见报错以及解决方案》:本文主要介绍在安装Python、配置环境变量、使用pip以及运行Python脚本时常见的错误及其解决方案,文中介绍的非常详细,需要的朋友可以参考下... 目录一、安装 python 时常见报错及解决方案(一)安装包下载失败(二)权限不足二、配置环境变量时常见报错及

MySQL8.2.0安装教程分享

《MySQL8.2.0安装教程分享》这篇文章详细介绍了如何在Windows系统上安装MySQL数据库软件,包括下载、安装、配置和设置环境变量的步骤... 目录mysql的安装图文1.python访问网址2javascript.点击3.进入Downloads向下滑动4.选择Community Server5.

CentOS系统Maven安装教程分享

《CentOS系统Maven安装教程分享》本文介绍了如何在CentOS系统中安装Maven,并提供了一个简单的实际应用案例,安装Maven需要先安装Java和设置环境变量,Maven可以自动管理项目的... 目录准备工作下载并安装Maven常见问题及解决方法实际应用案例总结Maven是一个流行的项目管理工具

MySql9.1.0安装详细教程(最新推荐)

《MySql9.1.0安装详细教程(最新推荐)》MySQL是一个流行的关系型数据库管理系统,支持多线程和多种数据库连接途径,能够处理上千万条记录的大型数据库,本文介绍MySql9.1.0安装详细教程,... 目录mysql介绍:一、下载 Mysql 安装文件二、Mysql 安装教程三、环境配置1.右击此电脑

在 Windows 上安装 DeepSeek 的完整指南(最新推荐)

《在Windows上安装DeepSeek的完整指南(最新推荐)》在Windows上安装DeepSeek的完整指南,包括下载和安装Ollama、下载DeepSeekRXNUMX模型、运行Deep... 目录在www.chinasem.cn Windows 上安装 DeepSeek 的完整指南步骤 1:下载并安装