Skip to content

Commit

Permalink
Expose transpose method for Joint Waypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi-Armstrong committed Oct 6, 2020
1 parent feb3687 commit cf27ce0
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ class JointWaypoint
// Eigen Container //
/////////////////////

using ConstTransposeReturnType = Eigen::VectorXd::ConstTransposeReturnType;

////////////////////////
// Eigen Constructors //
////////////////////////
Expand Down Expand Up @@ -158,6 +160,8 @@ class JointWaypoint
inline double norm() const { return waypoint.norm(); }
/** @returns true if two are approximate */
inline bool isApprox(const Eigen::VectorXd& other, double prec = 1e-12) { return waypoint.isApprox(other, prec); }
/** @returns the transpose of the joint positions */
inline ConstTransposeReturnType transpose() const { return waypoint.transpose(); }

/////////////////////
// Eigen Operators //
Expand Down

0 comments on commit cf27ce0

Please sign in to comment.