Skip to content

Instantly share code, notes, and snippets.

@jzuern
Created September 17, 2018 08:21
Show Gist options
  • Save jzuern/207c542097d9e0b5b599c196b928b265 to your computer and use it in GitHub Desktop.
Save jzuern/207c542097d9e0b5b599c196b928b265 to your computer and use it in GitHub Desktop.
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