创建的工作空间一定要在英文目录下,不然怎样改程序都不会运行
编译通过后报错:
terminate called after throwing an instance of 'ros::InvalidNameException'
what(): Character [ ] is not valid as the first character in Graph Resource Name [ hello _ros ]. Valid characters are a-z, A-Z, / and in some cases ~.
源文件cpp的问题,检查自己代码是否正常,cpp文件名是否正确
编译成功后记得设置环境变量,即 source devel/setup.bash
附上一个完美的ros hello world教程:https://blog.csdn.net/QFJIZHI/article/details/82978447