Skip to content

Commit

Permalink
Committing clang-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Clang Robot committed Jan 30, 2024
1 parent fef9244 commit 995a071
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
9 changes: 4 additions & 5 deletions vortex-filtering/include/vortex_filtering/filters/ukf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ template <models::concepts::DynamicModel DynModT, models::concepts::SensorModel
using Gauss_x = prob::MultiVarGauss<N_DIM_x>;
using Gauss_z = prob::MultiVarGauss<N_DIM_z>;

static constexpr int N_DIM_a = N_DIM_x + N_DIM_v + N_DIM_w; // Augmented state dimension
static constexpr size_t N_SIGMA_POINTS = 2 * N_DIM_a + 1; // Number of sigma points
static constexpr int N_DIM_a = N_DIM_x + N_DIM_v + N_DIM_w; // Augmented state dimension
static constexpr size_t N_SIGMA_POINTS = 2 * N_DIM_a + 1; // Number of sigma points

using Vec_a = Eigen::Vector<double, N_DIM_a>; // Augmented state vector
using Mat_aa = Eigen::Matrix<double, N_DIM_a, N_DIM_a>; // Augmented state covariance matrix
using Vec_a = Eigen::Vector<double, N_DIM_a>; // Augmented state vector
using Mat_aa = Eigen::Matrix<double, N_DIM_a, N_DIM_a>; // Augmented state covariance matrix
using Mat_x2ap1 = Eigen::Matrix<double, N_DIM_x, N_SIGMA_POINTS>; // Matrix for sigma points of x
using Mat_z2ap1 = Eigen::Matrix<double, N_DIM_z, N_SIGMA_POINTS>; // Matrix for sigma points of z
using Mat_a2ap1 = Eigen::Matrix<double, N_DIM_a, N_SIGMA_POINTS>; // Matrix for sigma points of a
Expand Down Expand Up @@ -100,7 +100,6 @@ template <models::concepts::DynamicModel DynModT, models::concepts::SensorModel
return W_c;
}();


UKF() = delete;

private:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ template <size_t n_dim_x, size_t n_dim_u = n_dim_x, size_t n_dim_v = n_dim_x> cl
Gauss_v v = {Vec_v::Zero(), Q_d(dt, x)};
return f_d(dt, x, u, v.sample(gen));
}

};

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ class Poisson {
* @param x
* @return double factorial
*/
static constexpr double factorial(int x)
{
return (x == 1 || x == 0) ? 1 : factorial(x - 1) * x;
}
static constexpr double factorial(int x) { return (x == 1 || x == 0) ? 1 : factorial(x - 1) * x; }
};

} // namespace vortex::prob

0 comments on commit 995a071

Please sign in to comment.