Robson Cardoso dos Santos / Sophia
Embed: (wiki syntax)

« Back to documentation index

Sophia Class Reference

Sophia Class Reference

Interface to control a Sophia robot. More...

#include <Sophia.h>

Public Member Functions

void move (float speed, int direction)
 Set the direction of Sophia and the speed of the motor.
void turn (float speed, int direction)
 Sets the side to turn and the speed of the motor.
void spin (float speed, int direction)
 Sets the side to spin and the speed of the motor.

Detailed Description

Interface to control a Sophia robot.

Definition at line 13 of file Sophia.h.


Member Function Documentation

void move ( float  speed,
int  direction 
)

Set the direction of Sophia and the speed of the motor.

Parameters:
speedThe speed of the motor as a normalised value between -1.0 and 1.0
directionThe desired direction to move the robot, FWD or REV

Definition at line 8 of file Sophia.cpp.

void spin ( float  speed,
int  direction 
)

Sets the side to spin and the speed of the motor.

Parameters:
speedThe speed of the motor as a normalised value between -1.0 and 1.0
directionThe desired direction to move the robot, LEFT or RIGHT.

Definition at line 29 of file Sophia.cpp.

void turn ( float  speed,
int  direction 
)

Sets the side to turn and the speed of the motor.

Parameters:
speedThe speed of the motor as a normalised value between -1.0 and 1.0
directionThe desired direction to move the robot, LEFT or RIGHT.

Definition at line 19 of file Sophia.cpp.