IT数码 购物 网址 头条 软件 日历 阅读 图书馆
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
图片批量下载器
↓批量下载图片,美女图库↓
图片自动播放器
↓图片自动播放器↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁
 
   -> 人工智能 -> grid_map(二):ubuntu16.04安装测试grid_map 1.6.0-1.6.2 -> 正文阅读

[人工智能]grid_map(二):ubuntu16.04安装测试grid_map 1.6.0-1.6.2

一、编译安装

??????? 系统ubuntu16.04、ros-kinetic、gird_map 1.6.0-1.6.2

1.1 官方github

?????? GitHub - ANYbotics/grid_map: Universal grid map library for mobile robotic mappingUniversal grid map library for mobile robotic mapping - GitHub - ANYbotics/grid_map: Universal grid map library for mobile robotic mappinghttps://github.com/ANYbotics/grid_map

???????? ros-kinetic适用grid_map版本:1.6.0--1.6.2

https://github.com/ANYbotics/grid_map/issues/279https://github.com/ANYbotics/grid_map/issues/279

1.2 安装编译

sudo apt-get install ros-kinetic-grid-map

##安装依赖
sudo apt-get install libeigen3-dev

##创建工作空间编译
mkdir -p xxx/grid_map_ws/src
cd grid_map_ws/src
git clone -b 1.6.0 https://github.com/anybotics/grid_map.git

cd ..
catkin_make
#或以Release模式编译
#catkin_make -DCMAKE_BUILD_TYPE=Release 

??????? 使用1.6.0版本的grid_map编译,不会报错。

??????? 下面是按照官方github的readme.md进行编译的一些报错

1.3 编译踩坑

##git clone默认版本,会报错
git clone https://github.com/anybotics/grid_map.git

1.3.1 编译报错----fatal error: filters/filter_base.hpp: 没有那个文件或目录

??????? 相应修改:

grid_map_ws/src/grid_map/grid_map_cv/include/grid_map_cv/InpaintFilter.hpp 的第十行

#include <filters/filter_base.hpp> 为 #include <filters/filter_base.h>

??????? 此外,结合上次经验,还需要修改:

文件夹grid_map_ws/src/grid_map/grid_map_filters/include/grid_map_filters下几乎所有文件

#include <filters/filter_base.hpp>  或  #include <filters/filter_base.h>

文件grid_map_ws/src/grid_map/grid_map_demos/include/grid_map_demos/FiltersDemo.hpp

#include <filters/filter_chain.hpp>  为#include <filters/filter_chain.h>
文件grid_map_ws/src/grid_map/grid_map_demos/src/normal_filter_comparison_node.cpp

#include <filters/filter_chain.hpp> 为 #include <filters/filter_chain.h>

1.3.2 编译报错----error: ‘class rviz::DisplayContext’ has no member named ‘getTF2BufferPtr’

https://github.com/ANYbotics/grid_map/issues/279https://github.com/ANYbotics/grid_map/issues/279??????? 参考上面的链接,说的是grid_map github仓的默认版本为ubuntu18.04的melodic,上面直接git clone 的版本不适用ubuntu16.04的ros-kinetic。参考链接,将原来git clone的删掉,git clone 1.6.0-1.6.2版本的.

git clone -b 1.6.0 https://github.com/anybotics/grid_map.git

1.4 安装测试

??????? 适用catkin_make编译的(我用的)

source devel/setup.bash
catkin_make run_tests_grid_map_core run_tests_grid_map_ros

??????? 测试成功:

???????? 适用catkin tools的

catkin build grid_map --no-deps --verbose --catkin-make-args run_tests

二、应用demo

##进入工作空间,并source一下
cd grid_map_ws/
source devel/setup.bash

2.1 simple demo

  roslaunch grid_map_demos simple_demo.launch

?2.2 tutorial demo

  roslaunch grid_map_demos tutorial_demo.launch

2.3 iterators_demo

  roslaunch grid_map_demos iterators_demo.launch

?2.4 image to gridmap demo

  roslaunch grid_map_demos image_to_gridmap_demo.launch

?2.5 opencv demo

  roslaunch grid_map_demos opencv_demo.launch

?

??????? 视频链接:

  人工智能 最新文章
2022吴恩达机器学习课程——第二课(神经网
第十五章 规则学习
FixMatch: Simplifying Semi-Supervised Le
数据挖掘Java——Kmeans算法的实现
大脑皮层的分割方法
【翻译】GPT-3是如何工作的
论文笔记:TEACHTEXT: CrossModal Generaliz
python从零学(六)
详解Python 3.x 导入(import)
【答读者问27】backtrader不支持最新版本的
上一篇文章      下一篇文章      查看所有文章
加:2022-02-05 21:44:41  更:2022-02-05 21:47:40 
 
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁

360图书馆 购物 三丰科技 阅读网 日历 万年历 2024年5日历 -2024/5/19 2:49:47-

图片自动播放器
↓图片自动播放器↓
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
图片批量下载器
↓批量下载图片,美女图库↓
  网站联系: qq:121756557 email:121756557@qq.com  IT数码