Main Page
Namespaces
Classes
Files
File List
File Members
src
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
{
12
bool
XArmCombinedHW::need_reset
()
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
}
combined_robot_hw::CombinedRobotHW::robot_hw_list_
std::vector< hardware_interface::RobotHWSharedPtr > robot_hw_list_
xarm_control
Definition:
xarm_combined_hw.h:11
xarm_control::XArmHW
Definition:
xarm_hw.h:40
xarm_combined_hw.h
xarm_control::XArmHW::need_reset
bool need_reset()
Definition:
xarm_hw.cpp:321
xarm_control::XArmCombinedHW::need_reset
bool need_reset()
Definition:
xarm_combined_hw.cpp:12
xarm_controller
Author(s):
autogenerated on Sat May 8 2021 02:51:38