我正在使用 rospy
接收点云数据。为了处理这些点云数据,有一个名为 python-pcl
的包,但是我无法运行它,因为它非常不稳定且无法正常工作,在Github上有很多问题。
我想知道是否有另一个Python库可以用于处理点云数据?我通过ROS接收点云如下:
self.pointcloud_sub = rospy.Subscriber("/nerian_stereo/point_cloud", PointCloud2, self.pointcloud_cb) # get the pointcloud
def pointcloud_cb(self, scan):
# just to test, if we receive anything
points_list = []
# loop and show points
for data in pc2.read_points(scan, skip_nans=True):
points_list.append([data[0], data[1], data[2], data[3]])
print(points_list)
从这一点开始,介绍如何使用ICP处理、可视化或注册Pointcloud,而无需使用PCL库。