feat:添加udev配置

main
邱棚 2025-03-17 13:56:42 +08:00
parent bde4e8d476
commit d7c2582190
129 changed files with 6 additions and 2 deletions

4
99-benz-serial.rules Normal file
View File

@ -0,0 +1,4 @@
# 串口继电器
KERNEL=="ttyUSB*", SUBSYSTEM=="tty", ENV{ID_PATH}=="platform-xhci-hcd.4.auto-usb-0:1:1.0-port0", SYMLINK+="autolabor_relay", MODE="0777"
# 雷达
KERNEL=="ttyUSB*", SUBSYSTEM=="tty", ENV{ID_PATH}=="platform-fc840000.usb-usb-0:1:1.0-port0", SYMLINK+="autolabor_ld19", MODE="0777"

View File

@ -63,7 +63,7 @@ namespace Autolabor.Benz.ObstacleDetection
// 4. 配置组件 // 4. 配置组件
// 激光雷达配置 // 激光雷达配置
_lidarDriver.SetProperty("lidar.port", "/dev/tty.usbserial-2120"); _lidarDriver.SetProperty("lidar.port", "/dev/autolabor_ld19");
_lidarDriver.SetProperty("lidar.x", 0.0); _lidarDriver.SetProperty("lidar.x", 0.0);
_lidarDriver.SetProperty("lidar.y", 0.0); _lidarDriver.SetProperty("lidar.y", 0.0);
_lidarDriver.SetProperty("lidar.originName", "frontLidarOrigin"); _lidarDriver.SetProperty("lidar.originName", "frontLidarOrigin");
@ -77,7 +77,7 @@ namespace Autolabor.Benz.ObstacleDetection
_lidarDriver.SetProperty("sim.lidar.listen.port", _FrontLidarListenPort); _lidarDriver.SetProperty("sim.lidar.listen.port", _FrontLidarListenPort);
// 串口继电器配置 // 串口继电器配置
_serialRelay.SetProperty("serial.relay.port", "/dev/tty.usbserial-AC012VIB"); _serialRelay.SetProperty("serial.relay.port", "/dev/autolabor_relay");
// 创建感兴趣区 // 创建感兴趣区
_lidarRois = new[] _lidarRois = new[]

Some files were not shown because too many files have changed in this diff Show More