GetSensorReadingsPURPOSEGet the current sensor readings from a robot.
SYNOPSISfunction [sr sn]=GetSensorReadings(R)
DESCRIPTIONGet the current sensor readings from a robot. Returns cell arrays with the current sensor readings (sr) and the associated noise (sn). CROSS-REFERENCE INFORMATIONThis function calls:
SOURCE CODE0001 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 |