Skip to content

Commit

Permalink
fix(cpplint): include what you use - planning (#9570)
Browse files Browse the repository at this point in the history
Signed-off-by: M. Fatih Cırıt <[email protected]>
  • Loading branch information
xmfcx authored Dec 4, 2024
1 parent d743658 commit 1e5077c
Show file tree
Hide file tree
Showing 200 changed files with 471 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
#include <Eigen/src/Core/util/Constants.h>
#include <tf2/utils.h>

#include <algorithm>
#include <cmath>
#include <string>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@

#include <gtest/gtest.h>

#include <memory>
#include <string>
#include <vector>

using autoware::costmap_generator::CostmapGenerator;
using tier4_planning_msgs::msg::Scenario;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

#include <gtest/gtest.h>

#include <vector>

namespace
{
grid_map::GridMap construct_gridmap(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
#include <gtest/gtest.h>
#include <tf2/utils.h>

#include <memory>

namespace
{
geometry_msgs::msg::Point32 toPoint32(const geometry_msgs::msg::Pose & pose)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

#include <gtest/gtest.h>

#include <string>

namespace autoware::costmap_generator
{
using pointcloud = pcl::PointCloud<pcl::PointXYZ>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@

#include <autoware/motion_utils/trajectory/trajectory.hpp>

#include <deque>
#include <vector>

namespace autoware::freespace_planner::utils
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
#include <geometry_msgs/msg/pose.h>
#include <gtest/gtest.h>

#include <limits>
#include <memory>
#include <utility>
#include <vector>

using autoware::freespace_planner::FreespacePlannerNode;
using autoware_planning_msgs::msg::Trajectory;
using autoware_planning_msgs::msg::TrajectoryPoint;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include <gtest/gtest.h>

#include <memory>
#include <vector>

using autoware::freespace_planner::FreespacePlannerNode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <gtest/gtest.h>

#include <deque>
#include <memory>
#include <vector>

using autoware::freespace_planner::utils::Odometry;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>

#include <string>
#include <vector>

namespace autoware::freespace_planning_algorithms
{
struct PlannerWaypointsVector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
#include <autoware/universe_utils/geometry/geometry.hpp>
#include <autoware/universe_utils/math/normalization.hpp>

#include <algorithm>
#include <iostream>
#include <limits>
#include <vector>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
#include <tf2/utils.h>

#include <limits>
#include <memory>
#include <queue>
#include <utility>

#ifdef ROS_DISTRO_GALACTIC
#include <tf2_geometry_msgs/tf2_geometry_msgs.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

#include "autoware/freespace_planning_algorithms/kinematic_bicycle_model.hpp"

#include <vector>

namespace autoware::freespace_planning_algorithms
{
rrtstar_core::Pose poseMsgToPose(const geometry_msgs::msg::Pose & pose_msg)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@

#include <nlohmann/json.hpp>

#include <algorithm>
#include <fstream>
#include <functional>
#include <memory>
#include <queue>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>

// cspell: ignore rsspace
// In this case, RSSpace means "Reeds Shepp state Space"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
#include <algorithm>
#include <array>
#include <fstream>
#include <iostream>
#include <memory>
#include <string>
#include <unordered_map>
#include <vector>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

#include <iostream>
#include <stack>
#include <vector>

namespace autoware::freespace_planning_algorithms::rrtstar_core
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <lanelet2_core/geometry/Lanelet.h>

#include <limits>
#include <vector>

namespace autoware::mission_planner::lanelet2
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@
#include <lanelet2_core/geometry/LineString.h>

#include <algorithm>
#include <memory>
#include <string>
#include <utility>
#include <vector>

namespace autoware::mission_planner
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
#include <lanelet2_core/primitives/Point.h>
#include <tf2/utils.h>

#include <memory>
#include <string>
#include <vector>

using autoware::universe_utils::calcOffsetPose;
using autoware::universe_utils::createQuaternionFromRPY;
using autoware_planning_msgs::msg::LaneletRoute;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#include <lanelet2_core/primitives/LineString.h>
#include <lanelet2_core/primitives/Point.h>

#include <vector>

using autoware::mission_planner::lanelet2::convert_linear_ring_to_polygon;
using autoware::mission_planner::lanelet2::convertBasicPoint3dToPose;
using autoware::mission_planner::lanelet2::convertCenterlineToPoints;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

#include "autoware/objects_of_interest_marker_interface/marker_utils.hpp"

#include <string>

namespace autoware::objects_of_interest_marker_interface::marker_utils
{
using geometry_msgs::msg::Point;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#include <autoware/universe_utils/math/constants.hpp>
#include <autoware/universe_utils/math/trigonometry.hpp>

#include <string>

namespace autoware::objects_of_interest_marker_interface
{
using autoware_perception_msgs::msg::Shape;
Expand Down
7 changes: 7 additions & 0 deletions planning/autoware_obstacle_cruise_planner/src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@

#include <algorithm>
#include <chrono>
#include <limits>
#include <memory>
#include <string>
#include <tuple>
#include <unordered_map>
#include <utility>
#include <vector>

namespace
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
#include "autoware/universe_utils/geometry/geometry.hpp"
#include "autoware/universe_utils/ros/marker_helper.hpp"

#include <algorithm>
#include <limits>
#include <memory>
#include <tuple>
#include <vector>

#ifdef ROS_DISTRO_GALACTIC
#include <tf2_geometry_msgs/tf2_geometry_msgs.h>
#else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

#include <Eigen/Core>

#include <algorithm>
#include <iostream>
#include <vector>

VelocityOptimizer::VelocityOptimizer(
const double max_s_weight, const double max_v_weight, const double over_s_safety_weight,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@

#include "tier4_planning_msgs/msg/velocity_limit.hpp"

#include <algorithm>
#include <memory>
#include <string>
#include <vector>

using autoware::signal_processing::LowpassFilter1d;

namespace
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@
#include <boost/geometry/algorithms/distance.hpp>
#include <boost/geometry/strategies/strategies.hpp>

#include <algorithm>
#include <iostream>
#include <optional>
#include <string>
#include <utility>
#include <vector>

namespace
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
#include "autoware/universe_utils/geometry/boost_polygon_utils.hpp"
#include "autoware/universe_utils/geometry/geometry.hpp"

#include <algorithm>
#include <limits>
#include <utility>
#include <vector>

namespace
{
PointWithStamp calcNearestCollisionPoint(
Expand Down
4 changes: 4 additions & 0 deletions planning/autoware_obstacle_cruise_planner/src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
#include "autoware/object_recognition_utils/predicted_path_utils.hpp"
#include "autoware/universe_utils/ros/marker_helper.hpp"

#include <limits>
#include <string>
#include <vector>

namespace obstacle_cruise_utils
{
namespace
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include <gtest/gtest.h>

#include <memory>
#include <vector>

using autoware::motion_planning::ObstacleCruisePlannerNode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@

#include <gtest/gtest.h>

#include <string>
#include <vector>

StopObstacle generate_stop_obstacle(uint8_t label, double dist)
{
const std::string uuid{};
Expand Down
2 changes: 2 additions & 0 deletions planning/autoware_obstacle_stop_planner/src/debug_marker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#include <autoware/universe_utils/geometry/geometry.hpp>
#include <autoware/universe_utils/ros/marker_helper.hpp>

#include <string>

#ifdef ROS_DISTRO_GALACTIC
#include <tf2_geometry_msgs/tf2_geometry_msgs.h>
#else
Expand Down
3 changes: 3 additions & 0 deletions planning/autoware_obstacle_stop_planner/src/planner_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@

#include <algorithm>
#include <limits>
#include <map>
#include <string>
#include <utility>

namespace autoware::motion_planning
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include <gtest/gtest.h>

#include <memory>
#include <vector>

using autoware::motion_planning::ObstacleStopPlannerNode;
Expand Down
3 changes: 3 additions & 0 deletions planning/autoware_path_optimizer/src/debug_marker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@

#include "visualization_msgs/msg/marker_array.hpp"

#include <string>
#include <vector>

namespace autoware::path_optimizer
{
using autoware::universe_utils::appendMarkerArray;
Expand Down
4 changes: 4 additions & 0 deletions planning/autoware_path_optimizer/src/mpt_optimizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@
#include <algorithm>
#include <chrono>
#include <limits>
#include <memory>
#include <optional>
#include <string>
#include <tuple>
#include <utility>
#include <vector>

namespace autoware::path_optimizer
{
Expand Down
3 changes: 3 additions & 0 deletions planning/autoware_path_optimizer/src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
#include <chrono>
#include <iostream>
#include <limits>
#include <memory>
#include <string>
#include <vector>

namespace autoware::path_optimizer
{
Expand Down
1 change: 1 addition & 0 deletions planning/autoware_path_optimizer/src/replan_checker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "autoware/universe_utils/geometry/geometry.hpp"
#include "autoware/universe_utils/ros/update_param.hpp"

#include <memory>
#include <vector>

namespace autoware::path_optimizer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

#include "autoware/path_optimizer/mpt_optimizer.hpp"

#include <vector>

namespace autoware::path_optimizer
{
// state equation: x = B u + W (u includes x_0)
Expand Down
Loading

0 comments on commit 1e5077c

Please sign in to comment.