![]() |
Roomba Controller Dashboard 1
A GUI and TCP client application that is used to control a Roomba for Computer Engineering 2880 @ Iowa State
|
#include <Pillar.hpp>
Public Member Functions | |
Pillar () | |
Pillar (const Pose2D &position, double radius) | |
Pillar (double x, double y, double heading, double radius) | |
Pillar (double x, double y, double radius) | |
Pose2D & | getPose () |
double | getX () |
double | getY () |
double | getRadius () const |
void | setRadius (double newRadius) |
void | setPosition (const Pose2D &newPosition) |
Static Public Member Functions | |
static Pillar | parseFromStream (std::istringstream &stream) |
Protected Attributes | |
Pose2D | position |
double | radius |
A Pillar is a cyclinder on the field. It has both a position and a radius.
Definition at line 14 of file Pillar.hpp.
Pillar::Pillar | ( | ) |
Constructs a new pillar object
Definition at line 7 of file Pillar.cpp.
Pillar::Pillar | ( | const Pose2D & | position, |
double | radius ) |
Makes a new pillar with given position and radius
position | the position of the pillar on the field |
radius | the radius of the pillar on the field |
Definition at line 18 of file Pillar.cpp.
Pillar::Pillar | ( | double | x, |
double | y, | ||
double | heading, | ||
double | radius ) |
Constructs a new pillar from components
x | component of position |
y | component of position |
heading | component of position |
radius | of the pillar |
Definition at line 12 of file Pillar.cpp.
Pillar::Pillar | ( | double | x, |
double | y, | ||
double | radius ) |
Constructs a new pillar from components. ignores heading
x | the x component of the position |
y | the y component of the position |
radius | the radius of the pillar |
Definition at line 23 of file Pillar.cpp.
Pose2D & Pillar::getPose | ( | ) |
Gets a reference to the position of the pillar. If Pose2D functions are called on that reference it will effect this pillars position
Definition at line 29 of file Pillar.cpp.
double Pillar::getRadius | ( | ) | const |
Definition at line 41 of file Pillar.cpp.
double Pillar::getX | ( | ) |
Definition at line 33 of file Pillar.cpp.
double Pillar::getY | ( | ) |
Definition at line 37 of file Pillar.cpp.
|
static |
Makes a pillar from a given string stream. Formatted as: X Y theta R
stream | the stream in which to parse the pillar from |
Definition at line 50 of file Pillar.cpp.
void Pillar::setPosition | ( | const Pose2D & | newPosition | ) |
Sets the position of the pillar
newPosition | the new position to set to |
Definition at line 58 of file Pillar.cpp.
void Pillar::setRadius | ( | double | newRadius | ) |
Sets the radius of the pillar
newRadius | the radius to set to |
Definition at line 45 of file Pillar.cpp.
|
protected |
Pose to handle position and related math
Definition at line 19 of file Pillar.hpp.
|
protected |
The radius of the pillar
Definition at line 24 of file Pillar.hpp.