SMORES Robot Platform Simulation
Modlab at Penn, ASL at Cornell
|
A class used to manage each node, in this case is the part has connectable face. More...
#include <SmoresNode.hh>
Public Member Functions | |
SmoresNode () | |
Constructor. | |
SmoresNode (int nodeID, int jtype, int jvalue, SmoresModulePtr parent, SmoresEdgePtr edge) | |
Constructor. More... | |
SmoresNode (int nodeID, int jtype, int jvalue, SmoresModulePtr parent) | |
Constructor. More... | |
SmoresNode (int nodeID, int jtype, int jvalue) | |
Constructor. More... | |
~SmoresNode () | |
Destructor. | |
void | NodeInit (int nodeID, int jtype, int jvalue, SmoresModulePtr parent, SmoresEdgePtr edge) |
Node initilization functions. More... | |
void | NodeInit (int nodeID, int jtype, int jvalue, SmoresModulePtr parent) |
Node initilization functions. More... | |
void | SetParent (SmoresModulePtr mparent) |
Set the parent object. More... | |
int | GetAxis (void) |
Get axis of the norm vector of connectable face. More... | |
void | ConnectOnEdge (SmoresEdgePtr edge) |
Connect the current node to one edge. More... | |
void | Disconnect (void) |
Disconnect the current node from any edge. | |
SmoresEdgePtr | GetEdge (void) |
Get the edge that current node connects to. More... | |
Public Attributes | |
int | NodeID |
Node ID specify which node the current node is, 0 is the base node. | |
int | JointType |
0 for revolute or 1 for prismatic | |
int | JointValue |
Revolute joint: angle value; prismatic joint: distance value. | |
math::Vector3 | RelativePosition |
Position of the current node relative to base node. | |
SmoresModulePtr | Parent |
A pointer to its parent. | |
SmoresEdgePtr | Edge |
A pointer to the existing edge. | |
A class used to manage each node, in this case is the part has connectable face.
gazebo::SmoresNode::SmoresNode | ( | int | nodeID, |
int | jtype, | ||
int | jvalue, | ||
SmoresModulePtr | parent, | ||
SmoresEdgePtr | edge | ||
) |
Constructor.
nodeID | Id number for the current node |
jtype | Joint type of the current node, relative to module |
jvalue | Current joint angle |
parent | Pointer to its parent SmoresModule object |
edge | Pointer to the SmoresEdge object |
gazebo::SmoresNode::SmoresNode | ( | int | nodeID, |
int | jtype, | ||
int | jvalue, | ||
SmoresModulePtr | parent | ||
) |
Constructor.
nodeID | Id number for the current node |
jtype | Joint type of the current node, relative to module |
jvalue | Current joint angle |
parent | Pointer to its parent SmoresModule object |
gazebo::SmoresNode::SmoresNode | ( | int | nodeID, |
int | jtype, | ||
int | jvalue | ||
) |
Constructor.
nodeID | Id number for the current node |
jtype | Joint type of the current node, relative to module |
jvalue | Current joint angle |
void gazebo::SmoresNode::ConnectOnEdge | ( | SmoresEdgePtr | edge | ) |
Connect the current node to one edge.
The edge that current node connect to
int gazebo::SmoresNode::GetAxis | ( | void | ) |
Get axis of the norm vector of connectable face.
SmoresEdgePtr gazebo::SmoresNode::GetEdge | ( | void | ) |
Get the edge that current node connects to.
void gazebo::SmoresNode::NodeInit | ( | int | nodeID, |
int | jtype, | ||
int | jvalue, | ||
SmoresModulePtr | parent, | ||
SmoresEdgePtr | edge | ||
) |
Node initilization functions.
nodeID | Id number for the current node |
jtype | Joint type of the current node, relative to module |
jvalue | Current joint angle |
parent | Pointer to its parent SmoresModule object |
edge | Pointer to the SmoresEdge object |
void gazebo::SmoresNode::NodeInit | ( | int | nodeID, |
int | jtype, | ||
int | jvalue, | ||
SmoresModulePtr | parent | ||
) |
Node initilization functions.
nodeID | Id number for the current node |
jtype | Joint type of the current node, relative to module |
jvalue | Current joint angle |
parent | Pointer to its parent SmoresModule object |
void gazebo::SmoresNode::SetParent | ( | SmoresModulePtr | mparent | ) |
Set the parent object.
mparent | Pointer to its parent, which is a SmoresModule object |