Tesseract 0.28.4
Loading...
Searching...
No Matches
tesseract::scene_graph::OFKTRevoluteNode Class Reference
Inheritance diagram for tesseract::scene_graph::OFKTRevoluteNode:

Public Member Functions

EIGEN_MAKE_ALIGNED_OPERATOR_NEW OFKTRevoluteNode (OFKTNode *parent, tesseract::common::LinkId link_id, tesseract::common::JointId joint_id, const Eigen::Isometry3d &static_tf, const Eigen::Vector3d &axis)
void storeJointValue (double joint_value) override
 Set the nodes joint value if it has one.
void computeAndStoreLocalTransformation () override
 Compute and save the local transformation 'L = S * J(Joint Value)'.
Eigen::Isometry3d computeLocalTransformation (double joint_value) const override
 Compute the local tranformation but do not save.
const Eigen::Vector3d & getAxis () const
Public Member Functions inherited from tesseract::scene_graph::OFKTBaseNode
EIGEN_MAKE_ALIGNED_OPERATOR_NEW OFKTBaseNode (JointType type, OFKTNode *parent, tesseract::common::LinkId link_id)
 OFKTBaseNode (JointType type, OFKTNode *parent, tesseract::common::LinkId link_id, tesseract::common::JointId joint_id, const Eigen::Isometry3d &static_tf)
JointType getType () const override
 Get the type of joint associated with the node.
void setParent (OFKTNode *parent) override
 Set the parent node.
OFKTNode * getParent () override
 Get the parent node.
const OFKTNode * getParent () const override
 Get the parent node (const).
tesseract::common::LinkId getLinkId () const override
 Get the link ID associated with the node.
tesseract::common::JointId getJointId () const override
 Get the joint ID associated with the node.
double getJointValue () const override
 Get the current joint value.
bool hasJointValueChanged () const override
 Indicates that the joint value has changed and that local and world transformation need to be recomputed.
void setStaticTransformation (const Eigen::Isometry3d &static_tf) override
 Set the static transformation.
const Eigen::Isometry3d & getStaticTransformation () const override
 Get the nodes static transformation.
const Eigen::Isometry3d & getLocalTransformation () const override
 Get the local transformation: 'L = S * J'.
void computeAndStoreWorldTransformation () override
 Compute and store the nodes world transformation.
const Eigen::Isometry3d & getWorldTransformation () const override
 Get the nodes world transformation.
bool updateWorldTransformationRequired () const override
 Indicates if an update of the world transformation is required.
Eigen::Matrix< double, 6, 1 > getLocalTwist () const override
 Return the twist of the node's link relative to its parent link for a unit joint velocity.
void addChild (OFKTNode *node) override
 Add a child node.
void removeChild (const OFKTNode *node) override
 Remove a child node assiciated with this node.
std::vector< OFKTNode * > & getChildren () override
 Get a vector of child nodes associated with this node.
const std::vector< const OFKTNode * > & getChildren () const override
 Get a vector of child nodes associated with this node (Const).
Public Member Functions inherited from tesseract::scene_graph::OFKTNode
 OFKTNode (const OFKTNode &)=delete
OFKTNode & operator= (const OFKTNode &)=delete
 OFKTNode (OFKTNode &&)=delete
OFKTNode & operator= (OFKTNode &&)=delete

Friends

class OFKTStateSolver

Additional Inherited Members

Public Types inherited from tesseract::scene_graph::OFKTNode
using UPtr = std::unique_ptr<OFKTNode>
using Ptr = std::shared_ptr<OFKTNode>
using ConstPtr = std::shared_ptr<const OFKTNode>
Protected Attributes inherited from tesseract::scene_graph::OFKTBaseNode
tesseract::scene_graph::JointType type_
OFKTNode * parent_ { nullptr }
tesseract::common::LinkId link_id_
tesseract::common::JointId joint_id_
Eigen::Isometry3d static_tf_ { Eigen::Isometry3d::Identity() }
Eigen::Isometry3d joint_tf_ { Eigen::Isometry3d::Identity() }
Eigen::Isometry3d local_tf_ { Eigen::Isometry3d::Identity() }
Eigen::Isometry3d world_tf_ { Eigen::Isometry3d::Identity() }
Eigen::Matrix< double, 6, 1 > local_twist_ { Eigen::VectorXd::Zero(6) }
double joint_value_ { 0 }
bool joint_value_changed_ { false }
std::vector< OFKTNode * > children_
std::vector< const OFKTNode * > children_const_
bool update_world_required_ { true }

Member Function Documentation

◆ storeJointValue()

void tesseract::scene_graph::OFKTRevoluteNode::storeJointValue ( double joint_value)
overridevirtual

Set the nodes joint value if it has one.

This should indicate hasJointValueChanged() = true

Parameters
joint_valueThe joint value

Reimplemented from tesseract::scene_graph::OFKTBaseNode.

◆ computeAndStoreLocalTransformation()

void tesseract::scene_graph::OFKTRevoluteNode::computeAndStoreLocalTransformation ( )
overridevirtual

Compute and save the local transformation 'L = S * J(Joint Value)'.

This should reset the flag such that hasJointValueChanged() returns false

Implements tesseract::scene_graph::OFKTNode.

◆ computeLocalTransformation()

Eigen::Isometry3d tesseract::scene_graph::OFKTRevoluteNode::computeLocalTransformation ( double joint_value) const
overridevirtual

Compute the local tranformation but do not save.

This provides a const method for computing the local transform.

Parameters
joint_valueThe joint value for calculating the local transformation
Returns
The local transformation for the provided joint value

Reimplemented from tesseract::scene_graph::OFKTBaseNode.