TurtleBot3入门教程#ROS2版#-网络设置
纠错,疑问,交流: 请进入讨论区或 请点击进入页面,扫码加入微信群或Q群进行交流
获取最新文章: 扫一扫加入“创客智造”公众号
文章说明
- 本教程主要介绍设置固定IP、远程登录和时间同步的操作
相关设备
- TB3套件:采购地址
设置固定IP
-
使用tb3时,最好设置固定的IP地址以免出现DHCP模式分配其不同IP地址的情况
远程登录
-
设置完固定IP,就可以在PC端使用
SSH方式远程登录到树莓派上 -
[TurtleBot && Remote PC] 安装ssh
$ sudo apt update
$ sudo apt install openssh-server
- [Remote PC] ssh远程登录到树莓派上
#
$ ssh [用户名]@[IP地址]
# 示例,如果是在创客智造上采购的机器,用户名和密码均为ubuntu
$ ssh ubuntu@192.168.0.29
ubuntu@192.168.0.29's password:
Welcome to Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-1024-raspi aarch64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
512 updates can be applied immediately.
96 of these updates are standard security updates.
To see these additional updates run: apt list --upgradable
Last login: Sun Apr 23 10:41:35 2023 from 192.168.0.203
ubuntu@TB3-V400:~$
时间同步
- [TurtleBot && Remote PC] 安装chrony
$ sudo apt-get install chrony
- [TurtleBot && Remote PC] 安装ntpdate
$ sudo apt-get install ntpdate
- [TurtleBot && Remote PC] 分别同步时间
$ sudo ntpdate ntp.ubuntu.com
- [TurtleBot && Remote PC] 检测时间是否同步
$ date
纠错,疑问,交流: 请进入讨论区或 请点击进入页面,扫码加入微信群或Q群进行交流
获取最新文章: 扫一扫加入“创客智造”公众号


















