Created
September 17, 2018 08:21
-
-
Save jzuern/207c542097d9e0b5b599c196b928b265 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Robot { | |
public: | |
Robot(int x_start, int y_start, float orientation, int radius, SDL_Color col); | |
~Robot(); | |
void render(SDL_Renderer * ren); | |
void move(const Uint8 * , Eigen::VectorXf & control); | |
void moveForward(Eigen::VectorXf & control); | |
void moveBackward(Eigen::VectorXf & control); | |
void rotateLeft(Eigen::VectorXf & control); | |
void rotateRight(Eigen::VectorXf & control); | |
void setPose(float x, float y, float phi); | |
Eigen::VectorXf get_state(); | |
std::vector<Landmark> measureLandmarks(std::vector<Landmark> landmarks); | |
private: | |
Pose pose; | |
Velocity velocity; | |
SDL_Color color; | |
int radius; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment