Example #1
0
def cvpoint_of_pt(pts):
	"""
	   Careful this returns a list
	"""
	def cvpoint(pt):
		return cv.cvPoint(int(round(pt[0,0])), int(round(pt[1,0])))
	return map(cvpoint, ut.list_of_mat(pts))
Example #2
0
 def to_euclid(c):
     ranges, indices = c
     return list(ut.list_of_mat(euclid_of_laser(scan, indices=np.matrix(indices))))
Example #3
0
 def to_euclid(c):
     ranges, indices = c
     return list(
         ut.list_of_mat(euclid_of_laser(scan, indices=np.matrix(indices))))