编写了一些脚本和工具-zbw

This commit is contained in:
2026-07-22 17:32:57 +08:00
parent 691e9c80bd
commit c7260bd021
8 changed files with 1463 additions and 0 deletions

View File

@@ -88,8 +88,18 @@
`ros2 launch lslidar_driver lsn10_launch.py `
open new terminal
```bash
# 简洁前:
ros2 topic pub -1 /lslidar_order std_msgs/msg/Int8 data:\ 1\ # (open radar)
ros2 topic pub -1 /lslidar_order std_msgs/msg/Int8 data:\ 0\ # (close radar)
# 简洁后:
lidar
```
启动qr_detect的方式
```bash
ros2 launch car_usb_cam hobot_usb_cam.launch.py # 终端1
ros2 launch qr_detection qr_detect.launch.py # 终端2
```
# 四、其它说明
@@ -105,6 +115,8 @@ foxglove # 启动foxbridge
运行二维码检测(无缓存版):
`ros2 run qr_detection qr_dete_depth_node --ros-args -p use_buffer:=false`
二维码识别出来是一个四位数,偶数为逆,奇数为顺
# 五、tools 工具使用
`measure_turning_radius.py`:功能为测试实际转向角度与输入的关系。启动后,会在/turning_radius_data文件夹下生成测试数据
`set_volume.py`功能为设置USB声卡的音量修改第七行或直接`python3 set_volume.py 80`即可更改为80或任何你想要的数字