Main Page
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
c
d
e
f
i
j
k
l
m
n
o
p
r
s
t
v
w
+
Functions
c
d
e
i
m
o
p
r
s
v
w
Typedefs
Enumerations
Enumerator
+
Classes
Class List
+
Class Members
+
All
a
c
d
e
f
g
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
~
+
Functions
a
c
d
e
f
g
i
j
k
m
p
r
s
t
u
~
+
Variables
a
c
d
e
i
j
k
l
m
n
o
p
r
s
t
v
w
x
y
z
+
Files
File List
+
File Members
All
Typedefs
Macros
src
robotis_manipulator
robotis_manipulator_manager.cpp
Go to the documentation of this file.
1
/*******************************************************************************
2
* Copyright 2018 ROBOTIS CO., LTD.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*******************************************************************************/
16
17
/* Authors: Darby Lim, Hye-Jong KIM, Ryan Shim, Yong-Ho Na */
18
19
#include "../../include/robotis_manipulator/robotis_manipulator_manager.h"
20
21
using namespace
robotis_manipulator
;
22
23
bool
JointActuator::findId
(uint8_t actuator_id)
24
{
25
std::vector<uint8_t>
id
=
getId
();
26
for
(uint32_t index = 0; index <
id
.size(); index++)
27
{
28
if
(
id
.at(index) == actuator_id)
29
return
true
;
30
}
31
return
false
;
32
}
33
34
bool
JointActuator::getEnabledState
()
35
{
36
return
enabled_state_
;
37
}
38
39
bool
ToolActuator::findId
(uint8_t actuator_id)
40
{
41
if
(
getId
() == actuator_id)
42
{
43
return
true
;
44
}
45
return
false
;
46
}
47
48
bool
ToolActuator::getEnabledState
()
49
{
50
return
enabled_state_
;
51
}
robotis_manipulator::JointActuator::enabled_state_
bool enabled_state_
Definition:
robotis_manipulator_manager.h:61
robotis_manipulator::JointActuator::getEnabledState
bool getEnabledState()
Definition:
robotis_manipulator_manager.cpp:34
robotis_manipulator
Definition:
robotis_manipulator.h:30
robotis_manipulator::ToolActuator::getEnabledState
bool getEnabledState()
Definition:
robotis_manipulator_manager.cpp:48
robotis_manipulator::ToolActuator::findId
bool findId(uint8_t actuator_id)
Definition:
robotis_manipulator_manager.cpp:39
robotis_manipulator::JointActuator::getId
virtual std::vector< uint8_t > getId()=0
robotis_manipulator::JointActuator::findId
bool findId(uint8_t actuator_id)
Definition:
robotis_manipulator_manager.cpp:23
robotis_manipulator
Author(s): Hye-Jong KIM
, Darby Lim
, Yong-Ho Na
, Ryan Shim
autogenerated on Mon Feb 28 2022 23:26:08