Robot Simulator of the Robotics Group for Self-Organization of Control  0.8.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RaceGround Class Reference

#include <raceground.h>

Inheritance diagram for RaceGround:
Collaboration diagram for RaceGround:

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. More...
 
void setNumberOfSegments (int number)
 you set the number of segments of the track More...
 
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 More...
 
void addSegments (list< AbstractTrackSection * > listToAdd)
 adds the segments in the list to the SegmentList More...
 
void addSegment (AbstractTrackSection *Segment)
 adds the segment to the SegmentList More...
 
void addSegment (string &name)
 adds the named segment to the SegmentList names are: straightline: StraightLine 90degree : DegreeSegment More...
 
void addSegments (list< string > names)
 adds the named segments in the list to the SegmentList names are: straightline: StraightLine 90degree : 90DegreeSegment More...
 
virtual void draw ()
 draws all the segments stored in SegmentList More...
 
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
 

Constructor & Destructor Documentation

RaceGround ( const OdeHandle &  odehandle)
inline
RaceGround ( const OdeHandle &  odehandle,
const Matrix pose 
)
inline
RaceGround ( const OdeHandle &  odehandle,
const Position pos,
double  angle 
)
inline
~RaceGround ( )
inline

Destructor.

Member Function Documentation

void addSegment ( AbstractTrackSection Segment)
inline

adds the segment to the SegmentList

void addSegment ( string &  name)
inline

adds the named segment to the SegmentList names are: straightline: StraightLine 90degree : DegreeSegment

void addSegments ( list< AbstractTrackSection * >  listToAdd)
inline

adds the segments in the list to the SegmentList

void addSegments ( list< string >  names)
inline

adds the named segments in the list to the SegmentList names are: straightline: StraightLine 90degree : 90DegreeSegment

virtual void create ( )
inlineprotectedvirtual
virtual void destroy ( )
inlineprotectedvirtual
virtual void draw ( )
inlinevirtual

draws all the segments stored in SegmentList

virtual void getPosition ( double &  x,
double &  y,
double &  z 
)
inlinevirtual
pair<double, double> getPositionOnTrack ( const Position p)
inline

returns the barcode number of the given point returns (length,width) (-1,-1) if point is not on the track

virtual void setColor ( double  r,
double  g,
double  b 
)
inlinevirtual
virtual void setGeometry ( double  length_,
double  width_,
double  height_ 
)
inlinevirtual
void setNumberOfSegments ( int  number)
inline

you set the number of segments of the track

virtual void setParameters ( const Matrix initpose)
inlineprotectedvirtual
virtual void setPosition ( double  x,
double  y,
double  z 
)
inlinevirtual

Member Data Documentation

double height
protected
double length
protected
double numberOfBarcodes
protected
Matrix pose
protected
dSpaceID raceground_space
protected
double trackLength
protected
double width
protected

The documentation for this class was generated from the following file: