Robotis Manipulator
1.0.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
26
#include "../../include/robotis_manipulator/robotis_manipulator_manager.h"
27
28
using namespace
robotis_manipulator
;
29
30
bool
JointActuator::findId
(uint8_t actuator_id)
31
{
32
std::vector<uint8_t>
id
=
getId
();
33
for
(uint32_t index = 0; index <
id
.size(); index++)
34
{
35
if
(
id
.at(index) == actuator_id)
36
return
true
;
37
}
38
return
false
;
39
}
40
41
bool
JointActuator::getEnabledState
()
42
{
43
return
enabled_state_
;
44
}
45
46
bool
ToolActuator::findId
(uint8_t actuator_id)
47
{
48
if
(
getId
() == actuator_id)
49
{
50
return
true
;
51
}
52
return
false
;
53
}
54
55
bool
ToolActuator::getEnabledState
()
56
{
57
return
enabled_state_
;
58
}
robotis_manipulator::JointActuator::getId
virtual std::vector< uint8_t > getId()=0
getId
robotis_manipulator
main namespace
robotis_manipulator::JointActuator::getEnabledState
bool getEnabledState()
getEnabledState
Definition:
robotis_manipulator_manager.cpp:41
robotis_manipulator::JointActuator::enabled_state_
bool enabled_state_
Definition:
robotis_manipulator_manager.h:81
robotis_manipulator::JointActuator::findId
bool findId(uint8_t actuator_id)
findId
Definition:
robotis_manipulator_manager.cpp:30
robotis_manipulator::ToolActuator::getEnabledState
bool getEnabledState()
getEnabledState
Definition:
robotis_manipulator_manager.cpp:55
robotis_manipulator::ToolActuator::findId
bool findId(uint8_t actuator_id)
findId
Definition:
robotis_manipulator_manager.cpp:46
src
robotis_manipulator
robotis_manipulator_manager.cpp
Generated by
1.8.11