Skip to content

Commit 75375de

Browse files
committed
remove old code
1 parent a0ffcff commit 75375de

File tree

1 file changed

+0
-101
lines changed

1 file changed

+0
-101
lines changed

controller_manager/include/controller_manager/controller_spec.hpp

Lines changed: 0 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -212,107 +212,6 @@ struct ControllerPeerInfo
212212
}
213213
}
214214
}
215-
216-
// void get_predecessors(std::vector<std::string> &total_list, const std::string
217-
// &untill_controller) const
218-
// {
219-
// for (const auto & predecessor : predecessors)
220-
// {
221-
// if(!predecessor)
222-
// {
223-
// continue;
224-
// }
225-
// if(predecessor->name == untill_controller)
226-
// {
227-
// RCLCPP_INFO(
228-
// rclcpp::get_logger("controller_manager"), "skipping predecessor: %s - %s",
229-
// predecessor->name.c_str(), untill_controller.c_str());
230-
// continue;
231-
// }
232-
// const std::string predecessor_name = predecessor->name;
233-
// if(!ros2_control::has_item(total_list, predecessor_name))
234-
// {
235-
// RCLCPP_INFO(
236-
// rclcpp::get_logger("controller_manager"),
237-
// "Getting Predecessor: %s, Successor: %s - %s", predecessor_name.c_str(), name.c_str(),
238-
// untill_controller.c_str());
239-
// total_list.push_back(predecessor_name);
240-
// predecessor->get_predecessors(total_list, predecessor_name);
241-
// }
242-
// }
243-
// }
244-
245-
// void get_successors(std::vector<std::string> &total_list, const std::string &untill_controller)
246-
// const
247-
// {
248-
// for (const auto & successor : successors)
249-
// {
250-
// if(!successor)
251-
// {
252-
// continue;
253-
// }
254-
// if(successor->name == untill_controller)
255-
// {
256-
// RCLCPP_INFO(
257-
// rclcpp::get_logger("controller_manager"), "skipping successor: %s - %s",
258-
// successor->name.c_str(), untill_controller.c_str());
259-
// continue;
260-
// }
261-
// const std::string successor_name = successor->name;
262-
// if(!ros2_control::has_item(total_list, successor_name))
263-
// {
264-
// RCLCPP_INFO(
265-
// rclcpp::get_logger("controller_manager"),
266-
// "Getting Successor: %s, Predecessor: %s - %s", successor_name.c_str(), name.c_str(),
267-
// untill_controller.c_str());
268-
// total_list.push_back(successor_name);
269-
// successor->get_successors(total_list, successor_name);
270-
// }
271-
// }
272-
// }
273-
274-
// void get_successors_and_predecessors(std::vector<std::string> &total_list, const std::string
275-
// &untill_controller) const
276-
// {
277-
// for (const auto & predecessor : predecessors)
278-
// {
279-
// if(!predecessor)
280-
// {
281-
// continue;
282-
// }
283-
// if(predecessor->name == untill_controller)
284-
// {
285-
// continue;
286-
// }
287-
// const std::string predecessor_name = predecessor->name;
288-
// if(!ros2_control::has_item(total_list, predecessor_name))
289-
// {
290-
// RCLCPP_INFO(
291-
// rclcpp::get_logger("controller_manager"),
292-
// "Predecessor: %s, Successor: %s - %s", predecessor_name.c_str(), name.c_str(),
293-
// untill_controller.c_str());
294-
// total_list.push_back(predecessor_name);
295-
// predecessor->get_successors_and_predecessors(total_list, predecessor_name);
296-
// }
297-
// }
298-
// for (const auto & successor : successors)
299-
// {
300-
// if(!successor)
301-
// {
302-
// continue;
303-
// }
304-
// if(successor->name == untill_controller)
305-
// {
306-
// continue;
307-
// }
308-
// const std::string successor_name = successor->name;
309-
// if(!ros2_control::has_item(total_list, successor_name))
310-
// {
311-
// total_list.push_back(successor_name);
312-
// successor->get_successors_and_predecessors(total_list, successor_name);
313-
// }
314-
// }
315-
// }
316215
};
317216
/// Controller Specification
318217
/**

0 commit comments

Comments
 (0)