Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing compilation in Debug mode. #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions curves/include/curves/CubicHermiteSE3Curve.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ typedef kindr::HomogeneousTransformationPosition3RotationQuaternionD SE3;
typedef SE3::Rotation SO3;
typedef kindr::AngleAxisPD AngleAxis;
typedef kindr::RotationQuaternionPD RotationQuaternion;
typedef kindr::RotationVectorPD RotationVector;
typedef Eigen::Matrix<double, 6, 1> Vector6;
typedef kindr::TwistGlobalD Twist;

Expand Down
8 changes: 4 additions & 4 deletions curves/src/CubicHermiteSE3Curve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,15 +347,15 @@ bool CubicHermiteSE3Curve::evaluateDerivative(DerivativeType& derivative,
const SO3 w2_beta2_exp = RotationQuaternion().exponentialMap((beta2) * w2);
const SO3 w3_beta3_exp = RotationQuaternion().exponentialMap((beta3) * w3);

const RotationQuaternion w1_dbeta1(0.0, dbeta1 * w1);
const RotationQuaternion w2_dbeta2(0.0, dbeta2 * w2);
const RotationQuaternion w3_dbeta3(0.0, dbeta3 * w3);
const RotationQuaternion w1_dbeta1(RotationVector(dbeta1 * w1));
const RotationQuaternion w2_dbeta2(RotationVector(dbeta2 * w2));
const RotationQuaternion w3_dbeta3(RotationVector(dbeta3 * w3));

const Eigen::Vector4d diff = ((T_W_A.getRotation() * w1_beta1_exp * w1_dbeta1 * w2_beta2_exp * w3_beta3_exp).vector()
+ (T_W_A.getRotation() * w1_beta1_exp * w2_beta2_exp * w2_dbeta2 * w3_beta3_exp).vector()
+ (T_W_A.getRotation() * w1_beta1_exp * w2_beta2_exp * w3_beta3_exp * w3_dbeta3 ).vector())*one_over_dt_sec;

const RotationQuaternion qDiff(diff);
const RotationQuaternion qDiff(diff.normalized());
ValueType q;
if(!evaluate(q, time)) {
return false;
Expand Down