
Python
KennethYangle
这个作者很懒,什么都没留下…
展开
-
解析sensor_msgs::PointCloud2 ROS点云数据
一、消息结构sensor_msgs::PointCloud2是一类点云数据结构,消息定义如下$ rosmsg info sensor_msgs/PointCloud2std_msgs/Header header uint32 seq time stamp string frame_iduint32 heightuint32 widthsensor_msgs/Point...原创 2020-04-15 11:12:56 · 36807 阅读 · 19 评论 -
python中string和十六进制、二进制互转
def str_to_hex(s): return ' '.join([hex(ord(c)).replace('0x', '') for c in s])def hex_to_str(s): return ''.join([chr(i) for i in [int(b, 16) for b in s.split(' ')]]) def str_to_bin(s):...转载 2019-02-23 15:31:27 · 1168 阅读 · 0 评论