工程问题--ubuntu 14.04/16.04源码安装catvehicle

ubuntu 14.04/16.04源码安装catvehicle



系统环境:

1. Ubuntu 14.04 + ROS Indigo 或者 Ubuntu 16.04 + ROS kinetic(主要)

2. Gazebo模型已经下载完成。

未下载的可以参考:https://blog.csdn.net/qq_40213457/article/details/81021562 中的方法2。



安装步骤:

1. 建立工作空间:

1 cd ~
2 mkdir -p catvehicle_ws/src
3 cd catvehicle_ws
4 catkin_make
5 echo "source ~/catvehicle_ws/devel/setup.bash" > ~/.bashrc
6 source ~/.bashrc

2. 下载功能包编译:

1 cd ~/catvehicle_ws/src
2 git clone https://github.com/sprinkjm/catvehicle.git
3 git clone https://github.com/sprinkjm/obstaclestopper.git
4 cd ..
5 catkin_make

3. catkin_make过程中终端报错及其解决方法

1)找不到controller_managerConfig.cmake

 1 CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package):
 2   Could not find a package configuration file provided by
 3   "controller_manager" with any of the following names:
 4
 5     controller_managerConfig.cmake
 6     controller_manager-config.cmake
 7
 8   Add the installation prefix of "controller_manager" to CMAKE_PREFIX_PATH or
 9   set "controller_manager_DIR" to a directory containing one of the above
10   files.  If "controller_manager" provides a separate development package or
11   SDK, be sure it has been installed.
12 Call Stack (most recent call first):
13   catvehicle/CMakeLists.txt:7 (find_package)
14
15
16 -- Could not find the required component ‘controller_manager‘. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
17 CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
18   Could not find a package configuration file provided by
19   "controller_manager" with any of the following names:
20
21     controller_managerConfig.cmake
22     controller_manager-config.cmake
23
24   Add the installation prefix of "controller_manager" to CMAKE_PREFIX_PATH or
25   set "controller_manager_DIR" to a directory containing one of the above
26   files.  If "controller_manager" provides a separate development package or
27   SDK, be sure it has been installed.
28 Call Stack (most recent call first):
29   catvehicle/CMakeLists.txt:7 (find_package)
30
31
32 -- Configuring incomplete, errors occurred!
33 See also "/home/gian/catvehicle_ws/build/CMakeFiles/CMakeOutput.log".
34 See also "/home/gian/catvehicle_ws/build/CMakeFiles/CMakeError.log".

解决方法:

1 sudo apt-get install ros-kinetic-ros-control ros-kinetic-ros-controllers
2 (14.04版本输入以下命令行:
3 sudo apt-get install ros-indigo-ros-control ros-indigo-ros-controllers)

再次catkin_make

2)找不到gazebo_ros_controlConfig.cmake

 1 CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package):
 2   Could not find a package configuration file provided by
 3   "gazebo_ros_control" with any of the following names:
 4
 5     gazebo_ros_controlConfig.cmake
 6     gazebo_ros_control-config.cmake
 7
 8   Add the installation prefix of "gazebo_ros_control" to CMAKE_PREFIX_PATH or
 9   set "gazebo_ros_control_DIR" to a directory containing one of the above
10   files.  If "gazebo_ros_control" provides a separate development package or
11   SDK, be sure it has been installed.
12 Call Stack (most recent call first):
13   catvehicle/CMakeLists.txt:7 (find_package)
14
15
16 -- Could not find the required component ‘gazebo_ros_control‘. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
17 CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
18   Could not find a package configuration file provided by
19   "gazebo_ros_control" with any of the following names:
20
21     gazebo_ros_controlConfig.cmake
22     gazebo_ros_control-config.cmake
23
24   Add the installation prefix of "gazebo_ros_control" to CMAKE_PREFIX_PATH or
25   set "gazebo_ros_control_DIR" to a directory containing one of the above
26   files.  If "gazebo_ros_control" provides a separate development package or
27   SDK, be sure it has been installed.
28 Call Stack (most recent call first):
29   catvehicle/CMakeLists.txt:7 (find_package)
30
31
32 -- Configuring incomplete, errors occurred!
33 See also "/home/gian/catvehicle_ws/build/CMakeFiles/CMakeOutput.log".
34 See also "/home/gian/catvehicle_ws/build/CMakeFiles/CMakeError.log".
35 Makefile:318: recipe for target ‘cmake_check_build_system‘ failed
36 make: *** [cmake_check_build_system] Error 1
37 Invoking "make cmake_check_build_system" failed

解决方法:

1 sudo apt-get install ros-kinetic-gazebo-ros-control
2 (14.04版本输入以下命令行:
3 sudo apt-get install ros-indigo-gazebo-ros-control)

再次catkin_make

3)找不到sicktoolboxConfig.cmake

 1 CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package):
 2   Could not find a package configuration file provided by "sicktoolbox" with
 3   any of the following names:
 4
 5     sicktoolboxConfig.cmake
 6     sicktoolbox-config.cmake
 7
 8   Add the installation prefix of "sicktoolbox" to CMAKE_PREFIX_PATH or set
 9   "sicktoolbox_DIR" to a directory containing one of the above files.  If
10   "sicktoolbox" provides a separate development package or SDK, be sure it
11   has been installed.
12 Call Stack (most recent call first):
13   catvehicle/CMakeLists.txt:7 (find_package)
14
15
16 -- Could not find the required component ‘sicktoolbox‘. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
17 CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
18   Could not find a package configuration file provided by "sicktoolbox" with
19   any of the following names:
20
21     sicktoolboxConfig.cmake
22     sicktoolbox-config.cmake
23
24   Add the installation prefix of "sicktoolbox" to CMAKE_PREFIX_PATH or set
25   "sicktoolbox_DIR" to a directory containing one of the above files.  If
26   "sicktoolbox" provides a separate development package or SDK, be sure it
27   has been installed.
28 Call Stack (most recent call first):
29   catvehicle/CMakeLists.txt:7 (find_package)
30
31
32 -- Configuring incomplete, errors occurred!
33 See also "/home/gian/catvehicle_ws/build/CMakeFiles/CMakeOutput.log".
34 See also "/home/gian/catvehicle_ws/build/CMakeFiles/CMakeError.log".
35 Makefile:318: recipe for target ‘cmake_check_build_system‘ failed
36 make: *** [cmake_check_build_system] Error 1
37 Invoking "make cmake_check_build_system" failed

解决方法:

14.04环境下:

1 sudo apt-get install ros-indigo-sicktoolbox ros-indigo-sicktoolbox-wrapper

16.04环境下:

 1 cd ~
 2 mkdir -p sicktoolbox_ws/src
 3 cd sicktoolbox_ws
 4 catkin_make
 5 cd src
 6 git clone https://github.com/SantoshBanisetty/sicktoolbox.git
 7 git clone https://github.com/ros-drivers/sicktoolbox_wrapper/tree/indigo-devel
 8 cd ..
 9 catkin_make
10 echo "source ~/sicktoolbox_ws/devel/setup.bash" > ~/.bashrc
11 source ~/.bashrc

进入到catvehicle_ws中

1 cd ~/catvehicle_ws

再次在catkin_make。

4)找不到velodyne_pointcloudConfig.cmake

 1 CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package):
 2   Could not find a package configuration file provided by
 3   "velodyne_pointcloud" with any of the following names:
 4
 5     velodyne_pointcloudConfig.cmake
 6     velodyne_pointcloud-config.cmake
 7
 8   Add the installation prefix of "velodyne_pointcloud" to CMAKE_PREFIX_PATH
 9   or set "velodyne_pointcloud_DIR" to a directory containing one of the above
10   files.  If "velodyne_pointcloud" provides a separate development package or
11   SDK, be sure it has been installed.
12 Call Stack (most recent call first):
13   catvehicle/CMakeLists.txt:7 (find_package)
14
15
16 -- Could not find the required component ‘velodyne_pointcloud‘. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
17 CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
18   Could not find a package configuration file provided by
19   "velodyne_pointcloud" with any of the following names:
20
21     velodyne_pointcloudConfig.cmake
22     velodyne_pointcloud-config.cmake
23
24   Add the installation prefix of "velodyne_pointcloud" to CMAKE_PREFIX_PATH
25   or set "velodyne_pointcloud_DIR" to a directory containing one of the above
26   files.  If "velodyne_pointcloud" provides a separate development package or
27   SDK, be sure it has been installed.
28 Call Stack (most recent call first):
29   catvehicle/CMakeLists.txt:7 (find_package)
30
31
32 -- Configuring incomplete, errors occurred!
33 See also "/home/gian/catvehicle_ws/build/CMakeFiles/CMakeOutput.log".
34 See also "/home/gian/catvehicle_ws/build/CMakeFiles/CMakeError.log".
35 Makefile:318: recipe for target ‘cmake_check_build_system‘ failed
36 make: *** [cmake_check_build_system] Error 1
37 Invoking "make cmake_check_build_system" failed

解决方法:

1 sudo apt-get install ros-kinetic-velodyne-pointcloud
2 (14.04版本输入以下命令行:
3 sudo apt-get install ros-indigo-velodyne-pointcloud)

再次catkin_make

5)终端会报一堆warningerror

1 /usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
2  #error This file requires compiler and library support \

解决方法:

1 sudo gedit ~/catvehicle_ws/src/CMakeLists.txt
2 在文件中的第2或者3或者4或者5行的位置添加:
3 SET( CMAKE_CXX_FLAGS "-std=c++11 -O3")
4 保存。

再次catkin_make就可以了。

参考网址:

https://blog.csdn.net/handsome_for_kill/article/details/54382149

原文地址:https://www.cnblogs.com/sincere-diligence/p/9795042.html

时间: 2024-10-16 00:37:21

工程问题--ubuntu 14.04/16.04源码安装catvehicle的相关文章

Desktop Ubuntu 14.04LTS/16.04科学计算环境配置

Desktop Ubuntu 14.04LTS/16.04科学计算环境配置 计算机硬件配置 cpu i5 6代 内存容量 8G gpu GTX960 显存容量 2G(建议显存在4G以上,否则一些稍具规模的神经网络无法训练,会提示显存容量不足) 配置顺序 安装包 重要依赖 安装ubuntu            14.04   安装显卡驱动         nvidia-367   安装cuda tool kit        8.0   安装cuDNN             v5 安装版本取决

在ubuntu下,进行php7源码安装

作为一名php的攻城师,如果没有玩php源码安装是说不过去的.我们知道php之所以这么流行,跟它的开源文化和lamp配套有很大关系.由于PHP7废弃了很多功能,所以一些依赖这些功能的程序可能无法运行,尝鲜前请三思.比如很多国产软件都在依赖的mysql相关函数,如果自己开发php应用请用mysqli代替.不过WordPress是没有问题的,尽情使用吧. 下面进入正题,第一步,当然是下载源码和解压 $ cd ~ $ wget http://cn2.php.net/distributions/php-

MySQL5.6.16二进制源码安装详解及一键安装实现

一.系统环境 1.1操作系统 [[email protected] ~]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) [[email protected] ~]# uname -rm 10.0-693.el7.x86_64 x86_64 [[email protected] ~]# 1.2 安装前环境监测 1.2.1.SELinux和系统防火墙关闭 检查selinux [[email protected] ~]# s

ROS-Jade版在UbuntuKylin15.04上的源码安装

ROS-Installing from source Install from source requires that you download and compile the source code on your own. ROS Jade supports Trusty, Utopic, and Vivid. Other platforms are possible to use but are not expected to work out of the box. Target pl

Ubuntu 14.04/16.04使用pbis集成AD域帐号登录

Ubuntu 14.04/16.04使用pbis集成AD域帐号登录: 注:pbis为开源软件,前身为likewise-open 下载pbis deb包略 dpkg -i pbis-open/* /opt/pbis/bin/config UserDomainPrefix ming (设置默认域名前缀,不设置用户名前需加domain\) /opt/pbis/bin/config AssumeDefaultDomain true /opt/pbis/bin/config LoginShellTempl

在Ubuntu Kylin 16.04 LTS 上源码方式安装odoo

更新Ubuntu服务器软件源 运行以下代码: sudo apt-get update  #更新软件源 sudo apt-get dist-upgrade  #更新软件包,自动查找依赖关系 sudo shutdown -r now  #重启服务器,以更新改变的内容   新建系统用户用于运行Odoo程序 运行如下命令创建系统用户: sudo adduser --system --home=/opt/odoo9 --group odoo9  #新建系统用户odoo9,指定home目录为/opt/odo

Ubuntu14.04源码安装ONOS

ONOS可以安装在OS X和Ubuntu14.04系统中,本文主要介绍在Ubuntu14.04系统下如何源码安装ONOS. 1 系统要求 安装ONOS对操作系统有如下要求 Ubuntu Server 14.04 LTS 64-bit 2GB or more RAM 2 or more processors 需要安装如下软件,如果不用git获取源码,GIT可以不需要安装. Java 8 JDK (Oracle Java recommended; OpenJDK is not as thorough

Ubuntu15.04下源码安装MySQL5.6.26数据库

解决Ubuntu 15.04版下源码编译安装MySQL5.6.26数据库问题,这里提供依赖包下载,源码安装方法. (1)安装编译源码需要的包 sudoapt-get install make cmake gcc g++ bison libncurses5-dev 依赖包在博客附件里有下载.下面也有说明一些解决方法. 另外的:cmake-2.8.3.tar.gz安装啊.bison_3.0.2.dfsg-2_i386.deb.ncurses-5.9.tar.gz的依赖缺少的话自己可以去下载安装,由于

ubuntu16.04下源码安装onos1.0.2

由于工作需要,下载安装onos1.0.2的版本,大家看需求可以下载安装更高级的版本 参考链接:http://www.sdnlab.com/14650.html 1.系统环境 Ubuntu16.04 LTS 64bit 下载地址:https://www.ubuntu.com/download/desktop(桌面版) 2.安装依赖(这里的版本选择根据ONOS版本确定的,在上述参考链接中作者有提到----"关于Maven和Karaf版本的说明:此处建议使用推荐的karaf-3.0.3和Maven-3