ROS学习手记 - 2 Create and Build ROS Package 生成包(C++)
ROS学习手记 - 2 Create and Build ROS Package 生成包(C++) For ROS experienced user, You can just skip to the Constuction about ROS Package usage: For Quick Reference(C++): http://blog.csdn.net/sonictl/article/details/46764855#t5 For Quick Reference(Python): http://blog.csdn.net/sonictl/article/details/46764855#t15 === 在上一篇的基础上,Create并Customize了Package之后,要Build Package === 来源:http://wiki.ros.org/ROS/Tutorials/BuildingPackages 1. 确认source有没有完成 (版本: hydro): $ source /opt/ros/hydro/setup.bash 2. Using catkin_make 使用方法: # In a catkin workspace $ catkin_make [make_targets] [-DCMAKE_VARIABLES=...] 这里catkin_make使用了CMake 的workflow来操作,科普一下这个workflow: 3. 如何写ROS的Publisher and Subscriber(C++) 因为要涉及到对CMakeLists.txt的写法,需要先了解这个文章:http://wiki.ros.org/ROS/Tutorials/WritingPublisherSubscriber%28c%2B%2B%29 具体关于CMakeLists.txt文件,请看http://wiki.ros.org/catkin/CMakeLists.txt 4. 关于workspace下的build devel src文件夹 The build folder is the default location of thebuild space and is wherecmake andmake are called to configure and build your packages.
…