Robotis Manipulator  1.0.0
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 
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 
56 {
57  return enabled_state_;
58 }
virtual std::vector< uint8_t > getId()=0
getId
main namespace
bool findId(uint8_t actuator_id)
findId
bool findId(uint8_t actuator_id)
findId