GetOdometryPURPOSEGet the odometry readings witht the different available sensors.
SYNOPSISfunction [sr sn]=GetOdometry(R)
DESCRIPTIONGet the odometry readings witht the different available sensors. Returns cell arrays with the current odometry readings (sr) and the associated noise (sn) for the available odometry sensors. CROSS-REFERENCE INFORMATIONThis function calls:
SOURCE CODE0001 function [sr sn]=GetOdometry(R) 0002 % Get the odometry readings witht the different available sensors. 0003 % 0004 % Returns cell arrays with the current odometry readings (sr) and the 0005 % associated noise (sn) for the available odometry sensors. 0006 0007 k=1; 0008 sr={}; 0009 sn={}; 0010 for i=1:R.nSensors 0011 if isa(R.sensors{i},'RelPosSensor') 0012 [r n]=ReadSensor(R.sensors{i},R.time); 0013 sr{k}=r; 0014 sn{k}=n; 0015 k=k+1; 0016 end 0017 end |