首先用 find ~/ -name velocity_publisher.py 寻找文件路径
vim /home/answer/catkin_ws/src/learrning_topic/scripts/velocity_publisher.py
如果出现 :Command 'vim' not found, but can be installed with:
执行 sudo apt install vim
安装完成后执行 vim /home/answer/catkin_ws/src/learrning_topic/scripts/velocity_publisher.py
:set ff=unix
:wq
最后 vim /home/answer/catkin_ws/src/learrning_topic/scripts/velocity_publisher.py
运行 rosrun learrning_topic velocity_publisher.py