-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaligning.hh
More file actions
34 lines (22 loc) · 844 Bytes
/
aligning.hh
File metadata and controls
34 lines (22 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef ALIGNING_ROBOT_HH
#define ALIGNING_ROBOT_HH
#include "robot.hh"
class AligningRobot;
// Definition of a pointer to an aggregation robot (unnecessary)
typedef std::shared_ptr<AligningRobot> AligningRobotPtr;
class AligningRobot : public mrs::Robot {
public:
// Constructor for the Flocking Robot
AligningRobot(unsigned int id, const mrs::Position2d & p,
const mrs::RobotSettings & settings = mrs::defaultRobotSettings,
const mrs::Velocity2d & vel = mrs::Velocity2d::Random());
// Method to compute the action
const mrs::Velocity2d & action(std::vector<mrs::RobotPtr> & swarm);
// Name of the type of flocking robot
std::string name() const {return std::string("Align");}
mrs::RobotPtr clone() const;
// TODO: Add new methods here
private:
// TODO: Add data here for each robot
};
#endif