Dependencies: SimpleMapSerialization serial_communication
Diff: communication.hpp
- Revision:
- 2:074942a78af1
- Parent:
- 0:8b0edcbd3b87
- Child:
- 4:24d383b68566
--- a/communication.hpp Thu Mar 31 04:43:55 2016 +0000 +++ b/communication.hpp Sun Apr 03 06:30:39 2016 +0000 @@ -7,6 +7,8 @@ class communication { public: typedef mbed_stl::linear_algebra::vector2f vector2f; + + static const int velocity_offset_; static communication* instance() { if (instance_ == NULL) { @@ -19,12 +21,12 @@ } node_system::moving_object::CONTROL_MODE get_mode() const; vector2f get_velocity() const; - float get_angular_velocity_rad_per_sec() const; + float get_angular_velocity_rad_per_sec() const; vector2f get_target_position_mm() const; - float get_target_heading_rad() const; + float get_target_heading_rad() const; private: - communication() {} + communication(); ~communication() {} // singletonにつき禁止のため以下の二つの実装は無し void operator=(const communication& s);