#include <ObAvData.hpp>
Inheritance diagram for OSCAR::ObAvData:

Public Methods | |
| ObAvData (const String &filename, OSCARError &err, FKPosition **fkBegin=NULL, FKPosition **fkEnd=NULL, const String &name=String()) | |
| ObAvData (OSCARError &err, const String &name=String()) | |
| virtual | ~ObAvData () |
| bool | UpdateArm (unsigned int index) |
| bool | UpdateArm (unsigned int index, const Vector &jointPos) |
| bool | UpdateAllArms () |
| bool | UpdateSphere (unsigned int index, Vector3 &pt, double rd) |
| bool | UpdateCylinder (unsigned int index, Vector3 &pt1, Vector3 &pt2, double rd) |
| bool | UpdatePlane (unsigned int index, Vector3 &bs, Vector3 &pt1, Vector3 &pt2, double th=0.0, bool bounded=false) |
| bool | UpdateBox (unsigned int index, Vector3 &basePt, Vector3 &pt0, Vector3 &pt1, double h) |
| bool | UpdateObstacle (SkeletalPrimitive *obstacle, const vector< Vector3 > &pts, double rd) |
| const vector< vector< Cylisphere > > & | GetArms () const |
| const vector< Cylisphere > & | GetCy () const |
| const vector< Sphere > & | GetSp () const |
| const vector< Plane > & | GetPl () const |
| const vector< Box > & | GetBox () const |
| const vector< int > & | GetFrames (unsigned int armIndex) const |
| int | GetArmNum () const |
| int | GetCyNum () const |
| int | GetSpNum () const |
| int | GetPlNum () const |
| int | GetBoxNum () const |
| int | GetTot () const |
| bool | LoadFile (const String &file, FKPosition **fkBegin=NULL, FKPosition **fkEnd=NULL) |
| virtual void | PrintOn (std::ostream &out) const |
| bool | AddBox (Box &newbox) |
Private Methods | |
| bool | loadRev1File (std::ifstream &input_file, FKPosition **fkBegin=NULL, FKPosition **fkEnd=NULL) |
| bool | loadRev2File (std::istringstream &fileStream, std::string &buffer, OSCARError &err) |
| ObAvData (const ObAvData &dd) | |
| ObAvData & | operator= (const ObAvData &dd) |
Private Attributes | |
| vector< FKPosition * > | fk |
| char | mark |
| int | totCyls |
| vector< vector< int > > | frames |
| vector< vector< Vector3 > > | offsets |
| vector< vector< Cylisphere > > | arms |
| vector< Cylisphere > | cy |
| vector< Sphere > | sp |
| vector< Plane > | pl |
| vector< Box > | box |
| vector< Node * > | enviornment |
| vector< Node * > | arms2 |
|
||||||||||||||||||||||||
|
Constructor. The FKPosition array can be specified in two ways: one is by fkBegin to point to a NULL-terminated array of FKPosition pointers, the other is for fkBegin to point to an array of FKPosition pointers and fkEnd to point to an element in the array that is one past the end of the array, as with STL containers.
|
|
||||||||||||
|
Constructor.
|
|
|
Destructor.
|
|
|
Copy Constructor This function is declared and not defined to disable copy construction.
|
|
|
|
|
|
Get the number of arms in the workspace model.
|
|
|
Get pointer to arm models. Use to access arm models.
|
|
|
Get pointer to box obstacle models Use to access box obstacles.
|
|
|
Get the number of box obstacles in the workspace model.
|
|
|
Get pointer to cylispherical obstacle models. Use to access cylispherical obstacles.
|
|
|
Get the number of cylispherical obstacles in the workspace model.
|
|
|
Get pointer to array specifying arm model DH frames. Use to access DH frame numbers of the frames to which cylispheres used to model arms are attached. The array should have as many elements as there are cylispheres used to model the specified arm. The frames are numbered from 0 (i.e. if a cylisphere is attached to frame 1 the corresponding array entry will be 0).
|
|
|
Get pointer to array specifying arm model DH frames. Use to access DH frame numbers of the frames to which cylispheres used to model arms are attached. The array should have as many elements as there are cylispheres used to model the specified arm. The frames are numbered from 0 (i.e. if a cylisphere is attached to frame 1 the corresponding array entry will be 0).
|
|
|
Get the number of planar obstacles in the workspace model.
|
|
|
Get pointer to spherical obstacle models. Use to access spherical obstacles.
|
|
|
Get the number of spherical obstacles in the workspace model.
|
|
|
Get the total number of cylispheres used in all the arms in the workspace.
|
|
||||||||||||||||
|
Load a description of the robot and environment into the work cell.
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
|
Deep Copy operator This function is declared and not defined to disable deep copy (i.e. x = y) of one ObAvData object to another.
|
|
|
|
|
|
Update the location of all arm models. Updates the location of all the arms modeled based on the last location set in the internal forward kinematics.
|
|
||||||||||||
|
Update the location of the give arm with the provided joint angles Updates the location of the arm # specified after updating the location of the arm in the internal forward kinematics using fkSol.
|
|
|
Update the location of the give arm Updates the location of the arm # specified based on the last location set in the internal forward kinematics.
|
|
||||||||||||||||||||||||
|
Update the location of the given box. Updates the location and size of the box ostacle specified.
|
|
||||||||||||||||||||
|
Update the location of the give cylisphere. Updates the location and size of the cylispherical obstacle specified.
|
|
||||||||||||||||
|
Update the location of the given obstacle Updates the size and location of the specified obstacle
|
|
||||||||||||||||||||||||||||
|
Update the location of the give plane. Updates the location and size of the plane obstacle specified.
|
|
||||||||||||||||
|
Update the location of the give sphere. Updates the location and size of the spherical obstacle specified.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| RRG Homepage | OSCAR Overview | OSCAR Tutorials | Simulations |