pclpy icon indicating copy to clipboard operation
pclpy copied to clipboard

PCLVisualizer.addCorrespondences not working in pclpy

Open hutaocheng opened this issue 5 years ago • 0 comments

`def plot_onto(ptrX, ptrY, onto): try: # 1. visualizer visualizer = pcl.visualization.PCLVisualizer() # 2. show the source and the destination cloud visualizer.addPointCloud(ptrX, pcl.visualization.PointCloudColorHandlerCustom.PointXYZ(ptrX, 0., 1., 0.)) # visualizer.addPointCloud(ptrY, pcl.visualization.PointCloudColorHandlerCustom.PointXYZ(1., 1., 1.)) ## 3. add colored lines between source and destination cloud visualizer.addCorrespondences(ptrX, ptrY, onto) #this line leads to a system crash # 4. flush to the screen visualizer.spin() #visualizer.spinOnce(1000) #

except Exception as excpt:
    print(excpt)`

hutaocheng avatar Jul 31 '19 10:07 hutaocheng