xarm_combined_hw.cpp
Go to the documentation of this file.
1 /* Copyright 2020 UFACTORY Inc. All Rights Reserved.
2  *
3  * Software License Agreement (BSD License)
4  *
5  * Author: Jason Peng <jason@ufactory.cc>
6  ============================================================================*/
7 
8 #include "xarm_combined_hw.h"
9 
10 namespace xarm_control
11 {
13  {
14  std::vector<hardware_interface::RobotHWSharedPtr>::iterator robot_hw;
15  for (robot_hw = robot_hw_list_.begin(); robot_hw != robot_hw_list_.end(); ++robot_hw)
16  {
17  xarm_control::XArmHW* xarm_hw_ptr = dynamic_cast<xarm_control::XArmHW *>((*robot_hw).get());
18  if(xarm_hw_ptr->need_reset())
19  return true;
20  }
21  return false;
22  }
23 }
std::vector< hardware_interface::RobotHWSharedPtr > robot_hw_list_


xarm_controller
Author(s):
autogenerated on Sat May 8 2021 02:51:38