Robotics Playground – Distance Sensor

Description

This block returns the distance in meters to a nearby object such as walls and obstacles. Several sensor properties can be adjusted from the block mask, but default values can also be used.

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

Minimum Range: Minimum distance in meters detected by the sensor

Resolution: Smallest distance increment in meters that can be detected by the sensor

Sensor Position Offset: Position offset in meters relative to the center of the robot

Sensor Orientation Offset: Orientation offset in degrees relative to the forward-facing position of the robot

Sensor sample time: Time step interval at which the sensor updates the output values