我是靠谱客的博主 可爱石头,这篇文章主要介绍syntax error near unexpected token `(',现在分享给大家,希望可以做个参考。

rosrun用法问题,后面文件不加后缀

复制代码
1
2
3
4
5
6
$ rosrun chapter5_tutorials tf_broadcaster.cpp /home/lichunhong/Documents/src/effective_robotics_programming_with_ros-master/catkin_ws/src/chapter5_tutorials/src/tf_broadcaster.cpp : line 4: syntax error near unexpected token `(' /home/lichunhong/Documents/src/effective_robotics_programming_with_ros-master/catkin_ws/src/chapter5_tutorials/src/tf_broadcaster.cpp : line 4: `int main(int argc, char** argv){'

改写为:

复制代码
1
2
$ rosrun chapter5_tutorials tf_broadcaster

最后

以上就是可爱石头最近收集整理的关于syntax error near unexpected token `('的全部内容,更多相关syntax内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(70)

评论列表共有 0 条评论

立即
投稿
返回
顶部