在ROS主机中设置开机自启动程序 1、制作脚本 cd /home/wheeltec nano nfs.sh 在nfs.sh文件中输入以下内容: #!/bin/sh sudo mount -t nfs 192.168.0.100:/home/wheeltec/wheeltec_robot /mnt 给脚本添加执行权限 sudo chmod 777 nfs.sh 2、测试脚本功能 ./nfs.sh #!/bin/bash 在末尾添加 /home/wheeltec/nfs.sh 3、将脚本文件写入rc.local文件中 sudo nano /etc/rc.local 在末尾添加 /home/wheeltec/hello.sh 重启 reboot