root / scout / libscout / src / helper_classes / ScoutPosition.cpp @ bb64f5e5
History | View | Annotate | Download (300 Bytes)
1 | bb64f5e5 | Priya | #include "ScoutPosition.h" |
---|---|---|---|
2 | |||
3 | using namespace std; |
||
4 | |||
5 | void pos::init()
|
||
6 | { |
||
7 | x = 0;
|
||
8 | y = 0;
|
||
9 | theta = 0;
|
||
10 | name = std::string(""); |
||
11 | } |
||
12 | |||
13 | void pos::set_name(string new_name) |
||
14 | { |
||
15 | name = string(new_name);
|
||
16 | } |
||
17 | |||
18 | void pos::update(float new_x, float new_y, float new_t) |
||
19 | { |
||
20 | x = new_x; |
||
21 | y = new_y; |
||
22 | theta = new_t; |
||
23 | } |