ROS机器人高效编程 第三版, catkin_make 问题处理

本文解决了在ROS环境中集成OpenCV遇到的问题,如catkin_make失败及不同版本间的调用差异。介绍了如何正确配置CMakeLists.txt以确保使用指定版本的OpenCV。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

git 地址: https://github.com/rosbook/effective_robotics_programming_with_ros/branches



issues :

1,there are two excutable "example4" , catkin_make failed  , change one's name .

2, target_link_libraries(homography ${OpenCV_LIBRARIES} ${catkin_LIBRARIES})
we should put OpenCV_LIBRARIES before others , otherwise ,there will be an error when catkin_make

UBUNTU 14 , ROS indigo


 ‘create’ is not a member of ‘cv::DescriptorExtractor

该问题是在调用opencv2.4.**调用方法如下:

detector = cv::FeatureDetector::create()

而在opencv3.**以后的版本调用方法如下:

detector = AKAZE::create();

然而有的时候可能一台ubuntu系统中安装了多个版本的opencv,这是就可能出现上述问题。

解决方法:在CMake.txt配置时注意调用FIND_PACKAGE( OpenCV 2.4 REQUIRED )




Effective Robotics Programming with ROS - Third Edition English | 27 Dec. 2016 | ISBN: 1786463652 | 468 Pages | AZW3/MOBI/EPUB/PDF (conv) | 59.11 MB Find out everything you need to know to build powerful robots with the most up-to-date ROS About This Book This comprehensive, yet easy-to-follow guide will help you find your way through the ROS framework Successfully design and simulate your 3D robot model and use powerful robotics algorithms and tools to program and set up your robots with an unparalleled experience by using the exciting new features from Robot Kinetic Use the latest version of gazebo simulator, OpenCV 3.0, and C++11 standard for your own algorithms Who This Book Is For This book is suitable for an ROS beginner as well as an experienced ROS roboticist or ROS user or developer who is curious to learn ROS Kinetic and its features to make an autonomous Robot. The book is also suitable for those who want to integrate sensors and embedded systems with other software and tools using ROS as a framework. What You Will Learn Understand the concepts of ROS, the command-line tools, visualization GUIs, and how to debug ROS Connect robot sensors and actuators to ROS Obtain and analyze data from cameras and 3D sensors Use Gazebo for robot/sensor and environment simulation Design a robot and see how to make it map the environment, navigate autonomously, and manipulate objects in the environment using MoveIt! Add vision capabilities to the robot using OpenCV 3.0 Add 3D perception capabilities to the robot using the latest version of PCL In Detail Building and programming a robot can be cumbersome and time-consuming, but not when you have the right collection of tools, libraries, and more importantly expert collaboration. ROS enables collaborative software development and offers an unmatched simulated environment that simplifies the entire robot building process. This book is packed with hands-on examples that will help you program your robot and give you complete solutions using open source ROS libraries and tools. It also shows you how to use virtual machines and Docker containers to simplify the installation of Ubuntu and the ROS framework, so you can start working in an isolated and control environment without changing your regular computer setup. It starts with the installation and basic concepts, then continues with more complex modules available in ROS such as sensors and actuators integration (drivers), navigation and mapping (so you can create an autonomous mobile robot), manipulation, Computer Vision, perception in 3D with PCL, and more. By the end of the book, you'll be able to leverage all the ROS Kinetic features to build a fully fledged robot for all your needs. Style and approach This book is packed with hands-on examples that will help you program your robot and give you complete solutions using ROS open source libraries and tools. All the robotics concepts and modules are explained and multiple examples are provided so that you can understand them easily.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值