Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 82ae9c35 authored by SANCHEZ Victor's avatar SANCHEZ Victor
Browse files

modif of noise in raycast sensor

parent 0b09b7d5
Branches
No related tags found
No related merge requests found
......@@ -59,8 +59,7 @@ class RayCastSensor(SensorComponent):
dc.field_of_view = 360 # Range of the lidar in degree
dc.delta_angle = 2. # Angle between two beams of lidar in degree
dc.ray_max_range = 20 # Max distance readable by a given beam
dc.noise = None
dc.noise_ratio = 0.1
dc.noise_ratio = 0
dc.draw_raycast = False
dc.update_raycast_every_step = False
dc.max_raycast_shape = 'square' # can either be a 'circle' or a 'square'
......@@ -159,9 +158,7 @@ class RayCastSensor(SensorComponent):
self.ray_distance_list = []
self.coord_point_rays = []
# Measurement Noise
noise = 0
if self.config.noise :
noise = np.random.random(size=2)*self.config.noise_ratio
noise = np.random.normal(0,1,size=2)*self.config.noise_ratio
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment