pypcd icon indicating copy to clipboard operation
pypcd copied to clipboard

NotImplementedError: ROS sensor_msgs not found while reading rosbag

Open vishaldolase-honda opened this issue 2 years ago • 1 comments

Hi, i am new to ROS2 and pointcloud. I have Lidar data in rosbag. i want to convert it into kitti dataset format .bin files i wanted to use pypcd to read the data but its giving following issue

pc = pypcd.PointCloud.from_msg(loc[indx])

File "/home/robot/.local/lib/python3.8/site-packages/pypcd/pypcd.py", line 779, in from_msg raise NotImplementedError('ROS sensor_msgs not found') NotImplementedError: ROS sensor_msgs not found

Please provide solution, thank you

vishaldolase-honda avatar May 19 '23 06:05 vishaldolase-honda

Hey @vishaldolase-honda Check the lines 48 -> 51 in the following script to extract the point cloud data https://gist.github.com/Merwanski/bef218ff3b7472d5ac787e1392116fd7

Merwanski avatar Jul 19 '24 09:07 Merwanski