Link Class Reference
Used for bodies that are part of a robot.
More...
#include <body.h>
List of all members.
Detailed Description
Used for bodies that are part of a robot.
A link is a dynamic body that notifies its owner robot when contacts have changed.
Definition at line 619 of file body.h.
Constructor & Destructor Documentation
Link::Link |
( |
Robot * |
r, |
|
|
int |
c, |
|
|
int |
l, |
|
|
World * |
w, |
|
|
const char * |
name = 0 | |
|
) |
| | |
Link::~Link |
( |
|
) |
[virtual] |
Member Function Documentation
bool Link::externalContactsPreventMotion |
( |
const transf & |
motion |
) |
|
Check if contact against a body not belonging to the same robot prevents motion.
This acts like contactPreventMotion, except in the case of a link belonging to a robot. In this case, contact against another link of the same robot does not prevent motion, as we assume the entire robot is moving.
Definition at line 2192 of file body.cpp.
int Link::getChainNum |
( |
|
) |
const [inline] |
Returns which chain this link is a part of.
Definition at line 641 of file body.h.
position Link::getDistalJointLocation |
( |
|
) |
|
Returns the location of the distal joint in this link's coordinate system
By convention, in GraspIt! each link's origin is located at the next joint in the chain
Definition at line 2210 of file body.cpp.
int Link::getLinkNum |
( |
|
) |
const [inline] |
Returns which link in the chain this link is.
Definition at line 644 of file body.h.
Returns a pointer to the robot owning this link.
Reimplemented from Body.
Definition at line 638 of file body.h.
vec3 Link::getProximalJointAxis |
( |
|
) |
|
Returns the z axis of the proximal joint in link's coordinate system
Definition at line 2227 of file body.cpp.
position Link::getProximalJointLocation |
( |
|
) |
|
Returns the location of the proximal joint in this link's coordinate system
The translation component of the previous joint transform gives me the location of that joint in this joint's coordinate system
Definition at line 2218 of file body.cpp.
void Link::setContactsChanged |
( |
|
) |
[virtual] |
Sets the flag that indicates that contacts have changed.
Sets BOTH the worldElement's AND the robot's contactsChanged flag.
Reimplemented from WorldElement.
Definition at line 2181 of file body.cpp.
Friends And Related Function Documentation
friend class Robot [friend] |
Member Data Documentation
Identifies what part of the robot this link is.
Definition at line 631 of file body.h.
A pointer to the robot that this link is a part of.
Definition at line 628 of file body.h.
The documentation for this class was generated from the following files:
- /opt/ros/diamondback/stacks/graspit_simulator/graspit/graspit_source/include/body.h
- /opt/ros/diamondback/stacks/graspit_simulator/graspit/graspit_source/src/body.cpp