1 function [xhat,yhat,F,H]=compute_ekf_sym(xhat_1,
u_1)
4 % Copyright: (C) 2012 Department of Robotics Brain and Cognitive Sciences - Istituto Italiano di Tecnologia
5 % Author: Ugo Pattacini
6 % CopyPolicy: Released under the terms of the GNU GPL v2.0.
14 Ad=[1 (1-exp(-x3*T))/x3; 0 exp(-x3*T)];
15 Bd=
x4*[(exp(-x3*T)+x3*T-1)/(x3*x3); (1-exp(-x3*T))/x3];
17 A_aug=[Ad zeros(2,2); zeros(2,2) eye(2,2)];
29 x2=subs(
x2,xhat_1(2));
30 x3=subs(
x3,xhat_1(3));
31 x4=subs(
x4,xhat_1(4));