ROS2双摄像头智能驾驶-WSL2:基于 ROS2 与 WSL2 的双摄像头智能驾驶项目

Archived

ROS2双摄像头智能驾驶,wsl2端

Branch2Tags0
FilesLast commitLast update
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago

项目启动

编译

cd ~/smart_drive_ws
colcon build 
source install/setup.bash

运行

ros2 launch vision_processor system_startup.launch.py

查看话题列表

ros2 topic list

查看话题相关信息

ros2 run rqt_topic rqt_topic

查看话题带宽

ros2 topic bw /camera/lane/image_raw

查看话题频率

ros2 topic hz /camera/lane/synced

录制包

ros2 bag record -o sync_test_01 \
  /camera/lane/image_raw \
  /camera/sign/image_raw \
  /camera/lane/synced \
  /camera/sign/synced

分析包

ros2 bag info sync_test_01

查看包

ros2 run rqt_bag rqt_bag

跨设备通信

一、使用简单发现协议

1.设置共同的域ID(0-101)

export ROS_DOMAIN_ID=66

2.A设备启动发布者话题

ros2 run demo_nodes_cpp talker

3.B设备启动接收者话题

ros2 run demo_nodes_py listener

二、使用发现服务器

1.设备A启动Discovery Server

fast-discovery-server -i 0 -p 11811

2.其他设备设置服务器地址

export ROS_DISCOVERY_SERVER="192.168.1.149:11811"

3.运行talker、listener。

Introduction

ROS2双摄像头智能驾驶,wsl2端

Customize your domain