Skip to content

Commit

Permalink
Delete and remove all references to Util.h
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnmp committed Oct 27, 2023
1 parent 5ec6917 commit 7d336e5
Show file tree
Hide file tree
Showing 21 changed files with 15 additions and 26 deletions.
1 change: 0 additions & 1 deletion src/Rover.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "Constants.h"
#include "Globals.h"
#include "Util.h"
#include "log.h"
#include "navtypes.h"
#include "network/MissionControlProtocol.h"
Expand Down
7 changes: 0 additions & 7 deletions src/Util.h

This file was deleted.

1 change: 1 addition & 0 deletions src/commands/DriveToWaypointCommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "../navtypes.h"
#include "../world_interface/data.h"
#include "CommandBase.h"
#include "../utils/time.h"

#include <chrono>
#include <optional>
Expand Down
2 changes: 1 addition & 1 deletion src/control/JacobianVelController.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "../Util.h"
#include "../utils/time.h"
#include "../filters/StateSpaceUtil.h"
#include "../navtypes.h"
#include "../utils/math.h"
Expand Down
1 change: 0 additions & 1 deletion src/control/PIDControl.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once

#include "../Util.h"
#include "../world_interface/data.h"

#include <chrono>
Expand Down
1 change: 1 addition & 0 deletions src/control/PlanarArmController.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "../kinematics/PlanarArmKinematics.h"
#include "../navtypes.h"
#include "../world_interface/data.h"
#include "../utils/time.h"

#include <array>
#include <initializer_list>
Expand Down
2 changes: 1 addition & 1 deletion src/control/TrapezoidalVelocityProfile.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#pragma once

#include "../Util.h"
#include "../navtypes.h"
#include "../world_interface/data.h"
#include "../utils/time.h"

#include <array>
#include <cmath>
Expand Down
2 changes: 1 addition & 1 deletion src/filters/FullPoseEstimator.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "FullPoseEstimator.h"

#include "../Util.h"
#include "../utils/transform.h"
#include "../navtypes.h"

#include <functional>
Expand Down
2 changes: 1 addition & 1 deletion src/filters/PoseEstimator.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "PoseEstimator.h"

#include "../Util.h"
#include "../utils/transform.h"
#include "../navtypes.h"

using namespace navtypes;
Expand Down
2 changes: 1 addition & 1 deletion src/filters/PoseEstimatorLinear.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "PoseEstimatorLinear.h"

#include "../Util.h"
#include "../utils/transform.h"

using util::toPose;
using util::toTransform;
Expand Down
2 changes: 1 addition & 1 deletion src/filters/pose_graph/friendly_graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include "../../Constants.h"
#include "../../navtypes.h"
#include "../../Util.h"
#include "../../utils/transform.h"

#include <iostream>
#include <vector>
Expand Down
2 changes: 1 addition & 1 deletion src/kinematics/DiffDriveKinematics.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "DiffDriveKinematics.h"

#include "../Util.h"
#include "../utils/transform.h"
using namespace navtypes;
using util::toTransformRotateFirst;

Expand Down
2 changes: 1 addition & 1 deletion src/kinematics/SwerveDriveKinematics.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "SwerveDriveKinematics.h"

#include "../Util.h"
#include "../utils/transform.h"

#include <Eigen/QR>
namespace kinematics {
Expand Down
3 changes: 2 additions & 1 deletion src/planning/plan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
#include "plan.h"

#include "../Constants.h"
#include "../Util.h"
#include "../utils/transform.h"
#include "../utils/ScopedTimer.h"
#include "../log.h"

#include <iostream>
Expand Down
1 change: 0 additions & 1 deletion src/world_interface/data.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once

#include "../Util.h"
#include "../navtypes.h"

#include <bitset>
Expand Down
2 changes: 1 addition & 1 deletion src/world_interface/kinematic_common_interface.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "../Constants.h"
#include "../Globals.h"
#include "../Util.h"
#include "../utils/transform.h"
#include "../kinematics/DiffDriveKinematics.h"
#include "../log.h"
#include "../navtypes.h"
Expand Down
1 change: 0 additions & 1 deletion src/world_interface/real_world_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "../CAN/CANUtils.h"
#include "../Constants.h"
#include "../Globals.h"
#include "../Util.h"
#include "../ardupilot/ArduPilotInterface.h"
#include "../camera/Camera.h"
#include "../gps/usb_gps/read_usb_gps.h"
Expand Down
3 changes: 2 additions & 1 deletion src/world_interface/simulator_interface.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "../Constants.h"
#include "../Globals.h"
#include "../Util.h"
#include "../utils/transform.h"
#include "../utils/core.h"
#include "../ar/read_landmarks.h"
#include "../base64/base64_img.h"
#include "../camera/Camera.h"
Expand Down
2 changes: 0 additions & 2 deletions tests/util/UtilTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

#include <chrono>

#include "../../src/Util.h"

using namespace Catch::literals;
using namespace util;
using namespace std::chrono_literals;
Expand Down
1 change: 0 additions & 1 deletion tests/worldmap/GlobalMapTest.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "../../src/worldmap/GlobalMap.h"
#include "../../src/navtypes.h"
#include "../../src/Util.h"

#include <iostream>
#include <cmath>
Expand Down
1 change: 0 additions & 1 deletion tests/worldmap/TrICPTest.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "../../src/worldmap/TrICP.h"
#include "../../src/Util.h"

#include <Eigen/LU>
#include <iostream>
Expand Down

0 comments on commit 7d336e5

Please sign in to comment.