Analog Sensor Array

Microsoft Robotics

Glossary Item Box

Microsoft Robotics Developer StudioSend feedback on this topic

Analog Sensor Array

Generic Analog Sensor Array

The Generic Analog Sensor Array service is similar to the Generic Analog Sensor service in that it enables you to access data from analog sensors. However, rather than having to access each sensor individually you can access them as a set. This is typically more efficiently when you have a collection of the same type of sensor.

The Generic Analog Sensor Array service provides two basic operations:

GetReturns the current state of an analog sensor.
AnalogSensorsReplaceChanges the state of a sensor in the sensor array or indicates when the sensor's state has changed.

The state of a Generic Analog Sensor Array is a list of the states of the sensors in the array. By indexing through the array you can access the state of an individual sensor. The properties of the state of an individual sensor in the array include:

HardwareIdentifierintThe hardware port that the sensor uses.
NormalizedMeasurementdoubleThe normalized input value.
PosePoseThe position and orientation of the sensor.
RawMeasurementdoubleThe raw input value from the sensor.
RawMeasurementRangedoubleThe upper bound of the raw measurement.
TimeStampDateTimeThe timestamp of the sensor reading.

AnalogSensorsReplace can be used as a request to set (or change) the state of a sensor in the array, such as its HardwareIdentifier or Pose. It is also available as a notification that provides updates when a sensor's state changes, providing a reading of its RawMeasurement and its NormalizedMeasurement, the latter being a value from 0 to 1, calculated by dividing the RawMeasurement by the RawMeasurementRange. You can also use Get to request a explicitly request the current state of the sensor array.

Updated information might be available online in the MSDN Library page:
Analog Sensor Array

Robotics Common: Analog SensorRobotics Common Overview



© 2012 Microsoft Corporation. All Rights Reserved.