DART
6.7.3
|
#include <ShapeNode.hpp>
Public Types | |
using | ShapeUpdatedSignal = common::Signal< void(const ShapeNode *thisShapeNode, const ShapePtr &oldShape, const ShapePtr &newShape)> |
using | RelativeTransformUpdatedSignal = common::Signal< void(const ShapeNode *thisShapeNode, const Eigen::Isometry3d &oldTransform, const Eigen::Isometry3d &newTransform)> |
using | BasicProperties = common::Composite::MakeProperties< NameAspect, FixedFrame, ShapeFrame > |
using | Properties = common::Composite::Properties |
using | State = Node::MakeState< common::Composite::State > |
Public Member Functions | |
virtual | ~ShapeNode ()=default |
Destructor. More... | |
void | setProperties (const Properties &properties) |
Set the Properties of this ShapeNode. More... | |
const Properties | getShapeNodeProperties () const |
Get the Properties of this ShapeNode. More... | |
void | copy (const ShapeNode &other) |
Copy the properties of another ShapeNode. More... | |
void | copy (const ShapeNode *other) |
Copy the properties of another ShapeNode. More... | |
ShapeNode & | operator= (const ShapeNode &other) |
Same as copy(const ShapeNode&) More... | |
void | setRelativeTransform (const Eigen::Isometry3d &transform) override |
Set transformation of this shape node relative to the parent frame. More... | |
void | setRelativeRotation (const Eigen::Matrix3d &rotation) |
Set rotation of this shape node relative to the parent frame. More... | |
Eigen::Matrix3d | getRelativeRotation () const |
Get rotation of this shape node relative to the parent frame. More... | |
void | setRelativeTranslation (const Eigen::Vector3d &translation) |
Set translation of this shape node relative to the parent frame. More... | |
void | setOffset (const Eigen::Vector3d &offset) |
Same as setRelativeTranslation(offset) More... | |
Eigen::Vector3d | getRelativeTranslation () const |
Get translation of this shape node relative to the parent frame. More... | |
Eigen::Vector3d | getOffset () const |
Same as getRelativeTranslation() More... | |
ShapeNode * | asShapeNode () override |
const ShapeNode * | asShapeNode () const override |
void | setNodeProperties (const Node::Properties &otherProperties) override final |
std::unique_ptr< Node::Properties > | getNodeProperties () const override final |
void | copyNodePropertiesTo (std::unique_ptr< Node::Properties > &outputProperties) const override final |
void | setNodeState (const Node::State &otherState) override final |
std::unique_ptr< Node::State > | getNodeState () const override final |
void | copyNodeStateTo (std::unique_ptr< Node::State > &outputState) const override final |
Protected Member Functions | |
ShapeNode (BodyNode *bodyNode, const BasicProperties &properties) | |
Constructor used by the Skeleton class. More... | |
ShapeNode (BodyNode *bodyNode, const ShapePtr &shape, const std::string &name="ShapeNode") | |
Constructor used by the Skeleton class. More... | |
Node * | cloneNode (BodyNode *parent) const override |
Create a clone of this ShapeNode. More... | |
Friends | |
class | BodyNode |
using dart::dynamics::ShapeNode::BasicProperties = common::Composite::MakeProperties< NameAspect, FixedFrame, ShapeFrame> |
using dart::dynamics::ShapeNode::RelativeTransformUpdatedSignal = common::Signal<void(const ShapeNode* thisShapeNode, const Eigen::Isometry3d& oldTransform, const Eigen::Isometry3d& newTransform)> |
using dart::dynamics::ShapeNode::ShapeUpdatedSignal = common::Signal<void(const ShapeNode* thisShapeNode, const ShapePtr& oldShape, const ShapePtr& newShape)> |
|
inherited |
|
virtualdefault |
Destructor.
|
protected |
Constructor used by the Skeleton class.
|
protected |
Constructor used by the Skeleton class.
|
override |
|
override |
void dart::dynamics::ShapeNode::copy | ( | const ShapeNode & | other | ) |
Copy the properties of another ShapeNode.
void dart::dynamics::ShapeNode::copy | ( | const ShapeNode * | other | ) |
Copy the properties of another ShapeNode.
|
finaloverrideinherited |
|
finaloverrideinherited |
|
finaloverrideinherited |
|
finaloverrideinherited |
Eigen::Vector3d dart::dynamics::ShapeNode::getOffset | ( | ) | const |
Same as getRelativeTranslation()
Eigen::Matrix3d dart::dynamics::ShapeNode::getRelativeRotation | ( | ) | const |
Get rotation of this shape node relative to the parent frame.
Eigen::Vector3d dart::dynamics::ShapeNode::getRelativeTranslation | ( | ) | const |
Get translation of this shape node relative to the parent frame.
const ShapeNode::Properties dart::dynamics::ShapeNode::getShapeNodeProperties | ( | ) | const |
Get the Properties of this ShapeNode.
Same as copy(const ShapeNode&)
|
finaloverrideinherited |
|
finaloverrideinherited |
void dart::dynamics::ShapeNode::setOffset | ( | const Eigen::Vector3d & | offset | ) |
Same as setRelativeTranslation(offset)
void dart::dynamics::ShapeNode::setProperties | ( | const Properties & | properties | ) |
Set the Properties of this ShapeNode.
void dart::dynamics::ShapeNode::setRelativeRotation | ( | const Eigen::Matrix3d & | rotation | ) |
Set rotation of this shape node relative to the parent frame.
|
override |
Set transformation of this shape node relative to the parent frame.
void dart::dynamics::ShapeNode::setRelativeTranslation | ( | const Eigen::Vector3d & | translation | ) |
Set translation of this shape node relative to the parent frame.
|
friend |