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 
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 
49 {
50  return enabled_state_;
51 }
virtual std::vector< uint8_t > getId()=0


robotis_manipulator
Author(s): Hye-Jong KIM , Darby Lim , Yong-Ho Na , Ryan Shim
autogenerated on Sat Oct 3 2020 03:14:51