Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
Change header extension from .h to .hpp
Browse files Browse the repository at this point in the history
.h is typically for C headers, while .hpp is typically for C++ headers.
  • Loading branch information
calcmogul committed Jun 21, 2024
1 parent c822702 commit 4a1c653
Show file tree
Hide file tree
Showing 58 changed files with 171 additions and 182 deletions.
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ fn main() {
println!("cargo:rustc-link-lib=fmt");
}

println!("cargo:rerun-if-changed=src/trajoptlibrust.h");
println!("cargo:rerun-if-changed=src/trajoptlibrust.hpp");
println!("cargo:rerun-if-changed=src/trajoptlibrust.cpp");
println!("cargo:rerun-if-changed=src/lib.rs");
}
24 changes: 12 additions & 12 deletions examples/Swerve/src/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
#include <numbers>
#include <vector>

#include <trajopt/OptimalTrajectoryGenerator.h>
#include <trajopt/constraint/Constraint.h>
#include <trajopt/constraint/TranslationConstraint.h>
#include <trajopt/constraint/holonomic/HolonomicConstraint.h>
#include <trajopt/drivetrain/SwerveDrivetrain.h>
#include <trajopt/obstacle/Obstacle.h>
#include <trajopt/path/InitialGuessPoint.h>
#include <trajopt/path/Path.h>
#include <trajopt/path/SwervePathBuilder.h>
#include <trajopt/set/ConeSet2d.h>
#include <trajopt/solution/SwerveSolution.h>
#include <trajopt/trajectory/HolonomicTrajectory.h>
#include <trajopt/OptimalTrajectoryGenerator.hpp>
#include <trajopt/constraint/Constraint.hpp>
#include <trajopt/constraint/TranslationConstraint.hpp>
#include <trajopt/constraint/holonomic/HolonomicConstraint.hpp>
#include <trajopt/drivetrain/SwerveDrivetrain.hpp>
#include <trajopt/obstacle/Obstacle.hpp>
#include <trajopt/path/InitialGuessPoint.hpp>
#include <trajopt/path/Path.hpp>
#include <trajopt/path/SwervePathBuilder.hpp>
#include <trajopt/set/ConeSet2d.hpp>
#include <trajopt/solution/SwerveSolution.hpp>
#include <trajopt/trajectory/HolonomicTrajectory.hpp>

int main() {
using namespace trajopt;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

#include <string>

#include "trajopt/SymbolExports.h"
#include "trajopt/SymbolExports.hpp"
#include "trajopt/expected"
#include "trajopt/path/SwervePathBuilder.h"
#include "trajopt/solution/SwerveSolution.h"
#include "trajopt/path/SwervePathBuilder.hpp"
#include "trajopt/solution/SwerveSolution.hpp"

namespace trajopt {

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

#pragma once

#include "trajopt/SymbolExports.h"
#include "trajopt/set/IntervalSet1d.h"
#include "trajopt/SymbolExports.hpp"
#include "trajopt/set/IntervalSet1d.hpp"

namespace trajopt {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

#include <variant>

#include "trajopt/constraint/HeadingConstraint.h"
#include "trajopt/constraint/LinePointConstraint.h"
#include "trajopt/constraint/PointLineConstraint.h"
#include "trajopt/constraint/PointPointConstraint.h"
#include "trajopt/constraint/TranslationConstraint.h"
#include "trajopt/constraint/HeadingConstraint.hpp"
#include "trajopt/constraint/LinePointConstraint.hpp"
#include "trajopt/constraint/PointLineConstraint.hpp"
#include "trajopt/constraint/PointPointConstraint.hpp"
#include "trajopt/constraint/TranslationConstraint.hpp"

namespace trajopt {

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

#pragma once

#include "trajopt/SymbolExports.h"
#include "trajopt/set/IntervalSet1d.h"
#include "trajopt/SymbolExports.hpp"
#include "trajopt/set/IntervalSet1d.hpp"

namespace trajopt {

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

#pragma once

#include "trajopt/SymbolExports.h"
#include "trajopt/set/IntervalSet1d.h"
#include "trajopt/SymbolExports.hpp"
#include "trajopt/set/IntervalSet1d.hpp"

namespace trajopt {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#pragma once

#include "trajopt/SymbolExports.h"
#include "trajopt/SymbolExports.hpp"

namespace trajopt {

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

#pragma once

#include "trajopt/SymbolExports.h"
#include "trajopt/set/IntervalSet1d.h"
#include "trajopt/SymbolExports.hpp"
#include "trajopt/set/IntervalSet1d.hpp"

namespace trajopt {

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

#pragma once

#include "trajopt/SymbolExports.h"
#include "trajopt/set/IntervalSet1d.h"
#include "trajopt/SymbolExports.hpp"
#include "trajopt/set/IntervalSet1d.hpp"

namespace trajopt {

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

#pragma once

#include "trajopt/SymbolExports.h"
#include "trajopt/set/Set2d.h"
#include "trajopt/SymbolExports.hpp"
#include "trajopt/set/Set2d.hpp"

namespace trajopt {

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

#pragma once

#include "trajopt/SymbolExports.h"
#include "trajopt/set/IntervalSet1d.h"
#include "trajopt/SymbolExports.hpp"
#include "trajopt/set/IntervalSet1d.hpp"

namespace trajopt {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

#pragma once

#include "trajopt/constraint/AngularVelocityConstraint.h"
#include "trajopt/constraint/Constraint.h"
#include "trajopt/constraint/differential/DifferentialCentripetalAccelerationConstraint.h"
#include "trajopt/constraint/differential/DifferentialTangentialVelocityConstraint.h"
#include "trajopt/util/VariantCat.h"
#include "trajopt/constraint/AngularVelocityConstraint.hpp"
#include "trajopt/constraint/Constraint.hpp"
#include "trajopt/constraint/differential/DifferentialCentripetalAccelerationConstraint.hpp"
#include "trajopt/constraint/differential/DifferentialTangentialVelocityConstraint.hpp"
#include "trajopt/util/VariantCat.hpp"

namespace trajopt {

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

#pragma once

#include "trajopt/SymbolExports.h"
#include "trajopt/set/IntervalSet1d.h"
#include "trajopt/SymbolExports.hpp"
#include "trajopt/set/IntervalSet1d.hpp"

namespace trajopt {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

#pragma once

#include "trajopt/constraint/AngularVelocityConstraint.h"
#include "trajopt/constraint/Constraint.h"
#include "trajopt/constraint/PointAtConstraint.h"
#include "trajopt/constraint/holonomic/HolonomicVelocityConstraint.h"
#include "trajopt/util/VariantCat.h"
#include "trajopt/constraint/AngularVelocityConstraint.hpp"
#include "trajopt/constraint/Constraint.hpp"
#include "trajopt/constraint/PointAtConstraint.hpp"
#include "trajopt/constraint/holonomic/HolonomicVelocityConstraint.hpp"
#include "trajopt/util/VariantCat.hpp"

namespace trajopt {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

#pragma once

#include "trajopt/SymbolExports.h"
#include "trajopt/constraint/Constraint.h"
#include "trajopt/set/Set2d.h"
#include "trajopt/SymbolExports.hpp"
#include "trajopt/constraint/Constraint.hpp"
#include "trajopt/set/Set2d.hpp"

namespace trajopt {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#pragma once

#include "trajopt/SymbolExports.h"
#include "trajopt/SymbolExports.hpp"

namespace trajopt {

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

#include <vector>

#include "trajopt/SymbolExports.h"
#include "trajopt/drivetrain/SwerveModule.h"
#include "trajopt/SymbolExports.hpp"
#include "trajopt/drivetrain/SwerveModule.hpp"

namespace trajopt {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#pragma once

#include "trajopt/SymbolExports.h"
#include "trajopt/SymbolExports.hpp"

namespace trajopt {

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

#pragma once

#include "trajopt/obstacle/Obstacle.h"
#include "trajopt/obstacle/ObstaclePoint.h"
#include "trajopt/obstacle/Obstacle.hpp"
#include "trajopt/obstacle/ObstaclePoint.hpp"

namespace trajopt {

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

#include <vector>

#include "trajopt/SymbolExports.h"
#include "trajopt/obstacle/ObstaclePoint.h"
#include "trajopt/SymbolExports.hpp"
#include "trajopt/obstacle/ObstaclePoint.hpp"

namespace trajopt {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#pragma once

#include "trajopt/SymbolExports.h"
#include "trajopt/SymbolExports.hpp"

namespace trajopt {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#pragma once

#include "trajopt/SymbolExports.h"
#include "trajopt/SymbolExports.hpp"

namespace trajopt {

Expand Down
12 changes: 6 additions & 6 deletions include/trajopt/path/Path.h → include/trajopt/path/Path.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
#include <functional>
#include <vector>

#include "trajopt/SymbolExports.h"
#include "trajopt/constraint/differential/DifferentialConstraint.h"
#include "trajopt/constraint/holonomic/HolonomicConstraint.h"
#include "trajopt/drivetrain/DifferentialDrivetrain.h"
#include "trajopt/drivetrain/SwerveDrivetrain.h"
#include "trajopt/solution/SwerveSolution.h"
#include "trajopt/SymbolExports.hpp"
#include "trajopt/constraint/differential/DifferentialConstraint.hpp"
#include "trajopt/constraint/holonomic/HolonomicConstraint.hpp"
#include "trajopt/drivetrain/DifferentialDrivetrain.hpp"
#include "trajopt/drivetrain/SwerveDrivetrain.hpp"
#include "trajopt/solution/SwerveSolution.hpp"

namespace trajopt {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
#include <functional>
#include <vector>

#include "trajopt/drivetrain/SwerveDrivetrain.h"
#include "trajopt/obstacle/Bumpers.h"
#include "trajopt/obstacle/Obstacle.h"
#include "trajopt/path/InitialGuessPoint.h"
#include "trajopt/path/Path.h"
#include "trajopt/solution/Solution.h"
#include "trajopt/solution/SwerveSolution.h"
#include "trajopt/drivetrain/SwerveDrivetrain.hpp"
#include "trajopt/obstacle/Bumpers.hpp"
#include "trajopt/obstacle/Obstacle.hpp"
#include "trajopt/path/InitialGuessPoint.hpp"
#include "trajopt/path/Path.hpp"
#include "trajopt/solution/Solution.hpp"
#include "trajopt/solution/SwerveSolution.hpp"

namespace trajopt {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#include <cassert>
#include <numbers>

#include "trajopt/SymbolExports.h"
#include "trajopt/set/IntervalSet1d.h"
#include "trajopt/SymbolExports.hpp"
#include "trajopt/set/IntervalSet1d.hpp"

namespace trajopt {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include <cassert>

#include "trajopt/SymbolExports.h"
#include "trajopt/SymbolExports.hpp"

namespace trajopt {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <cassert>
#include <limits>

#include "trajopt/SymbolExports.h"
#include "trajopt/SymbolExports.hpp"

namespace trajopt {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#pragma once

#include "trajopt/SymbolExports.h"
#include "trajopt/SymbolExports.hpp"

namespace trajopt {

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

#include <cmath>

#include "trajopt/SymbolExports.h"
#include "trajopt/set/IntervalSet1d.h"
#include "trajopt/SymbolExports.hpp"
#include "trajopt/set/IntervalSet1d.hpp"

namespace trajopt {

Expand Down
8 changes: 4 additions & 4 deletions include/trajopt/set/Set2d.h → include/trajopt/set/Set2d.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

#include <variant>

#include "trajopt/set/ConeSet2d.h"
#include "trajopt/set/EllipticalSet2d.h"
#include "trajopt/set/LinearSet2d.h"
#include "trajopt/set/RectangularSet2d.h"
#include "trajopt/set/ConeSet2d.hpp"
#include "trajopt/set/EllipticalSet2d.hpp"
#include "trajopt/set/LinearSet2d.hpp"
#include "trajopt/set/RectangularSet2d.hpp"

namespace trajopt {

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

#include <vector>

#include "trajopt/SymbolExports.h"
#include "trajopt/solution/Solution.h"
#include "trajopt/SymbolExports.hpp"
#include "trajopt/solution/Solution.hpp"

namespace trajopt {

Expand Down
Loading

0 comments on commit 4a1c653

Please sign in to comment.