Skip to content

Commit

Permalink
add EIGEN_MAKE_ALIGNED_OPERATOR_NEW
Browse files Browse the repository at this point in the history
  • Loading branch information
ahundt committed Feb 19, 2017
1 parent 15be514 commit 88c611b
Show file tree
Hide file tree
Showing 11 changed files with 30 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/CoM.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ class RBDYN_DLLAPI CoMJacobianDummy
std::vector<Jacobian> jacVec_;
double totalMass_;
std::vector<double> bodiesWeight_;
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
};


Expand Down Expand Up @@ -257,6 +259,8 @@ class RBDYN_DLLAPI CoMJacobian
std::vector<sva::MotionVecd> normalAcc_;

std::vector<double> weight_;
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
};


Expand Down
2 changes: 2 additions & 0 deletions src/FD.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ class RBDYN_DLLAPI ForwardDynamics
std::vector<int> dofPos_;

Eigen::LDLT<Eigen::MatrixXd> ldlt_;
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
};

} // namespace rbd
Expand Down
2 changes: 2 additions & 0 deletions src/ID.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ class RBDYN_DLLAPI InverseDynamics
/// f_ is the vector of forces transmitted from body λ(i) to body i across
/// joint i.
std::vector<sva::ForceVecd> f_;
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
};

} // namespace rbd
2 changes: 2 additions & 0 deletions src/IDIM.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ class RBDYN_DLLAPI IDIM

private:
Eigen::MatrixXd Y_;
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
};

} // rbd
2 changes: 2 additions & 0 deletions src/IK.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ struct CwiseRoundOp {
CwiseRoundOp(const double& inf, const double& sup) : m_inf(inf), m_sup(sup) {}
double operator()(const double& x) const { return x>m_inf && x<m_sup ? 0 : x; }
double m_inf, m_sup;
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
};

} // anonymous
Expand Down
2 changes: 2 additions & 0 deletions src/IK.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ class RBDYN_DLLAPI InverseKinematics
int ef_index_;
Jacobian jac_;
Eigen::JacobiSVD<Eigen::MatrixXd> svd_;
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
};

} // namespace rbd
2 changes: 2 additions & 0 deletions src/IS.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ class RBDYN_DLLAPI InverseStatics
std::vector<Jacobian> jacW_;
Eigen::MatrixXd fullJac_;
bool jacobianSizeHasBeenSet_;
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
};

} // namespace rbd
2 changes: 2 additions & 0 deletions src/Jacobian.h
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,8 @@ class RBDYN_DLLAPI Jacobian

Eigen::MatrixXd jac_;
Eigen::MatrixXd jacDot_;
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
};

} // namespace rbd
Expand Down
2 changes: 2 additions & 0 deletions src/Momentum.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ class RBDYN_DLLAPI CentroidalMomentumMatrix
std::vector<Eigen::MatrixXd> jacWork_;
std::vector<double> bodiesWeight_;
std::vector<sva::MotionVecd> normalAcc_;
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
};


Expand Down
4 changes: 4 additions & 0 deletions src/MultiBodyConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ struct RBDYN_DLLAPI MultiBodyConfig

std::vector<Eigen::MatrixXd> python_motionSubspace();
void python_motionSubspace(const std::vector<Eigen::MatrixXd>& v);
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
};


Expand Down Expand Up @@ -143,6 +145,8 @@ class RBDYN_DLLAPI ConfigConverter
private:
std::vector<int> jInd_;
std::vector<int> bInd_;
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
};


Expand Down
6 changes: 6 additions & 0 deletions src/MultiBodyGraph.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ class RBDYN_DLLAPI MultiBodyGraph
sva::PTransformd X; ///< Position of the joint in body coordinate.
Joint joint; ///< Joint with right direction.
std::shared_ptr<Node> next; ///< successor node.
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
};

/**
Expand All @@ -80,6 +82,8 @@ class RBDYN_DLLAPI MultiBodyGraph

Body body;
std::vector<Arc> arcs; ///< Outgoing arc.
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
};

public:
Expand Down Expand Up @@ -306,6 +310,8 @@ class RBDYN_DLLAPI MultiBodyGraph

std::map<std::string, std::shared_ptr<Node>> bodyNameToNode_;
std::map<std::string, std::shared_ptr<Joint>> jointNameToJoint_;
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
};

}

0 comments on commit 88c611b

Please sign in to comment.