ros-controls/ros_control — pull request #107 by kphawkins (2013-07-30 10:59:37+00:00)
Title: Fix controller_manager.cpp reload-libraries/getControllerNames not clearing names first

getControllerNames now clears names before adding current names. This fixes a bug in reloadControllerLibrariesSrv where the method is called twice in a row without first clearing the list.

Steps to reproduce:
- Spawn controller
- Stop controller
- reload-libraries

controller_manager.cpp:501: bool controller_manager::ControllerManager::reloadControllerLibrariesSrv(controller_manager_msgs::ReloadControllerLibraries::Request&, controller_manager_msgs::ReloadControllerLibraries::Response&): Assertion `controllers.empty()' failed.