【机器人学:运动规划】OMPL开源运动规划库的安装和demo
2017-12-25 15:55
288 查看
转载:http://blog.csdn.net/gpeng832/article/details/73736225
开源运动规划库(OMPL)是美国莱斯大学的kavrakilab开发的,包含了当下主流的运动规划器。对于机器人方向的同学来说,无论是做移动机器人还是机械臂,这是必须要学习的工具。
在ubuntu14.04环境下,安装OMPL是比较简单的。
首先进入OMPL的官网http://ompl.kavrakilab.org/
点击Getting Started下的install OMPL,进入下边的页面
点击“Download the OMPL installation script”,会下载一个名为“install-ompl-ubuntu.sh”的文件。
在install-ompl-ubuntu.sh的目录下,执行命令
和
需要注意的是安装OMPL之前需要提前安装g++5.0和CMake 3.4以上,这样在编译的时候就不会报错了。
安装后在安装目录下会出现一个ompl-1.3.1-Source的文件夹。
在/ompl-1.3.1-Source/build/Release/bin下有很多生成的demo可执行文件
在终端中执行
[/code]
这是一个质点在二维平面空间中的规划算例,结果为:
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
[/code]
开源运动规划库(OMPL)是美国莱斯大学的kavrakilab开发的,包含了当下主流的运动规划器。对于机器人方向的同学来说,无论是做移动机器人还是机械臂,这是必须要学习的工具。
在ubuntu14.04环境下,安装OMPL是比较简单的。
首先进入OMPL的官网http://ompl.kavrakilab.org/
点击Getting Started下的install OMPL,进入下边的页面
点击“Download the OMPL installation script”,会下载一个名为“install-ompl-ubuntu.sh”的文件。
在install-ompl-ubuntu.sh的目录下,执行命令
chmod u+x install-ompl-ubuntu.sh
和
./install-ompl-ubuntu.sh
需要注意的是安装OMPL之前需要提前安装g++5.0和CMake 3.4以上,这样在编译的时候就不会报错了。
安装后在安装目录下会出现一个ompl-1.3.1-Source的文件夹。
在/ompl-1.3.1-Source/build/Release/bin下有很多生成的demo可执行文件
在终端中执行
./demo_Point2DPlanning1
[/code]
这是一个质点在二维平面空间中的规划算例,结果为:
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 states1
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
[/code]
<link rel="stylesheet" href="http://csdnimg.cn/release/phoenix/production/markdown_views-d4dade9c33.css"> </div>
相关文章推荐
- 【机器人学:运动规划】OMPL开源运动规划库的安装和demo
- 从安装到demo,商品按照标签相关度排序解决方案之开源全文检索引擎xunsearch
- 【机器人学:运动规划】快速搜索随机树(RRT---Rapidly-exploring Random Trees)入门及在Matlab中演示
- ROS 运动规划 (Motion Planning): MoveIt! 与 OMPL
- 运动规划 (Motion Planning): MoveIt! 与 OMPL
- 运动规划 (Motion Planning): MoveIt! 与 OMPL
- c#实例化继承类,必须对被继承类的程序集做引用 .net core Redis分布式缓存客户端实现逻辑分析及示例demo 数据库笔记之索引和事务 centos 7下安装python 3.6笔记 你大波哥~ C#开源框架(转载) JSON C# Class Generator ---由json字符串生成C#实体类的工具
- ROS 运动规划 (Motion Planning): MoveIt! 与 OMPL
- OpenTLD(Tracking-Learning-Detection)运动跟踪与检测开源软件编译与安装
- 运动规划 (Motion Planning): MoveIt! 与 OMPL
- ROS 运动规划 (Motion Planning): MoveIt! 与 OMPL
- 【机器人学】机器人开源项目KDL源码学习:(3)机器人操作空间路径规划(Path Planning)和轨迹规划(Trajectory Planning)示例
- 【机器人学】机器人开源项目KDL源码学习:(6)笛卡尔空间轨迹规划、圆弧过渡、姿态插值、梯形速度、pathlength
- Open-Falcon第四步安装Graph(小米开源互联网企业级监控系统)
- TortoiseSVN-1.6.5.16974(开源文件版本管理软件) 安装图解教程及下载文件
- 开源Bug管理系统Redmine安装和使用心得
- DSM SCCM 2012 部署 规划 配置 (四) 修复安装前 USMT错误信息
- 开源服务专题之------sshd服务安装管理及配置文件理解和安全调优
- RKE快速上手指南:开源的轻量级K8S安装程序
- NopCommerce 开源商城下载配置安装