rosrun用法问题,后面文件不加后缀
$ 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){'
改写为:
$ rosrun chapter5_tutorials tf_broadcaster