Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(mpc_lateral_controller): fix typo #4404

Merged
merged 1 commit into from
Jul 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion control/mpc_lateral_controller/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ament_auto_add_library(${MPC_LAT_CON_LIB} SHARED
src/mpc_trajectory.cpp
src/mpc_utils.cpp
src/qp_solver/qp_solver_osqp.cpp
src/qp_solver/qp_solver_unconstr_fast.cpp
src/qp_solver/qp_solver_unconstraint_fast.cpp
src/vehicle_model/vehicle_model_bicycle_dynamics.cpp
src/vehicle_model/vehicle_model_bicycle_kinematics_no_delay.cpp
src/vehicle_model/vehicle_model_bicycle_kinematics.cpp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef MPC_LATERAL_CONTROLLER__QP_SOLVER__QP_SOLVER_UNCONSTR_FAST_HPP_
#define MPC_LATERAL_CONTROLLER__QP_SOLVER__QP_SOLVER_UNCONSTR_FAST_HPP_
#ifndef MPC_LATERAL_CONTROLLER__QP_SOLVER__QP_SOLVER_UNCONSTRAINT_FAST_HPP_
#define MPC_LATERAL_CONTROLLER__QP_SOLVER__QP_SOLVER_UNCONSTRAINT_FAST_HPP_

#include "mpc_lateral_controller/qp_solver/qp_solver_interface.hpp"

Expand Down Expand Up @@ -55,4 +55,4 @@ class QPSolverEigenLeastSquareLLT : public QPSolverInterface
const Eigen::VectorXd & ub_a, Eigen::VectorXd & u) override;
};
} // namespace autoware::motion::control::mpc_lateral_controller
#endif // MPC_LATERAL_CONTROLLER__QP_SOLVER__QP_SOLVER_UNCONSTR_FAST_HPP_
#endif // MPC_LATERAL_CONTROLLER__QP_SOLVER__QP_SOLVER_UNCONSTRAINT_FAST_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
x_{2} & = Ax_{1} + Bu_{1} + w_{1} \\
& = A(Ax_{0} + Bu_{0} + w_{0}) + Bu_{1} + w_{1} \\
& = A^{2}x_{0} + ABu_{0} + Aw_{0} + Bu_{1} + w_{1} \\
& = A^{2}x_{0} + \begin{bmatrix}AB & B \end{bmatrix}\begin{bmatrix}u_{0}\\ u_{1} \end{bmatrix} + \begin{bmatrix}A & I \end{bmatrix}\begin{bmatrix}w_{0}\\ w_{1} \end{bmatrix} \tag{3}

Check warning on line 53 in control/mpc_lateral_controller/model_predictive_control_algorithm.md

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (bmatrix)

Check warning on line 53 in control/mpc_lateral_controller/model_predictive_control_algorithm.md

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (bmatrix)

Check warning on line 53 in control/mpc_lateral_controller/model_predictive_control_algorithm.md

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (bmatrix)

Check warning on line 53 in control/mpc_lateral_controller/model_predictive_control_algorithm.md

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (bmatrix)

Check warning on line 53 in control/mpc_lateral_controller/model_predictive_control_algorithm.md

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (bmatrix)
\end{align}
$$

Expand Down Expand Up @@ -125,7 +125,7 @@
$$
\begin{align}
J(U) &= (H(Fx_{0}+GU+SW)-Y_{ref})^{T}Q(H(Fx_{0}+GU+SW)-Y_{ref})+(U-U_{ref})^{T}R(U-U_{ref}) \\
& =U^{T}(G^{T}H^{T}QHG+R)U+2\left\{(H(Fx_{0}+SW)-Yref)^{T}QHG-U_{ref}^{T}R\right\}U +(\rm{constant}) \tag{10}

Check warning on line 128 in control/mpc_lateral_controller/model_predictive_control_algorithm.md

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (Yref)
\end{align}
$$

Expand Down Expand Up @@ -182,7 +182,7 @@

There are three expressions in the update equations that are subject to linear approximation: the lateral deviation (or lateral coordinate) $y$, the heading angle (or the heading angle error) $\theta$, and the steering $\delta$. We can make a small angle assumption on the heading angle $\theta$.

In the path tracking problem, the curvature of the trajectory $\kappa_{r}$ is known in advance. At the lower speeds, the Ackermann formula approximates the reference steering angle $\theta_{r}$(this value corresponds to the $U_{ref}$ mentioned above). The Ackerman steering expression can be written as;

Check warning on line 185 in control/mpc_lateral_controller/model_predictive_control_algorithm.md

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (Ackerman)

$$
\begin{align}
Expand All @@ -202,7 +202,7 @@

$$
\begin{align}
\tan\delta &\simeq \tan\delta_{r} + \frac{\text{d}\tan\delta}{\text{d}\delta} \Biggm|_{\delta=\delta_{r}}\Delta\delta \\

Check warning on line 205 in control/mpc_lateral_controller/model_predictive_control_algorithm.md

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (Biggm)
&= \tan \delta_{r} + \frac{1}{\cos^{2}\delta_{r}}\Delta\delta \\
&= \tan \delta_{r} + \frac{1}{\cos^{2}\delta_{r}}\left(\delta-\delta_{r}\right) \\
&= \tan \delta_{r} - \frac{\delta_{r}}{\cos^{2}\delta_{r}} + \frac{1}{\cos^{2}\delta_{r}}\delta
Expand Down Expand Up @@ -344,7 +344,7 @@
\end{align}
$$

Discretisizing $\dot{u}$ as $\left(u_{k} - u_{k-1}\right)/\text{d}t$ and multiply both sides by dt the resulting constraint become linear and convex
Discretizing $\dot{u}$ as $\left(u_{k} - u_{k-1}\right)/\text{d}t$ and multiply both sides by dt the resulting constraint become linear and convex

Check warning on line 347 in control/mpc_lateral_controller/model_predictive_control_algorithm.md

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (Discretizing)

$$
\begin{align}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include "motion_utils/motion_utils.hpp"
#include "mpc_lateral_controller/qp_solver/qp_solver_osqp.hpp"
#include "mpc_lateral_controller/qp_solver/qp_solver_unconstr_fast.hpp"
#include "mpc_lateral_controller/qp_solver/qp_solver_unconstraint_fast.hpp"
#include "mpc_lateral_controller/vehicle_model/vehicle_model_bicycle_dynamics.hpp"
#include "mpc_lateral_controller/vehicle_model/vehicle_model_bicycle_kinematics.hpp"
#include "mpc_lateral_controller/vehicle_model/vehicle_model_bicycle_kinematics_no_delay.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "mpc_lateral_controller/qp_solver/qp_solver_unconstr_fast.hpp"
#include "mpc_lateral_controller/qp_solver/qp_solver_unconstraint_fast.hpp"

#include <Eigen/Dense>

Expand Down
2 changes: 1 addition & 1 deletion control/mpc_lateral_controller/test/test_mpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "gtest/gtest.h"
#include "mpc_lateral_controller/mpc.hpp"
#include "mpc_lateral_controller/qp_solver/qp_solver_osqp.hpp"
#include "mpc_lateral_controller/qp_solver/qp_solver_unconstr_fast.hpp"
#include "mpc_lateral_controller/qp_solver/qp_solver_unconstraint_fast.hpp"
#include "mpc_lateral_controller/vehicle_model/vehicle_model_bicycle_dynamics.hpp"
#include "mpc_lateral_controller/vehicle_model/vehicle_model_bicycle_kinematics.hpp"
#include "mpc_lateral_controller/vehicle_model/vehicle_model_bicycle_kinematics_no_delay.hpp"
Expand Down
Loading