pptk icon indicating copy to clipboard operation
pptk copied to clipboard

updating point cloud fails after 15 times

Open gckoers opened this issue 6 years ago • 0 comments

I am trying to create a live point cloud movie from recorded TOF data.

== code start == i = 0 for frame in stream: channels = frame.getChannels() depth = np.reshape(np.array(channels[0].getData()), channels[0].getResolution()) confidence = np.reshape(np.array(channels[1].getData()), channels[1].getResolution()) sel = np.logical_and(depth > depth_range[0], depth < depth_range[1]) xyz = d2pcl(depth, pp=pixel_pitch, f=focal_length, sel=sel) if i == frame_range[0]: v = pptk.viewer(xyz) v.set(floor_level=2000) v.set(lookat=[camera_pose[0], camera_pose[1], camera_pose[2]], phi=camera_pose[3], theta=camera_pose[4], r=camera_pose[5]) raw_input('Resize the window, then press any key to CONTINUE ...') else: v.clear() time.sleep(2) v.load(xyz) time.sleep(2) v.set(lookat=[camera_pose[0], camera_pose[1], camera_pose[2]], phi=camera_pose[3], theta=camera_pose[4], r=camera_pose[5]) time.sleep(2) v.capture(targetFileNameBase % i)

== code end ==

Unfortunately, this loop hangs after 15 iterations with: get socket.error: [Errno 10061] No connection could be made because the target machine actively refused it

Any recommendations to work around this issue? I am running Python 2.7 on Windows 7.

gckoers avatar Feb 09 '19 19:02 gckoers