include
tuw_geometry
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
tuw::Command::Command
Command()
constructor
Definition:
command.cpp:4
tuw::Command::w
double & w()
Definition:
command.cpp:18
tuw::Command
Definition:
command.h:16
tuw::CommandPtr
std::shared_ptr< Command > CommandPtr
Prototype.
Definition:
command.h:10
tuw
Definition:
command.h:8
tuw::CommandConstPtr
std::shared_ptr< Command const > CommandConstPtr
Definition:
command.h:11
tuw::Command::set
void set(double v, double w)
Definition:
command.cpp:26
tuw::Command::operator<<
friend std::ostream & operator<<(std::ostream &os, const Command &o)
Definition:
command.h:55
tuw::Command::v
double & v()
Definition:
command.cpp:10
tuw_geometry
Author(s): Markus Bader
autogenerated on Sun Feb 26 2023 03:25:40