if (model_ == "CTRA") {
double px_pre, py_pre, velo_pre, yaw_pre, yawd_pre, a_pre;
if (fabs(yawd_k) > 0.001) {
px_pre = px_k + ((velo_k * yawd_k + a_k * yawd_k * deltat) * std::sin(yaw_k + yawd_k * deltat) +
a_k * std::cos(yaw_k + yawd_k * deltat) - velo_k * yawd_k * std::sin(yaw_k) -
a_k * std::cos(yaw_k)) / (yawd_k * yawd_k);
py_pre = py_k + ((-velo_k * yawd_k - a_k * yawd_k * deltat) * std::cos(yaw_k + yawd_k * deltat) +
a_k * std::sin(yaw_k + yawd_k * deltat) + velo_k * yawd_k * std::cos(yaw_k) -
a_k * std::sin(yaw_k)) / (yawd_k * yawd_k);
}
算法-卡尔曼运动模型公式推导CTRA
最新推荐文章于 2024-08-29 16:37:54 发布