我 使用 RPLidar 的 RPLidar 手册完成了所有步骤,但是 Ubuntu 和 MacOS 无法连接到 RPLidar 并给出如下错误:
由于以下原因无法连接到传感器:[Errno 2] 无法打开端口 /dev/ttyUSB0:[Errno 2] 没有此类文件或目录:'/dev/ttyUSB0'
在两个终端中搜索时没有一个 USB 显示。(ls /dev/tty*) 将有助于一些链接或帮助。(在 Ubuntu 和 MacOS 上不是大师)
命令 ls /dev/
HAX ptyw5
afsc_type5 ptyw6
auditpipe ptyw7
auditsessions ptyw8
autofs ptyw9
autofs_control ptywa
autofs_homedirmounter ptywb
autofs_notrigger ptywc
autofs_nowait ptywd
bpf0 ptywe
bpf1 ptywf
bpf2 random
bpf3 rdisk0
console rdisk0s1
cu.Bluetooth-Incoming-Port rdisk0s2
disk0 rdisk0s3
disk0s1 rdisk1
disk0s2 rdisk2
disk0s3 rdisk2s1
disk1 sdt
disk2 stderr
disk2s1 stdin
dtrace stdout
dtracehelper systrace
fbt tty
fd tty.Bluetooth-Incoming-Port
fsevents ttyp0
io8log ttyp1
io8logmt ttyp2
io8logtemp ttyp3
lockstat ttyp4
machtrace ttyp5
nsmb0 ttyp6
null ttyp7
oslog ttyp8
oslog_stream ttyp9
pf ttypa
pfm ttypb
pmCPU ttypc
profile ttypd
ptmx ttype
ptyp0 ttypf
ptyp1 ttyq0