Skip to content

Commit 23b0bc2

Browse files
committed
make Pose constexpr
1 parent 572e83b commit 23b0bc2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

include/units/Pose.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ template <typename derivatives> class AbstractPose
2525
*
2626
* This constructor initializes x, y, and orientation to 0
2727
*/
28-
AbstractPose() : Vector(), orientation(0.0) {}
28+
constexpr AbstractPose() : Vector(), orientation(0.0) {}
2929

3030
/**
3131
* @brief Construct a new Pose object
@@ -34,15 +34,15 @@ template <typename derivatives> class AbstractPose
3434
*
3535
* @param v position
3636
*/
37-
AbstractPose(Vector v) : Vector(v), orientation(0.0) {}
37+
constexpr AbstractPose(Vector v) : Vector(v), orientation(0.0) {}
3838

3939
/**
4040
* @brief Construct a new Pose object
4141
*
4242
* @param v position
4343
* @param orientation orientation
4444
*/
45-
AbstractPose(Vector v, Divided<Angle, Exponentiated<Time, derivatives>> orientation)
45+
constexpr AbstractPose(Vector v, Divided<Angle, Exponentiated<Time, derivatives>> orientation)
4646
: Vector(v), orientation(orientation) {}
4747

4848
/**
@@ -53,7 +53,7 @@ template <typename derivatives> class AbstractPose
5353
* @param x x position
5454
* @param y y position
5555
*/
56-
AbstractPose(Len x, Len y) : Vector(x, y), orientation(0.0) {}
56+
constexpr AbstractPose(Len x, Len y) : Vector(x, y), orientation(0.0) {}
5757

5858
/**
5959
* @brief Construct a new Pose object
@@ -62,7 +62,7 @@ template <typename derivatives> class AbstractPose
6262
* @param y y position
6363
* @param orientation orientation
6464
*/
65-
AbstractPose(Len x, Len y, Divided<Angle, Exponentiated<Time, derivatives>> orientation)
65+
constexpr AbstractPose(Len x, Len y, Divided<Angle, Exponentiated<Time, derivatives>> orientation)
6666
: Vector(x, y), orientation(orientation) {}
6767
};
6868

0 commit comments

Comments
 (0)