ROS使用记录

来源:互联网 发布:全国省市区小区数据库 编辑:程序博客网 时间:2024/06/15 15:31

ROS源码下载:

安装下载工具:

sudo apt-get install python-catkin-tools python-rosinstall-generator -y
创建一个存放源码的文件夹,然后进入该文件夹,并执行:

rosinstall_generator robot --rosdistro indigo --deps --wet-only --tar > indigo-robot-wet.rosinstall 
wstool init -j8 src indigo-robot-wet.rosinstall 

如果下载过程中断了,可以断点续传:

 wstool update -j 4 -t src 


使用错误记录一:

error: expected ‘,’ or ‘...’ before numeric constant 

代码中定义有:#include g 9.78

添加头文件ros/ros.h后,出现这个错误

解决办法,不要定义一个字母的常量,换个多个字母的名字就好

原创粉丝点击