Open xcarnd opened 6 years ago
Fixed sigma_0 issue by making the following changes:
sigma_0 = np.identity(3) * np.array([angle_error,velocity_sigma,position_sigma])
state_space_display_predict():
...
initial_state_space=multivariate_normal([y,y_dot], [[sigma_0[2,2],0.0],[0.0,sigma_0[1,1]]])
...
Can confirm had to change q_t and r_t
I came here to submit a bug report and came across this post. I just wasted an hour debugging the same issues as those listed above but it looks like these issues were resolved 7 months ago. Please make sure the changes are getting pushed to current workspaces. Thanks.
In this exercise, the initial value of
sigma
is initialized as:sigma_0 = np.matmul(np.identity(3), >np.array([angle_error,velocity_sigma,position_sigma]))
which results in a 1x3 vector. But
sigma
is the covariance matrix so it shall be a 3x3 matrix.The implementation for
predict
is also incorrect:sigma_bar
is added withself.r_t
, which is the sensor noise matrix (It is correct in the solution notebook btw).Similar problem for
update
(added withself.q_t
instead ofself.r_t
in the student notebook. correct in the solution notebook).