日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Robosense解码pcap包并使用ros发布

發布時間:2023/12/20 编程问答 36 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Robosense解码pcap包并使用ros发布 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

1、 獲取pcap包參數

??????? 讀取pcap包數據獲取其中的msop端口號和difop端口號,默認值為msop-6699, difop-7788。

使用wireshark打開pcap包。

??????? 下圖中的6690為msop端口號

????????在上面的過濾框中輸入 data:data[0:1] == a5,出現如下圖的結果,其中的7779為difop端口號。

?2、 config文件配置

??????? config配置文件具體如下所示:

common:msg_source: 3 #0: not use Lidar#1: packet message comes from online Lidar#2: packet message comes from ROS or ROS2#3: packet message comes from Pcap file#4: packet message comes from Protobuf-UDP#5: point cloud comes from Protobuf-UDPsend_packet_ros: false #true: Send packets through ROS or ROS2(Used to record packet)send_point_cloud_ros: true #true: Send point cloud through ROS or ROS2send_packet_proto: false #true: Send packets through Protobuf-UDPsend_point_cloud_proto: false #true: Send point cloud through Protobuf-UDPpcap_path: /home/robosense/data/data.pcap #The path of pcap filelidar:- driver:lidar_type: RSM1 #LiDAR type - RS16, RS32, RSBP, RS128, RS80, RSM1, RSHELIOSframe_id: /rslidar #Frame id of messagemsop_port: 6690 #Msop port of lidardifop_port: 7779 #Difop port of lidarstart_angle: 0 #Start angle of point cloudend_angle: 360 #End angle of point cloud min_distance: 0.2 #Minimum distance of point cloudmax_distance: 200 #Maximum distance of point clouduse_lidar_clock: false #True--Use the lidar clock as the message timestamp#False-- Use the system clock as the timestamp ros:ros_recv_packet_topic: /rslidar_packets #Topic used to receive lidar packets from ROSros_send_packet_topic: /rslidar_packets #Topic used to send lidar packets through ROSros_send_point_cloud_topic: /rslidar #Topic used to send point cloud through ROSproto:point_cloud_recv_port: 60021 #Port number used for receiving point cloud point_cloud_send_port: 60021 #Port number which the point cloud will be send tomsop_recv_port: 60022 #Port number used for receiving lidar msop packetsmsop_send_port: 60022 #Port number which the msop packets will be send to difop_recv_port: 60023 #Port number used for receiving lidar difop packetsdifop_send_port: 60023 #Port number which the difop packets will be send to point_cloud_send_ip: 127.0.0.1 #Ip address which the point cloud will be send to packet_send_ip: 127.0.0.1 #Ip address which the lidar packets will be send to

總結

以上是生活随笔為你收集整理的Robosense解码pcap包并使用ros发布的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。