|
Public Member Functions |
| | RaceGround (const OdeHandle &odehandle) |
| | RaceGround (const OdeHandle &odehandle, const Matrix &pose) |
| | RaceGround (const OdeHandle &odehandle, const Position &pos, double angle) |
| | ~RaceGround () |
| | Destructor.
|
| void | setNumberOfSegments (int number) |
| | you set the number of segments of the track
|
| pair< double, double > | getPositionOnTrack (const Position &p) |
| | returns the barcode number of the given point returns (length,width) (-1,-1) if point is not on the track
|
| void | addSegments (list< AbstractTrackSection * > listToAdd) |
| | adds the segments in the list to the SegmentList
|
| void | addSegment (AbstractTrackSection *Segment) |
| | adds the segment to the SegmentList
|
| void | addSegment (string &name) |
| | adds the named segment to the SegmentList names are: straightline: StraightLine 90degree : DegreeSegment
|
| void | addSegments (list< string > names) |
| | adds the named segments in the list to the SegmentList names are: straightline: StraightLine 90degree : 90DegreeSegment
|
| virtual void | draw () |
| | draws all the segments stored in SegmentList
|
| virtual void | setPosition (double x, double y, double z) |
| virtual void | getPosition (double &x, double &y, double &z) |
| virtual void | setGeometry (double length_, double width_, double height_) |
| virtual void | setColor (double r, double g, double b) |
Protected Member Functions |
| virtual void | setParameters (const Matrix &initpose) |
| virtual void | create () |
| virtual void | destroy () |
Protected Attributes |
| double | length |
| double | trackLength |
| double | width |
| double | height |
| Matrix | pose |
| double | numberOfBarcodes |
| dSpaceID | raceground_space |
Private Attributes |
| list< AbstractTrackSection * > | SegmentList |
| bool | obstacle_exists |