Fido
 All Classes Namespaces Files Functions Variables Typedefs Macros Pages
Classes | Public Member Functions | Public Attributes | List of all members
Simlink Class Reference

A robotic simulator. More...

#include <Simlink.h>

Public Member Functions

 Simlink ()
 
 ~Simlink ()
 
void closeWindow ()
 
void setLED (int r, int g, int b, int i)
 
int getMicrophone ()
 
int getIR ()
 
int getVis ()
 
void chirp (int volume, int frequency)
 
void setMotors (int motorOne, int motorTwo, double speed, double deltaTime)
 
void stop ()
 
int getBattery ()
 
TDVect getAccel ()
 
TDVect getCompass ()
 
TDVect getGyro ()
 
bool isLeftOfLine ()
 
void getBallDisplacement (double *x, double *z)
 
double distanceFromLine ()
 
int getTemperature ()
 
void placeRobotInRandomPosition ()
 
void placeEmitterInRandomPosition ()
 
double getDistanceOfRobotFromEmitter ()
 
void getRobotDisplacementFromEmitter (double *x, double *y)
 
void placeLine (sf::Vector2f p1, sf::Vector2f p2)
 

Public Attributes

Robby robot
 
Emitter emitter
 
sf::CircleShape ball
 
int visVal
 

Detailed Description

A robotic simulator.

Constructor & Destructor Documentation

Simlink::Simlink ( )
Simlink::~Simlink ( )

Member Function Documentation

void Simlink::chirp ( int  volume,
int  frequency 
)
void Simlink::closeWindow ( )
double Simlink::distanceFromLine ( )
TDVect Simlink::getAccel ( )
void Simlink::getBallDisplacement ( double *  x,
double *  z 
)
int Simlink::getBattery ( )
TDVect Simlink::getCompass ( )
double Simlink::getDistanceOfRobotFromEmitter ( )
TDVect Simlink::getGyro ( )
int Simlink::getIR ( )
int Simlink::getMicrophone ( )
void Simlink::getRobotDisplacementFromEmitter ( double *  x,
double *  y 
)
int Simlink::getTemperature ( )
int Simlink::getVis ( )
bool Simlink::isLeftOfLine ( )
void Simlink::placeEmitterInRandomPosition ( )
void Simlink::placeLine ( sf::Vector2f  p1,
sf::Vector2f  p2 
)
void Simlink::placeRobotInRandomPosition ( )
void Simlink::setLED ( int  r,
int  g,
int  b,
int  i 
)
void Simlink::setMotors ( int  motorOne,
int  motorTwo,
double  speed,
double  deltaTime 
)
void Simlink::stop ( )

Member Data Documentation

sf::CircleShape Simlink::ball
Emitter Simlink::emitter
Robby Simlink::robot
int Simlink::visVal

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