26 #ifndef JSPACE_MODEL_HPP
27 #define JSPACE_MODEL_HPP
203 Eigen::VectorXd & joint_limits_upper)
const;
218 Eigen::Affine3d & global_transform)
const;
228 Eigen::Affine3d
const & local_transform,
229 Eigen::Affine3d & global_transform)
const;
240 double local_x,
double local_y,
double local_z,
241 Eigen::Affine3d & global_transform)
const;
252 Eigen::VectorXd
const & local_translation,
253 Eigen::Affine3d & global_transform)
const;
255 bool computeGlobalCOMFrame(
taoDNode const * node,
256 Eigen::Affine3d & global_com_transform)
const;
270 Eigen::MatrixXd & jacobian)
const;
283 double gx,
double gy,
double gz,
284 Eigen::MatrixXd & jacobian)
const;
289 Eigen::VectorXd
const & global_point,
290 Eigen::MatrixXd & jacobian)
const
291 {
return computeJacobian(node, global_point[0], global_point[1], global_point[2], jacobian); }
305 bool computeCOM(Eigen::VectorXd & com, Eigen::MatrixXd * opt_jcom)
const;
326 bool getGravity(Eigen::VectorXd & gravity)
const;
376 typedef std::set<size_t> dof_set_t;
382 dof_set_t gravity_disabled_;
386 Eigen::VectorXd g_torque_;
387 Eigen::VectorXd cc_torque_;
388 std::vector<double> a_upper_triangular_;
389 std::vector<double> ainv_upper_triangular_;
396 std::map<taoDNode *, std::list<SAncestryEntry> > ancestry_table_;
401 #endif // JSPACE_MODEL_HPP
STaoTreeInfo * _getKGMTree()
Definition: Model.hpp:367
void setState(State const &state)
Definition: Model.cpp:158
void computeGravity()
Definition: Model.cpp:469
3x1 vector classThis is a C++ wrapper class of deVector3f.
Definition: TaoDeVector3.h:32
bool computeGlobalFrame(taoDNode const *node, Eigen::Affine3d const &local_transform, Eigen::Affine3d &global_transform) const
Definition: Model.cpp:300
void updateKinematics()
Definition: Model.cpp:263
bool disableGravityCompensation(size_t index, bool disable)
Definition: Model.cpp:478
STaoTreeInfo * _getCCTree()
Definition: Model.hpp:372
taoDNode * getNodeByName(std::string const &name) const
Definition: Model.cpp:229
void updateDynamics()
Definition: Model.cpp:427
bool computeJacobian(taoDNode const *node, Eigen::MatrixXd &jacobian) const
Definition: Model.cpp:355
Definition: tao_util.hpp:68
bool getGlobalFrame(taoDNode const *node, Eigen::Affine3d &global_transform) const
Definition: Model.cpp:274
std::string getJointName(size_t id) const
Definition: Model.cpp:210
abstract node class for articulated bodyA dynamics node = {Articulated Body Link + Set of associated ...
Definition: taoDNode.h:46
bool computeJacobian(taoDNode const *node, Eigen::VectorXd const &global_point, Eigen::MatrixXd &jacobian) const
Definition: Model.hpp:288
void update(State const &state)
Definition: Model.cpp:150
size_t getNJoints() const
Definition: Model.cpp:186
void computeInverseMassInertia()
Definition: Model.cpp:603
bool computeCOM(Eigen::VectorXd &com, Eigen::MatrixXd *opt_jcom) const
Definition: Model.cpp:436
std::string getNodeName(size_t id) const
Definition: Model.cpp:200
bool getGravity(Eigen::VectorXd &gravity) const
Definition: Model.cpp:507
void computeMassInertia()
Definition: Model.cpp:547
Definition: Model.hpp:391
size_t getNDOF() const
Definition: Model.cpp:193
Base joint class for articulated bodyThis provides a joint for articulated body dynamics.
Definition: taoJoint.h:45
State const & getState() const
Definition: Model.hpp:131
bool getMassInertia(Eigen::MatrixXd &mass_inertia) const
Definition: Model.cpp:583
bool getInverseMassInertia(Eigen::MatrixXd &inverse_mass_inertia) const
Definition: Model.cpp:638
size_t getNNodes() const
Definition: Model.cpp:180
int init(STaoTreeInfo *kgm_tree, STaoTreeInfo *cc_tree, double grav_x_, double grav_y_, double grav_z_, std::ostream *msg)
Definition: Model.cpp:65
taoDNode * getNode(size_t id) const
Definition: Model.cpp:220
Model()
Definition: Model.cpp:56
void getJointLimits(Eigen::VectorXd &joint_limits_lower, Eigen::VectorXd &joint_limits_upper) const
Definition: Model.cpp:251
void computeCoriolisCentrifugal()
Definition: Model.cpp:522
taoDNode * getNodeByJointName(std::string const &name) const
Definition: Model.cpp:240
bool getCoriolisCentrifugal(Eigen::VectorXd &coriolis_centrifugal) const
Definition: Model.cpp:534