Exemplo n.º 1
0
 def __init__(self, name=None):
     LaserSensorWithArc.__init__(self, name)
     # set components-specific properties
     self.properties(Visible_arc=True, laser_range=50.0, scan_window=31.500, resolution=0.5)
     # append velodyne mesh, from MORSE_COMPONENTS/sensors/velodyne.blend
     arc = self.create_laser_arc()
     # Select only arc (active)
     bpymorse.select_only(arc)
     # Rotate Arc to scan vertically
     arc.rotation_euler = (math.radians(90), math.radians(12), 0)
     bpymorse.apply_transform(rotation=True)
     self.append_meshes(["VelodyneMesh"])
Exemplo n.º 2
0
 def __init__(self, name=None):
     LaserSensorWithArc.__init__(self, name)
     # set components-specific properties
     self.properties(Visible_arc = True, laser_range = 50.0,
                     scan_window = 31.500, resolution = 0.5)
     # append velodyne mesh, from MORSE_COMPONENTS/sensors/velodyne.blend
     arc = self.create_laser_arc()
     # Select only arc (active)
     bpymorse.select_only(arc)
     # Rotate Arc to scan vertically
     arc.rotation_euler = (math.radians(90), math.radians(12), 0)
     bpymorse.apply_transform(rotation=True)
     self.append_meshes(['VelodyneMesh'])