예제 #1
0
    def __init__(self, dt, xdim):
        self.dt =  dt
        self.xdim = xdim

        RoomModel.__init__(self, self.dt, self.xdim, self.xdim/4, 
                           xscale = 1.0, yscale = 1.0, 
                           xmin = -0.25, ymin = -0.5)
예제 #2
0
    def __init__(self,
                 dt,
                 xdim,
                 neighborDistance=3.0,
                 perimeter=[[0, 0], [1, 0], [1, 1], [0, 1], [0, 0]]):
        self.dt = dt
        self.xdim = xdim
        self.neighborDistance = neighborDistance
        self.perimeter = perimeter

        self.lines = []
        self.room2D = Room2D()

        RoomModel.__init__(self,
                           self.dt,
                           self.xdim,
                           self.xdim,
                           xscale=10.0,
                           yscale=10.0,
                           xmin=0.0,
                           ymin=0.0)

        rospy.Service("/room/pause", GetString, self.pause)

        self.tg.plot_lines(np.array(self.perimeter), 0, 1, 0, "purple")
예제 #3
0
    def __init__(self, dt, xdim, neighborDistance = 4.0,
                 perimeter = [[0,0],[1,0],[1,1],[0,1],[0,0]]):
        self.dt =  dt
        self.xdim = xdim
        self.neighborDistance = neighborDistance
        self.perimeter = perimeter

        RoomModel.__init__(self, self.dt, self.xdim, self.xdim, 
                           xscale = 10.0, yscale = 10.0, 
                           xmin = 0.0, ymin = 0.0)

        self.tg.plot_lines(np.array(self.perimeter),0,1,0,"purple")
예제 #4
0
    def __init__(self, dt, xdim):
        self.dt = dt
        self.xdim = xdim

        RoomModel.__init__(self,
                           self.dt,
                           self.xdim,
                           self.xdim / 4,
                           xscale=1.0,
                           yscale=1.0,
                           xmin=-0.25,
                           ymin=-0.5)
예제 #5
0
    def __init__(self, dt, xdim, neighborDistance = 3.0,
                 perimeter = [[0,0],[1,0],[1,1],[0,1],[0,0]]):
        self.dt =  dt
        self.xdim = xdim
        self.neighborDistance = neighborDistance
        self.perimeter = perimeter

        self.lines = []
        self.room2D = Room2D()

        RoomModel.__init__(self, self.dt, self.xdim, self.xdim,
                           xscale = 10.0, yscale = 10.0,
                           xmin = 0.0, ymin = 0.0)

        rospy.Service("/room/pause", GetString, self.pause)

        self.tg.plot_lines(np.array(self.perimeter),0,1,0,"purple")
예제 #6
0
    def __init__(self,
                 dt,
                 xdim,
                 neighborDistance=4.0,
                 perimeter=[[0, 0], [1, 0], [1, 1], [0, 1], [0, 0]]):
        self.dt = dt
        self.xdim = xdim
        self.neighborDistance = neighborDistance
        self.perimeter = perimeter

        RoomModel.__init__(self,
                           self.dt,
                           self.xdim,
                           self.xdim,
                           xscale=10.0,
                           yscale=10.0,
                           xmin=0.0,
                           ymin=0.0)

        self.tg.plot_lines(np.array(self.perimeter), 0, 1, 0, "purple")