mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-03 03:01:44 +00:00
Fix errors from new cpplint.py (#7105)
This commit is contained in:
@@ -4,6 +4,9 @@
|
||||
|
||||
#include "wpimath/MathShared.h"
|
||||
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
#include <wpi/mutex.h>
|
||||
#include <wpi/timestamp.h>
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
#include "frc/controller/ArmFeedforward.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <limits>
|
||||
|
||||
#include <sleipnir/autodiff/Gradient.hpp>
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
|
||||
#include "frc/estimator/DifferentialDrivePoseEstimator.h"
|
||||
|
||||
#include <vector>
|
||||
|
||||
using namespace frc;
|
||||
|
||||
DifferentialDrivePoseEstimator::DifferentialDrivePoseEstimator(
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
#include "frc/geometry/Pose3d.h"
|
||||
|
||||
#include <cmath>
|
||||
#include <utility>
|
||||
|
||||
#include <Eigen/Core>
|
||||
#include <wpi/json.h>
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
#include <cmath>
|
||||
#include <numbers>
|
||||
#include <string>
|
||||
|
||||
#include <Eigen/Core>
|
||||
#include <Eigen/LU>
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
|
||||
#include "frc/geometry/Transform3d.h"
|
||||
|
||||
#include <utility>
|
||||
|
||||
#include "frc/geometry/Pose3d.h"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
|
||||
#include "frc/geometry/Translation2d.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include <wpi/json.h>
|
||||
|
||||
#include "units/math.h"
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
#include <jni.h>
|
||||
|
||||
#include <exception>
|
||||
#include <vector>
|
||||
|
||||
#include <wpi/jni_util.h>
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
#include "frc/spline/SplineHelper.h"
|
||||
|
||||
#include <cstddef>
|
||||
#include <vector>
|
||||
|
||||
using namespace frc;
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
#include <algorithm>
|
||||
#include <stdexcept>
|
||||
#include <vector>
|
||||
|
||||
#include <wpi/MathExtras.h>
|
||||
#include <wpi/json.h>
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
#include "frc/trajectory/TrajectoryGenerator.h"
|
||||
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include <wpi/print.h>
|
||||
|
||||
|
||||
@@ -28,6 +28,8 @@
|
||||
|
||||
#include "frc/trajectory/TrajectoryParameterizer.h"
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include <fmt/format.h>
|
||||
|
||||
#include "units/math.h"
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
#include "frc/trajectory/TrajectoryUtil.h"
|
||||
|
||||
#include <string>
|
||||
#include <system_error>
|
||||
|
||||
#include <fmt/format.h>
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
|
||||
#include "frc/trajectory/constraint/DifferentialDriveKinematicsConstraint.h"
|
||||
|
||||
#include <utility>
|
||||
|
||||
using namespace frc;
|
||||
|
||||
DifferentialDriveKinematicsConstraint::DifferentialDriveKinematicsConstraint(
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
#include <algorithm>
|
||||
#include <limits>
|
||||
#include <utility>
|
||||
|
||||
#include <wpi/MathExtras.h>
|
||||
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
|
||||
#include "frc/trajectory/proto/TrajectoryProto.h"
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include <wpi/ProtoHelper.h>
|
||||
|
||||
#include "trajectory.pb.h"
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <cstdio>
|
||||
#include <system_error>
|
||||
#include <utility>
|
||||
|
||||
|
||||
@@ -240,11 +240,16 @@ void InteriorPoint(std::span<Variable> decisionVariables,
|
||||
// Error estimate
|
||||
double E_0 = std::numeric_limits<double>::infinity();
|
||||
|
||||
iterationsStartTime = std::chrono::system_clock::now();
|
||||
if (config.diagnostics) {
|
||||
iterationsStartTime = std::chrono::system_clock::now();
|
||||
}
|
||||
|
||||
while (E_0 > config.tolerance &&
|
||||
acceptableIterCounter < config.maxAcceptableIterations) {
|
||||
auto innerIterStartTime = std::chrono::system_clock::now();
|
||||
std::chrono::system_clock::time_point innerIterStartTime;
|
||||
if (config.diagnostics) {
|
||||
innerIterStartTime = std::chrono::system_clock::now();
|
||||
}
|
||||
|
||||
// Check for local equality constraint infeasibility
|
||||
if (IsEqualityLocallyInfeasible(A_e, c_e)) {
|
||||
|
||||
Reference in New Issue
Block a user