Skip to content

Commit 62396a0

Browse files
author
Kenji Miyake
committed
address cpplint errors
Signed-off-by: Kenji Miyake <[email protected]>
1 parent 3d19f0b commit 62396a0

File tree

7 files changed

+14
-9
lines changed

7 files changed

+14
-9
lines changed

common/motion_common/scripts/autogeneration_code_snippets/kinematic_bicycle.snippet.hpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,7 @@ f << dot(x) == u * cos(yaw + beta);
4747
f << dot(y) == u * sin(yaw + beta);
4848
f << dot(yaw) == (u * sin(beta)) / L_r;
4949
f << dot(u) == ax;
50-
#endif // COMMON__MOTION_COMMON__SCRIPTS__AUTOGENERATION_CODE_SNIPPETS__KINEMATIC_BICYCLE_SNIPPET_HPP_
51-
// // NOLINT
50+
51+
// clang-format off
52+
#endif // COMMON__MOTION_COMMON__SCRIPTS__AUTOGENERATION_CODE_SNIPPETS__KINEMATIC_BICYCLE_SNIPPET_HPP_ // NOLINT
53+
// clang-format on

common/motion_common/scripts/autogeneration_code_snippets/linear_tire.snippet.hpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,7 @@ f << dot(v) == ((-u * omega) + ((F_f + F_r) / m));
5656
f << dot(omega) == (((L_f * F_f) - (L_r * F_r)) / I);
5757
f << dot(delta) == delta_dot;
5858
f << dot(ax) == jx;
59-
#endif // COMMON__MOTION_COMMON__SCRIPTS__AUTOGENERATION_CODE_SNIPPETS__LINEAR_TIRE_SNIPPET_HPP_
60-
// NOLINT
59+
60+
// clang-format off
61+
#endif // COMMON__MOTION_COMMON__SCRIPTS__AUTOGENERATION_CODE_SNIPPETS__LINEAR_TIRE_SNIPPET_HPP_ // NOLINT
62+
// clang-format on

control/trajectory_follower/src/mpc.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ namespace control
3333
{
3434
namespace trajectory_follower
3535
{
36-
using namespace std::chrono_literals;
36+
using namespace std::literals::chrono_literals;
3737
using ::motion::motion_common::to_angle;
3838

3939
bool8_t MPC::calculateMPC(

control/trajectory_follower_nodes/src/lateral_controller_node.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ namespace trajectory_follower_nodes
3434
{
3535
namespace
3636
{
37-
using namespace std::chrono_literals;
37+
using namespace std::literals::chrono_literals;
3838

3939
template <typename T>
4040
void update_param(

simulator/simple_planning_simulator/include/simple_planning_simulator/simple_planning_simulator_core.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
#include <memory>
5050
#include <random>
5151
#include <string>
52+
#include <vector>
5253

5354
namespace simulation
5455
{

simulator/simple_planning_simulator/src/simple_planning_simulator/simple_planning_simulator_core.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include <string>
3232
#include <utility>
3333

34-
using namespace std::chrono_literals;
34+
using namespace std::literals::chrono_literals;
3535

3636
namespace
3737
{
@@ -314,7 +314,7 @@ void SimplePlanningSimulator::set_input(const float steer, const float vel, cons
314314
using autoware_auto_vehicle_msgs::msg::GearCommand;
315315
Eigen::VectorXd input(vehicle_model_ptr_->getDimU());
316316

317-
// TODO (Watanabe): The definition of the sign of acceleration in REVERSE mode is different
317+
// TODO(Watanabe): The definition of the sign of acceleration in REVERSE mode is different
318318
// between .auto and proposal.iv, and will be discussed later.
319319
float acc = accel;
320320
if (!current_gear_cmd_ptr_) {

simulator/simple_planning_simulator/test/test_simple_planning_simulator.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ TEST_P(TestSimplePlanningSimulator, TestIdealSteerVel)
260260
rclcpp::shutdown();
261261
}
262262

263-
const std::string VEHICLE_MODEL_LIST[] = {
263+
const char VEHICLE_MODEL_LIST[] = {
264264
"IDEAL_STEER_VEL", "IDEAL_STEER_ACC", "IDEAL_STEER_ACC_GEARED",
265265
"DELAY_STEER_VEL", "DELAY_STEER_ACC", "DELAY_STEER_ACC_GEARED",
266266
};

0 commit comments

Comments
 (0)