ROS pointcloud assembler service call not returning pcd

asked 2013-12-16 18:12:09 -0600

Sentinal_Bias gravatar image

updated 2013-12-16 18:12:50 -0600

Hi I am trying to publish pointclouds that have been most recently entered into the pointcloud assembler However i only get PCD when last_time = rospy.Time(0,0). The point cloud assembler service call is meant to give pcd which is between a begin and an end time. Entering rospy.Time(0,0) into the begin field will give back everything in the buffer. But I only want PCD that is newly entered... But the following code does not return any PCD.

last_time = rospy.Time(0,0)
rate = rospy.Rate(0.5)
while not rospy.is_shutdown():
        assemble_scans = rospy.ServiceProxy('assemble_scans', AssembleScans)
        resp = assemble_scans( last_time, rospy.get_rostime())
        last_time = rospy.get_rostime()
    except rospy.ServiceException, e:
        print "Service call failed: %s"%e
edit retag flag offensive close merge delete