Mbot ros编译环境安装

网友投稿 334 2022-08-23

Mbot ros编译环境安装

文章目录

​​前言​​​​一、安装依赖​​​​二、源码安装ROS导航包(navigation)​​

前言

ROS Melodic Ubuntu 18.04

ROS、MAVROS及PX4环境安装参考: 这里默认已经安装好ROS、MAVROS及PX4环境

一、安装依赖

sudo apt install ros-melodic-libuvcsudo apt-get install ros-melodic-navigation* sudo apt install ros-melodic-camera-info-managersudo apt install ros-melodic-tf2-geometry-msgssudo apt install ros-melodic-laser-geometrysudo apt install ros-melodic-tf2-sensor-msgssudo apt install ros-melodic-mavrossudo apt install ros-melodic-costmap-convertersudo apt install ros-melodic-interactive-markerssudo apt install ros-melodic-mbf-costmap-coresudo apt install ros-melodic-mbf-msgssudo apt-get install ros-melodic-librealsense2sudo apt-get install ros-melodic-serialsudo apt-get install qt4-defaultsudo apt-get install ros-melodic-bflsudo apt-get install libsuitesparse-devsudo apt-get install ros-melodic-libg2o

如果编译时报错:

error: ‘find_if’ was not declared in this scope texture_frame_itr = find_if(frameset.begin(), frameset.end(), [&texture_source_id, &available_formats] (rs2::frame f)

找到报错的源码位置,在find_if前面加上std::即可。

二、源码安装ROS导航包(navigation)

安装依赖:

sudo apt-get install ros-melodic-navigation*

sudo apt-get remove ros-melodic-navigation ros-melodic-navigation-experimental

rosdep install teb_local_planner

下载teb_local_planner ROS软件包 下载链接​​​解压后放到​​~/catkin_ws/src​​目录下(或者放到自己建立的工作空间的src目录下),然后

cd ~/catkin_ws/

catkin_make

编译好后可以

roscd move_base

测试一下,正常的话路径如下:

~/catkin_ws/src/navigation-melodic-devel/move_base$

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:老乡鸡要上市:营销“咯咯哒”,赚钱不太行!(老乡鸡营销策划)
下一篇:运动品牌营销新打法:打造线上健身社群,专注私域流量!
相关文章

 发表评论

暂时没有评论,来抢沙发吧~