1
0
mirror of https://gitlab.com/obbart/universal_robots_ros_driver.git synced 2026-04-10 18:10:47 +02:00

Clean up of old driver files

This commit is contained in:
Simon Rasmussen
2017-07-09 02:45:02 +02:00
parent 40fc986e7b
commit fdaaacfe2c
17 changed files with 5 additions and 2863 deletions

View File

@@ -1,30 +0,0 @@
#include "ur_modern_driver/ros/robot_hardware.h"
/*
bool RobotHardware::canSwitch(const std::list<ControllerInfo>& start_list,
const std::list<ControllerInfo>& stop_list) const
{
bool running = active_interface_ != nullptr;
size_t start_size = start_list.size();
size_t stop_size = stop_list.size();
for (auto const& ci : stop_list)
{
auto it = interfaces_.find(ci.hardware_interface);
if(it == interfaces_.end() || it->second != active_interface_)
return false;
}
for (auto const& ci : start_list)
{
auto it = interfaces_.find(ci.hardware_interface);
//we can only start a controller that's already running if we stop it first
if(it == interfaces_.end() || (it->second == active_interface_ && stop_size == 0))
return false;
}
return true;
}
*/