1 #ifndef TAG_CONSTANTVELOCITY_H
2 #define TAG_CONSTANTVELOCITY_H
8 namespace ConstantVelocity {
56 TooN::Vector<State::STATE_DIMENSION>
sigma;
58 TooN::Matrix<State::STATE_DIMENSION>
noise;
70 const TooN::Matrix<State::STATE_DIMENSION> &
getJacobian(
const State & ,
const double dt) {
87 state.
pose = TooN::SE3<>::exp(vel * dt) * state.
pose;
89 double attenuation = pow(
damp, dt);
95 const double dt2 = dt * dt * 0.5;
96 const double dt3 = dt * dt * dt * 0.3333333333333;
97 for(
unsigned int i = 0; i < 6; i++){
99 noise(i+6,i) =
noise(i,i+6) = dt2 * sigma[i+6];
100 noise(i+6, i+6) = dt * sigma[i+6];
106 state.
pose = TooN::SE3<>::exp(innovation.slice<0,6>()) * state.
pose;