Skip to content

Commit

Permalink
Fix cpplint include order errors (#2860)
Browse files Browse the repository at this point in the history
* fix nav2_smac_planner cpplint

* fix dwb_core cpplint

* fix nav2_map_server cpplint

* fix nav2_waypoint_follower include order

* fix nav_2d_utils include order
  • Loading branch information
Aposhian authored Mar 22, 2022
1 parent 95e76c6 commit 1c161c4
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 16 deletions.
7 changes: 5 additions & 2 deletions nav2_dwb_controller/dwb_core/src/trajectory_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,13 @@
*/

#include <dwb_core/trajectory_utils.hpp>
#include <dwb_core/exceptions.hpp>
#include <rclcpp/duration.hpp>

#include <cmath>

#include <rclcpp/duration.hpp>

#include <dwb_core/exceptions.hpp>

namespace dwb_core
{
const geometry_msgs::msg::Pose2D & getClosestPose(
Expand Down
7 changes: 5 additions & 2 deletions nav2_dwb_controller/nav_2d_utils/src/conversions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,20 @@
*/

#include "nav_2d_utils/conversions.hpp"

#include <vector>
#include <string>

#include <geometry_msgs/msg/pose.hpp>
#include <geometry_msgs/msg/pose2_d.hpp>
#include <geometry_msgs/msg/pose_stamped.hpp>
#include <geometry_msgs/msg/twist.hpp>
#include <tf2_geometry_msgs/tf2_geometry_msgs.hpp>
#include <vector>
#include <string>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpedantic"
#include "tf2/utils.h"
#pragma GCC diagnostic pop

#include "nav2_util/geometry_utils.hpp"

namespace nav_2d_utils
Expand Down
7 changes: 5 additions & 2 deletions nav2_map_server/test/component/test_map_saver_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.


#include <gtest/gtest.h>
#include <experimental/filesystem>
#include <rclcpp/rclcpp.hpp>

#include <string>
#include <memory>
#include <experimental/filesystem> // NOLINT

#include <rclcpp/rclcpp.hpp>

#include "test_constants/test_constants.h"
#include "nav2_map_server/map_saver.hpp"
Expand Down
6 changes: 4 additions & 2 deletions nav2_map_server/test/component/test_map_server_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@
// limitations under the License.

#include <gtest/gtest.h>
#include <experimental/filesystem>
#include <rclcpp/rclcpp.hpp>

#include <string>
#include <memory>
#include <experimental/filesystem> // NOLINT

#include <rclcpp/rclcpp.hpp>

#include "test_constants/test_constants.h"
#include "nav2_map_server/map_server.hpp"
Expand Down
4 changes: 2 additions & 2 deletions nav2_smac_planner/include/nav2_smac_planner/node_lattice.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
#ifndef NAV2_SMAC_PLANNER__NODE_LATTICE_HPP_
#define NAV2_SMAC_PLANNER__NODE_LATTICE_HPP_

#include <nlohmann/json.hpp>

#include <math.h>

#include <vector>
#include <cmath>
#include <iostream>
Expand All @@ -28,6 +27,7 @@
#include <limits>
#include <string>

#include <nlohmann/json.hpp>
#include "ompl/base/StateSpace.h"
#include "angles/angles.h"

Expand Down
6 changes: 4 additions & 2 deletions nav2_waypoint_follower/plugins/input_at_waypoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include <pluginlib/class_list_macros.hpp>
#include "nav2_waypoint_follower/plugins/input_at_waypoint.hpp"

#include <string>
#include <exception>

#include <pluginlib/class_list_macros.hpp>

#include "nav2_util/node_utils.hpp"
#include "nav2_waypoint_follower/plugins/input_at_waypoint.hpp"

namespace nav2_waypoint_follower
{
Expand Down
5 changes: 3 additions & 2 deletions nav2_waypoint_follower/plugins/photo_at_waypoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include <pluginlib/class_list_macros.hpp>
#include "nav2_waypoint_follower/plugins/photo_at_waypoint.hpp"

#include <string>
#include <memory>

#include <pluginlib/class_list_macros.hpp>

#include "nav2_util/node_utils.hpp"
#include "nav2_waypoint_follower/plugins/photo_at_waypoint.hpp"

namespace nav2_waypoint_follower
{
Expand Down
6 changes: 4 additions & 2 deletions nav2_waypoint_follower/plugins/wait_at_waypoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include <pluginlib/class_list_macros.hpp>
#include "nav2_waypoint_follower/plugins/wait_at_waypoint.hpp"

#include <string>
#include <exception>

#include <pluginlib/class_list_macros.hpp>

#include "nav2_util/node_utils.hpp"
#include "nav2_waypoint_follower/plugins/wait_at_waypoint.hpp"

namespace nav2_waypoint_follower
{
Expand Down

0 comments on commit 1c161c4

Please sign in to comment.