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发布相关推荐
- 使用ros发布UVC相机和串口IMU数据
1.目的:为了可以标定普通USB相机和固定在相机上的外置IMU的外参,我希望通过ROS获取更高分辨率和更高频率的图像数据,并且可以将图像和imu的topic发布出来,直接使用rosbag record ...
- 维特智能IMU 接入ROS发布IMU数据类型话题
#维特智能IMU 接入ROS发布IMU数据类型话题 1.准备工作 1.1安装串口功能包 sudo apt-get install ros-melodic-serial 1.2创建功能包 $ cd ~/ ...
- pcap如何转换为pcd_激光雷达pcap包转换为bag包、pcd文件
参考:https://blog.csdn.net/geerniya/article/details/90681003web 说明:本文选用的是速腾16线激光雷达.iview 1. 采集 pcap 文件 ...
- opencv 读取相机图像+ros发布图像
#!/usr/bin/python2 # coding=utf-8import cv2 import numpy as np from std_msgs.msg import Header from ...
- npm包开发测试与发布
NPM 包开发测试与发布 NPM 包开发测试与发布 引言 1. 开发步骤 1.1. 项目创建 1.2. 工具类功能实现 1.3. ts文件编译 2. npm包本地测试 2.1. 将npm包文件引入项目 ...
- python3.7扩展库是什么_Python3.4以后的版本中,____________库用于安装管理Python扩展包,________________库用于发布Python包。_学小易找答案...
[填空题]Python3.4以后的版本中,____________库用于安装管理Python扩展包,________________库用于发布Python包. [判断题]Directions: The ...
- python解析pcap包已text格式输出_python分析pcap包
前两天需要分析一个pcap包,写了一段python脚本,将每个包的基本信息(源/目的MAC.源/目的IP.源/目的端口)提取出来. 在实现过程中为了省事用了dpkt开发包,不过只用了几个简单的函数,具 ...
- ROS学习笔记九:用C++编写ROS发布与订阅
ROS学习笔记九:用C++编写ROS发布与订阅 本节主要介绍如何用C++编写一个简单的ROS发布与订阅. 编写发布节点 在之前创建的例子beginner_tutorials软件包中,在其目录下的src ...
- ROS发布/订阅Float64MultiArray数组类消息(C++和Python相互发布和订阅)
在terminal用指令发布一个Float64MultiArray消息,这个在调试时特别好用,注意格式,最后一行的data: [1,2,3]中冒号和后面的中括号间要有空格 rostopic pub / ...
最新文章
- 大师Martin Fowler强烈推荐的一本书
- mysql的复合类型_PLSQL 复合类型数据
- JavaScript数据迭代方法差别
- linux mmu的实现的讲解_Linux中的段
- php抓取aspx_哪些因素会影响蜘蛛抓取页面?
- android平台使用java动态生成公私钥,并导出证书文件
- java安装版本哪种好_我怎么知道我安装了哪个版本的Java?
- 抢完口罩抢头盔!头盔销量激增,价格翻倍:昨天59元,今天258元
- 剑指offer25-合并两个排序的链表
- 不用也要知道的几种算法(PHP版本)
- GO语言学习之路17
- ARM开发6.3.4 基础实训( 4 ) 两个 LED 显示二位数(动态显示)--LPC21XX
- VS2008编译的程序运行提示“由于应用程序配置不正确,应用程序未能启动”
- 刷排名优优软件_QQ群排名技术原理
- 画毛毛虫代码计算机图形学,毛毛虫的任务
- java生成iso9660工具_UltraISO 软碟通 (ISO编辑工具)
- word论文页码排版
- 电影外观调色效果Lr预设
- 大数据——DBT:dbt的数据质量监控插件re_data二次开发及编译(生产环境篇)
- java开发人员的小习惯