34 from numpy
import matrix, vsplit, sin, cos, reshape
37 param_names = [
'spacing_x',
'spacing_y']
41 Primitive for generating 3D points of a checkerboard. 49 def __init__(self, config = {'corners_x': 2,
53 rospy.logdebug(
'Initializing Checkerboard')
57 param_vec = reshape( matrix([ config[
'spacing_x'], config[
'spacing_y'] ], float), (-1,1))
61 return [free_config[x] == 1
for x
in param_names]
66 'spacing_x' : float(param_vec[0,0]),
67 'spacing_y' : float(param_vec[1,0]) }
81 return len(param_names)
87 pts = matrix(numpy.zeros((4,N), float))
def params_to_config(self, param_vec)
def inflate(self, param_vec)
def generate_points(self)
def calc_free(self, free_config)