|
Robot Simulator of the Robotics Group for Self-Organization of Control
0.8.0
|
Abstract class (interface) for obstacles. More...
#include <straightline.h>


Public Member Functions | |
| StraightLine (const Position &p, const double &angle) | |
| Constructor. More... | |
| StraightLine (const Matrix &pose) | |
| Constructor. More... | |
| virtual | ~StraightLine () |
| void | setCurveAngle (double alpha) |
| virtual Matrix | getTransformedEndMatrix () |
| gives the position and rotation(angle) of the segment at the end of the segment so that a new segment could be placed there if you want to place the new segment, you must muliplicate: getTransformedEndMatrix()*getPositionMatrix(); More... | |
| virtual bool | isInside (const Position &p) |
| returns true if the real coordinates lay inside of the segment More... | |
| virtual double | getSectionIdValue (const Position &p) |
| returns a value between 0 and length that tells at which section you are on the segment. More... | |
| virtual double | getWidthIdValue (const Position &p) |
| returns a value between 0 and width that tells at which width you are on the segment, more to right or more to the left. More... | |
| virtual double | getLength () |
| returns the length of the segment, here it is the length of the arc formula is: radius * angle; More... | |
| virtual double | getWidth () |
| returns the width of the segment, More... | |
| virtual void | setWidth (double w) |
| sets the width of the segment, More... | |
| virtual void | draw () |
| draws the obstacle (4 boxes for the playground) More... | |
| virtual void | create (dSpaceID space) |
| virtual void | destroy () |
Public Member Functions inherited from AbstractTrackSection | |
| AbstractTrackSection (const Position &p, const double angle) | |
| Constructor, segment is initialized with Position (0,0,0) and a rotation angle=0. More... | |
| AbstractTrackSection (const Matrix &pose) | |
| Constructor where you can set the pos-matrix by this constructor: More... | |
| virtual | ~AbstractTrackSection () |
| Matrix | getPoseMatrix () |
| Position | transformToLocalCoord (const Position &p) |
| Position | transformToGlobalCoord (const Position &p) |
| Matrix | getInversePoseMatrix () |
Protected Member Functions | |
| void | setProperties () |
Protected Member Functions inherited from AbstractTrackSection | |
| void | setPoseMatrix (const Matrix &m) |
| Position | getPosition () |
| gives actual position of the obstacle More... | |
Protected Attributes | |
| double | length |
| double | width |
| dGeomID | wallLeft |
| dGeomID | wallRight |
| double | widthWall |
| double | heightWall |
| double | angle |
| double | isLeft |
| bool | obstacle_exists |
| Color | color |
| obstacle color More... | |
Abstract class (interface) for obstacles.
| StraightLine | ( | const Position & | p, |
| const double & | angle | ||
| ) |
Constructor.
| StraightLine | ( | const Matrix & | pose | ) |
Constructor.
|
inlinevirtual |
|
virtual |
Implements AbstractTrackSection.
|
virtual |
Implements AbstractTrackSection.
|
virtual |
draws the obstacle (4 boxes for the playground)
Implements AbstractTrackSection.
|
virtual |
returns the length of the segment, here it is the length of the arc formula is: radius * angle;
Implements AbstractTrackSection.
|
virtual |
returns a value between 0 and length that tells at which section you are on the segment.
returns -1 if no IdValue can be given
Implements AbstractTrackSection.
|
virtual |
gives the position and rotation(angle) of the segment at the end of the segment so that a new segment could be placed there if you want to place the new segment, you must muliplicate: getTransformedEndMatrix()*getPositionMatrix();
gives the position and rotation(angle) of the segment at the end of the segment so that a new segment could be placed there
Implements AbstractTrackSection.
|
virtual |
returns the width of the segment,
Implements AbstractTrackSection.
|
virtual |
returns a value between 0 and width that tells at which width you are on the segment, more to right or more to the left.
returns -1 if no WidthValue can be given
Implements AbstractTrackSection.
|
virtual |
returns true if the real coordinates lay inside of the segment
Implements AbstractTrackSection.
| void setCurveAngle | ( | double | alpha | ) |
|
protected |
|
virtual |
sets the width of the segment,
Implements AbstractTrackSection.
|
protected |
|
protected |
obstacle color
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |