有没有办法使用gps跟踪jetson纳米板?

2024-05-13 23:59:22 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在做一个项目,我必须将jetson纳米板安装到火车上,并检测它的gps位置。但我无法找到一个合适的解决方案,将gps模块包括在jetson飞机上。如果有人能帮我,那就太好了。 提前谢谢


Tags: 模块项目解决方案gpsjetson火车飞机
1条回答
网友
1楼 · 发布于 2024-05-13 23:59:22

因此,据我所知,最好的方法是为jetson nano提供一个实际的gps模块(不知道确切的型号,但我认为我们可以使用流行的4g型号),一个例子是https://www.waveshare.com/sim7600g-h-4g-for-jetson-nano.htm,但你也可以做一些不太准确的事情。小bash脚本,希望对你有帮助

首先,我将ssh连接到您的设备中,您可以运行ifconfig来了解一些想法。默认情况下,对于无线模块为wlan0,对于有线连接为eth0。 让我们把文件归档

touch nanoloc.sh && sudo chmod +x nanoloc.sh

然后在这里运行这个小脚本:

#!/bin/bash 
#define what shell we want to use above
format="json" #xml or json
user="" #add your current user
nano_ip="$(curl ifconfig.co)"
ip_locaddr=https://freegeoip.app/$format/$nano_ip
data_file=/mnt/c/Users/$user/output.$format #change this to your expected path
touch data_file #make the file
echo data_file #make sure we have the right one
curl "$ip_locaddr" > data_file #write it out
cat data_file #let's see what it says

现在,您应该能够在运行./nanoloc.sh时看到它的输出

希望这有帮助,我也从WSL(你可以从它的安装路径看到)运行它,并在Linux上测试

相关问题 更多 >