Contains the member functions to drive the rover using its motors.
More...
#include <rover_driving.hpp>
Contains the member functions to drive the rover using its motors.
rover::RoverDriving::RoverDriving |
( |
| ) |
|
|
explicit |
rover::RoverDriving::~RoverDriving |
( |
| ) |
|
void rover::RoverDriving::differentialDrive |
( |
const float |
angular_speed, |
|
|
const float |
linear_speed |
|
) |
| |
Set the speed of the right and left wheels.
int rover::RoverDriving::getSpeed |
( |
void |
| ) |
|
Retrieves the current speed setpoint.
void rover::RoverDriving::goBackward |
( |
void |
| ) |
|
Commands the rover to go backward.
void rover::RoverDriving::goForward |
( |
void |
| ) |
|
Commands the rover to go forward.
void rover::RoverDriving::initialize |
( |
void |
| ) |
|
void rover::RoverDriving::setSpeed |
( |
const int |
speed_setpoint | ) |
|
Sets the speed. 360 -> Lowest speed (RoverDriving::LOWEST_SPEED), 480 -> Highest speed (RoverDriving::HIGHEST_SPEED)
void rover::RoverDriving::stopRover |
( |
void |
| ) |
|
Commands the rover to stop.
void rover::RoverDriving::turnBackwardLeft |
( |
void |
| ) |
|
Commands the rover to turn backward-left using only one motor.
void rover::RoverDriving::turnBackwardRight |
( |
void |
| ) |
|
Commands the rover to turn backward-right using only one motor.
void rover::RoverDriving::turnForwardLeft |
( |
void |
| ) |
|
Commands the rover to turn forward-left using only one motor.
void rover::RoverDriving::turnForwardRight |
( |
void |
| ) |
|
Commands the rover to turn forward-right using only one motor.
void rover::RoverDriving::turnLeft |
( |
void |
| ) |
|
Commands the rover to turn left on its spot.
void rover::RoverDriving::turnRight |
( |
void |
| ) |
|
Commands the rover to turn right on its spot.
int rover::RoverDriving::ROVERDRIVING_INIT_ |
|
private |
int rover::RoverDriving::SPEED |
|
private |
Speed for the rover movement. 360 -> Lowest speed (RoverDriving::LOWEST_SPEED), 480 -> Highest speed (RoverDriving::HIGHEST_SPEED).
The documentation for this class was generated from the following files: