创建的工作空间一定要在英文目录下,不然怎样改程序都不会运行

 

 编译通过后报错:

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

相关文章:

  • 2022-01-19
  • 2021-12-01
  • 2022-12-23
  • 2022-12-23
  • 2021-04-06
  • 2021-04-24
  • 2021-08-25
  • 2021-07-02
猜你喜欢
  • 2021-12-02
  • 2021-07-09
  • 2022-12-23
  • 2022-01-03
  • 2022-01-07
  • 2022-12-23
  • 2021-08-27
相关资源
相似解决方案