command.h
Go to the documentation of this file.
1 #ifndef COMMAND_H
2 #define COMMAND_H
3 
4 #include <memory>
5 #include <opencv2/core/core.hpp>
6 
7 
8 namespace tuw{
9 class Command;
10 using CommandPtr = std::shared_ptr< Command > ;
11 using CommandConstPtr = std::shared_ptr< Command const>;
12 
16 class Command : public cv::Vec<double,2>{
17 public:
19  Command ();
21  Command ( double v, double w );
23  Command ( const Command &o );
24 
28  double &v();
32  const double &v() const;
33 
37  double &w();
38 
42  const double &w() const;
43 
48  void set ( double v, double w );
55  friend std::ostream &operator << ( std::ostream &os, const Command &o ) {
56  os << "[" << o.v() << ", " << o.w() << "]";
57  return os;
58  };
59 };
60 };
61 
62 #endif //COMMAND_H
double & w()
Definition: command.cpp:18
Definition: command.h:8
std::shared_ptr< Command > CommandPtr
Prototype.
Definition: command.h:10
double & v()
Definition: command.cpp:10
std::shared_ptr< Command const > CommandConstPtr
Definition: command.h:11
Command()
constructor
Definition: command.cpp:4
friend std::ostream & operator<<(std::ostream &os, const Command &o)
Definition: command.h:55


tuw_geometry
Author(s): Markus Bader
autogenerated on Mon Jun 10 2019 15:33:08