Institut de Robòtica i Informàtica Industrial

GetSensorReadings

PURPOSE ^

Get the current sensor readings from a robot.

SYNOPSIS ^

function [sr sn]=GetSensorReadings(R)

DESCRIPTION ^

 Get the current sensor readings from a robot.

 Returns cell arrays with the current sensor readings (sr) and the
 associated noise (sn).

CROSS-REFERENCE INFORMATION ^

This function calls:
  • ReadSensor Returns the sensor reading for time t.
This function is called by:

SOURCE CODE ^

0001 function [sr sn]=GetSensorReadings(R)
0002 % Get the current sensor readings from a robot.
0003 %
0004 % Returns cell arrays with the current sensor readings (sr) and the
0005 % associated noise (sn).
0006 
0007    sr=cell(1,R.nSensors);
0008    sn=cell(1,R.nSensors);
0009    for i=1:R.nSensors
0010      [sr{i} sn{i}]=ReadSensor(R.sensors{i},R.time);
0011    end
0012


Institut de Robòtica i Informàtica Industrial

Generated on Fri 24-Jul-2009 12:32:50 by m2html © 2003