Main Page
Namespaces
Namespace List
Namespace Members
All
Functions
Enumerations
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
i
j
l
m
n
o
p
q
r
s
u
v
w
~
Functions
a
c
d
g
i
j
l
o
q
r
s
w
~
Variables
_
b
c
d
e
f
i
j
l
m
n
o
p
s
u
v
Typedefs
Enumerations
Related Functions
Files
File List
File Members
All
Functions
Variables
Enumerations
Macros
src
Joint.cpp
Go to the documentation of this file.
1
#include "
Joint.hpp
"
2
3
using namespace
quori_controller
;
4
5
std::ostream &
operator <<
(std::ostream &o,
const
Joint::Mode
&mode)
6
{
7
switch
(mode)
8
{
9
case
Joint::Mode::Position
:
return
o <<
"Position"
;
10
case
Joint::Mode::Velocity
:
return
o <<
"Velocity"
;
11
}
12
13
return
o;
14
}
15
16
Joint::Joint
()
17
:
command
(double())
18
, position(double())
19
, velocity(double())
20
, effort(double())
21
, mode(
Mode
::Position)
22
{
23
}
24
25
Joint::Joint
(
const
std::string &name)
26
: name(name)
27
,
command
(double())
28
, position(double())
29
, velocity(double())
30
, effort(double())
31
, mode(
Mode
::Position)
32
{
33
34
}
35
36
37
std::ostream &
operator <<
(std::ostream &o,
const
Joint
&joint)
38
{
39
return
o
40
<< joint.
name
41
<<
"(cmd = "
<< joint.
command
42
<<
", pos = "
<< joint.
position
43
<<
", vel = "
<< joint.
velocity
44
<<
", eff = "
<< joint.
effort
45
<<
", mode = "
<< joint.
mode
46
<<
")"
;
47
}
48
49
std::ostream &
operator <<
(std::ostream &o,
const
Joint::Ptr
&joint)
50
{
51
return
o
52
<< joint->name
53
<<
"(cmd = "
<< joint->command
54
<<
", pos = "
<< joint->position
55
<<
", vel = "
<< joint->velocity
56
<<
", eff = "
<< joint->effort
57
<<
", mode = "
<< joint->mode
58
<<
")"
;
59
}
60
61
std::ostream &
operator <<
(std::ostream &o,
const
Joint::ConstPtr
&joint)
62
{
63
return
o
64
<< joint->name
65
<<
"(cmd = "
<< joint->command
66
<<
", pos = "
<< joint->position
67
<<
", vel = "
<< joint->velocity
68
<<
", eff = "
<< joint->effort
69
<<
", mode = "
<< joint->mode
70
<<
")"
;
71
}
quori_controller::Joint::Joint
Joint()
Definition:
Joint.cpp:16
command
ROSLIB_DECL std::string command(const std::string &cmd)
quori_controller::Joint::command
double command
Definition:
Joint.hpp:25
quori_controller::Joint::position
double position
Definition:
Joint.hpp:26
quori_controller
Definition:
Csv.hpp:10
quori_controller::Joint::Mode::Position
@ Position
Joint.hpp
quori_controller::Joint::mode
Mode mode
Definition:
Joint.hpp:30
quori_controller::Joint::Mode::Velocity
@ Velocity
quori_controller::Joint::ConstPtr
std::shared_ptr< const Joint > ConstPtr
Definition:
Joint.hpp:14
quori_controller::Joint::effort
double effort
Definition:
Joint.hpp:28
quori_controller::Joint::Mode
Mode
Definition:
Joint.hpp:17
quori_controller::Joint::velocity
double velocity
Definition:
Joint.hpp:27
quori_controller::Joint::name
std::string name
Definition:
Joint.hpp:23
operator<<
std::ostream & operator<<(std::ostream &o, const Joint::Mode &mode)
Definition:
Joint.cpp:5
quori_controller::Joint::Ptr
std::shared_ptr< Joint > Ptr
Definition:
Joint.hpp:15
quori_controller::Joint
Definition:
Joint.hpp:9
quori_controller
Author(s):
autogenerated on Wed Mar 2 2022 00:53:16