Skip to content

Commit

Permalink
address cpplint errors
Browse files Browse the repository at this point in the history
Signed-off-by: Kenji Miyake <[email protected]>
  • Loading branch information
Kenji Miyake committed Apr 15, 2022
1 parent 3d19f0b commit 62396a0
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,7 @@ f << dot(x) == u * cos(yaw + beta);
f << dot(y) == u * sin(yaw + beta);
f << dot(yaw) == (u * sin(beta)) / L_r;
f << dot(u) == ax;
#endif // COMMON__MOTION_COMMON__SCRIPTS__AUTOGENERATION_CODE_SNIPPETS__KINEMATIC_BICYCLE_SNIPPET_HPP_
// // NOLINT

// clang-format off
#endif // COMMON__MOTION_COMMON__SCRIPTS__AUTOGENERATION_CODE_SNIPPETS__KINEMATIC_BICYCLE_SNIPPET_HPP_ // NOLINT
// clang-format on
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,7 @@ f << dot(v) == ((-u * omega) + ((F_f + F_r) / m));
f << dot(omega) == (((L_f * F_f) - (L_r * F_r)) / I);
f << dot(delta) == delta_dot;
f << dot(ax) == jx;
#endif // COMMON__MOTION_COMMON__SCRIPTS__AUTOGENERATION_CODE_SNIPPETS__LINEAR_TIRE_SNIPPET_HPP_
// NOLINT

// clang-format off
#endif // COMMON__MOTION_COMMON__SCRIPTS__AUTOGENERATION_CODE_SNIPPETS__LINEAR_TIRE_SNIPPET_HPP_ // NOLINT
// clang-format on
2 changes: 1 addition & 1 deletion control/trajectory_follower/src/mpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace control
{
namespace trajectory_follower
{
using namespace std::chrono_literals;
using namespace std::literals::chrono_literals;
using ::motion::motion_common::to_angle;

bool8_t MPC::calculateMPC(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace trajectory_follower_nodes
{
namespace
{
using namespace std::chrono_literals;
using namespace std::literals::chrono_literals;

template <typename T>
void update_param(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
#include <memory>
#include <random>
#include <string>
#include <vector>

namespace simulation
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include <string>
#include <utility>

using namespace std::chrono_literals;
using namespace std::literals::chrono_literals;

namespace
{
Expand Down Expand Up @@ -314,7 +314,7 @@ void SimplePlanningSimulator::set_input(const float steer, const float vel, cons
using autoware_auto_vehicle_msgs::msg::GearCommand;
Eigen::VectorXd input(vehicle_model_ptr_->getDimU());

// TODO (Watanabe): The definition of the sign of acceleration in REVERSE mode is different
// TODO(Watanabe): The definition of the sign of acceleration in REVERSE mode is different
// between .auto and proposal.iv, and will be discussed later.
float acc = accel;
if (!current_gear_cmd_ptr_) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ TEST_P(TestSimplePlanningSimulator, TestIdealSteerVel)
rclcpp::shutdown();
}

const std::string VEHICLE_MODEL_LIST[] = {
const char VEHICLE_MODEL_LIST[] = {
"IDEAL_STEER_VEL", "IDEAL_STEER_ACC", "IDEAL_STEER_ACC_GEARED",
"DELAY_STEER_VEL", "DELAY_STEER_ACC", "DELAY_STEER_ACC_GEARED",
};
Expand Down

0 comments on commit 62396a0

Please sign in to comment.