Robotics Playground – 360 Range Sensor

Description
This sensor outputs the ranges measured by a distance sensor at multiple angles of rotation. This sensor can detect walls and obstacles within the simulation environments.
The block outputs an array with variable dimensions depending and corresponding to the angular sensor resolution. An angular resolution of 1 degree means the block will output an array of 360 elements each corresponding to the respective ranges at angles from 0 to 360 degrees.
Parameters
Robot ID: Number identifying the robot for which the sensor will be attached to.
Maximum Range: Maximum distance in meters detected by
the sensor
Sensor Position Offset: Position offset in meters relative to the center of the robot
Angular resolution: Angular intervals at which there will be a distance output. This will determine the size of the output.
Example: Angular resolution of 10 degrees corresponds to 36 distance readings (360 deg/10 deg) corresponding to angles 0, 10, 20, 30 deg…. and so on respectively until 360.
Sensor sample time: Time step interval at which the sensor updates the output values