Share via


Analog Sensor

Glossary Item Box

Robotics Common: Analog Sensor ArrayRobotics Common Overview

See Also Microsoft Robotics Developer Studio Send feedback on this topic

Analog Sensor

Generic Analog Sensor

The Generic Analog Sensor service support analog sensors that measure continuous information. An example of this kind of a sensor is a light sensor which monitors the amount of light over time. Analog sensors are often distinguished from digital sensors which use discrete (discontinuous) values to represent information for input. Often though either approach can be used to provide similar types of information. For example, film cameras are analog devices, while Web cameras are digital devices.

The Generic Analog Sensor service provides two basic operations:

Operation Description
Get Returns the current state of the sensor.
AnalogSensorUpdate Changes the state of a sensor or indicates when the sensor's state as changed.

The state of a generic analog sensor includes several properties.

Name Type Description
HardwareIdentifier int The hardware port that the sensor uses.
NormalizedMeasurement double The normalized input value.
Pose Pose The position and orientation of the sensor.
RawMeasurement double The raw input value from the sensor.
RawMeasurementRange double The upper bound of the raw measurement.
TimeStamp DateTime The timestamp of the sensor reading.

AnalogSensorUpdate can be used as a request to set (change) the state of the sensor, such as its HardwareIdentifier or Pose. It is also available as a notification that provides updates when the 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.

 

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

See Also 

Robotics Common: Analog Sensor ArrayRobotics Common Overview

 

 

© 2012 Microsoft Corporation. All Rights Reserved.