大家好,我是 ubuntu 和 linux 的新手,我正在研究 baxter 机器人,我有几个问题.. 当我按照指南步骤操作时,我有一个命令需要编辑 gedit 文件并写入我的电脑的主机名和 ip_address :
gedit baxter.sh
我做了几次,当我在写的时候建立了 ssh 连接:
. baxter.sh
我不是:
EXITING - Please edit this file, modifying the 'baxter_hostname' variable to reflect Baxter's current hostname.
之后我在 rosrun、apt-get、rosnode 命令上遇到错误
sudo: apt-get command not found
当我第一次更改 baxter.sh 的 ip 地址和主机名时,它起作用了,但那次我没有收到那个提示,我不知道这是否与更多信息相关。 感谢帮助
最佳答案
修复
EXITING - Please edit this file, modifying the 'baxter_hostname' variable to reflect Baxter's current hostname.
第一步是确保设置 baxter 主机名。根据 baxter sdk guide :
Baxter's hostname is defaulted as the robot's serial number. The serial number can be located on the back of the robot, next to the power button.
Alternatively, you can find your robot's hostname by plugging a USB keyboard into the back of Baxter and pressing Ctrl+Alt+F3.
您可以通过在终端中打开文件(通过 gedit)来编辑它,或者您可以使用文件浏览器导航到该文件并在文本编辑器中进行更改。
修复
sudo: apt-get command not found
关于linux - 如何解决找不到apt-get命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44226588/