48 COV(3, 3) = COV(2, 2);
50 COV(0, 3) = COV(3, 0) = COV(0, 2);
51 COV(0, 2) = COV(2, 0) = 0;
52 COV(1, 3) = COV(3, 1) = COV(1, 2);
53 COV(1, 2) = COV(2, 1) = 0;
70 COVINV(3, 3) = COVINV(2, 2);
72 COVINV(0, 3) = COVINV(3, 0) = COVINV(0, 2);
73 COVINV(0, 2) = COVINV(2, 0) = 0;
74 COVINV(1, 3) = COVINV(3, 1) = COVINV(1, 2);
75 COVINV(1, 2) = COVINV(2, 1) = 0;
89 for (it1 =
obj->m_particles.begin(), it2 = newObj->
m_particles.begin();
90 it1 !=
obj->m_particles.end(); ++it1, ++it2)
92 it2->log_w = it1->log_w;
106 for (it1 =
obj->begin(), it2 = newObj->
begin(); it1 !=
obj->end();
109 it2->log_w = it1->log_w;
110 it2->val.mean.setFromValues(
111 it1->mean.x(), it1->mean.y(), 0, it1->mean.phi(), 0, 0);
113 it2->val.cov.zeros();
115 it2->val.cov.get_unsafe(0, 0) = it1->cov.get_unsafe(0, 0);
116 it2->val.cov.get_unsafe(1, 1) = it1->cov.get_unsafe(1, 1);
117 it2->val.cov.get_unsafe(3, 3) =
118 it1->cov.get_unsafe(2, 2);
120 it2->val.cov.get_unsafe(0, 1) = it2->val.cov.get_unsafe(1, 0) =
121 it1->cov.get_unsafe(0, 1);
123 it2->val.cov.get_unsafe(0, 3) = it2->val.cov.get_unsafe(3, 0) =
124 it1->cov.get_unsafe(0, 2);
126 it2->val.cov.get_unsafe(1, 3) = it2->val.cov.get_unsafe(3, 1) =
127 it1->cov.get_unsafe(1, 2);
176 x.getAsQuaternion(q_dumm, &dq_dr_sub);
177 J_E2Q_dx.get_unsafe(0, 0) = J_E2Q_dx.get_unsafe(1, 1) =
178 J_E2Q_dx.get_unsafe(2, 2) = 1;
179 J_E2Q_dx.insertMatrix(3, 3, dq_dr_sub);
188 J_E2Q_du.get_unsafe(0, 0) = J_E2Q_du.get_unsafe(1, 1) =
189 J_E2Q_du.get_unsafe(2, 2) = 1;
190 J_E2Q_du.insertMatrix(3, 3, dq_dr_sub);
202 quat_df_dx, quat_df_du);
210 J_Q2E.get_unsafe(0, 0) = J_Q2E.get_unsafe(1, 1) = J_Q2E.get_unsafe(2, 2) =
226 dr_dq_sub.multiply(dr_dq_sub_aux, dnorm_dq);
228 J_Q2E.insertMatrix(3, 3, dr_dq_sub);
234 df_dx.multiply_ABC(J_Q2E, quat_df_dx, J_E2Q_dx);
235 df_du.multiply_ABC(J_Q2E, quat_df_du, J_E2Q_du);