def __init__(self): #1 px = 0.1 m # That's why everything is multiplied or divided by 10. cv2.namedWindow('cvwindow') cv2.setMouseCallback('cvwindow', self.callback) self.drawing = False self.point_cloud = [] self.draw_points = [] # Planner Settings self.vel = (0.0, 0.0) self.pose = (30.0, 30.0, 0) self.goal = None self.goal = [1.0, 3.0] self.base = [-3.0, -2.5, +3.0, +2.5] self.base = [-3.0, 0.0, 0.0, 0.0] self.config = dwa.Config(max_speed=5.0, min_speed=-1.0, max_yawrate=np.radians(40.0), max_accel=15.0, max_dyawrate=np.radians(110.0), velocity_resolution=0.1, yawrate_resolution=np.radians(1.0), dt=0.1, predict_time=3.0, heading=0.15, clearance=1.0, velocity=2.0, base=self.base)
def __init__(self): cv2.namedWindow('cvwindow') cv2.setMouseCallback('cvwindow', self.callback) # setting initial setting for vehicle and environment self.reset() # Planner Settings self.vel = (0.0, 0.0) self.pose = (-30.0, 30.0, 0) self.goal = None self.base = [-1.5, -1.25, +1.5, +1.25] self.config = dwa.Config(max_speed=3.0, min_speed=-1.0, max_yawrate=np.radians(40.0), max_accel=15.0, max_dyawrate=np.radians(110.0), velocity_resolution=0.1, yawrate_resolution=np.radians(1.0), dt=0.1, predict_time=3.0, heading=0.15, clearance=1.0, velocity=1.0, base=self.base)
def __init__(self): self.app = Flask(__name__) self.app.add_url_rule('/', 'index', self.index) self.app.add_url_rule('/frame', 'frame', self.frame) self.app.add_url_rule('/mouse_events', 'mouse', self.mouse, methods=['POST']) self.app.add_url_rule('/key_events', 'keypress', self.keypress, methods=['POST']) self.drawing = False self.draw_points = [] self.point_cloud = [] self.vel = (0.0, 0.0) self.pose = (30.0, 30.0, 0) self.goal = None self.base = [3.0, 2.5, -3.0, -2.5] self.config = dwa.Config(max_speed=3.0, min_speed=-1.0, max_yawrate=np.radians(40.0), max_accel=15.0, max_dyawrate=np.radians(110.0), velocity_resolution=0.1, yawrate_resolution=np.radians(1.0), dt=0.1, predict_time=3.0, heading=0.15, clearance=1.0, velocity=1.0, base=self.base)
def __init__(self): cv2.namedWindow('demo') cv2.setMouseCallback('demo', self.callback) self.point_cloud = [] self.draw_points = [] # Planner Settings self.vel = (0.0, 0.0) self.pose = (30.0, 60.0, 0) self.goal = None self.base = [-3.0, -2.5, +3.0, +2.5] self.config = dwa.Config( max_speed = 3.0, min_speed = -1.0, max_yawrate = np.radians(40.0), max_accel = 15.0, max_dyawrate = np.radians(110.0), velocity_resolution = 0.1, yawrate_resolution = np.radians(1.0), dt = 0.1, predict_time = 3.0, heading = 0.15, clearance = 1.0, velocity = 1.0, base = self.base)
def __init__(self, base, pose=(0.0, 0.0, 0)): self.point_cloud = [[0, 0]] self.vel = (0.0, 0.0) self.pose = pose self.goal = None self.b = False self.config = dwa.Config(max_speed=+10.0, min_speed=-10.0, max_yawrate=np.radians(40.0), max_accel=15.0, max_dyawrate=np.radians(110.0), velocity_resolution=0.1, yawrate_resolution=np.radians(1.0), dt=0.1, predict_time=3.0, heading=0.15, clearance=0.1, velocity=1.0, base=[-5, -5, 5, 5]) self.count = 0