3 from controller_manager
import controller_manager_interface
10 self.assertTrue(controller_manager_interface.load_controller(
'my_controller1'))
13 self.assertFalse(controller_manager_interface.load_controller(
'non_existent_controller'))
16 self.assertTrue(controller_manager_interface.start_controller(
'my_controller1'))
19 self.assertFalse(controller_manager_interface.start_controller(
'my_controller3'))
22 self.assertTrue(controller_manager_interface.stop_controller(
'my_controller1'))
25 self.assertTrue(controller_manager_interface.load_controller(
'my_controller3'))
28 self.assertTrue(controller_manager_interface.start_controllers((
'my_controller1',
'my_controller3')))
31 self.assertTrue(controller_manager_interface.stop_controllers((
'my_controller1',
'my_controller3')))
34 self.assertTrue(controller_manager_interface.reload_libraries(force_kill=
True, restore=
True))
37 self.assertTrue(controller_manager_interface.unload_controller(
'my_controller1'))
39 self.assertTrue(controller_manager_interface.unload_controller(
'my_controller3'))
42 self.assertTrue(controller_manager_interface.load_controller(
'my_controller1'))
45 self.assertFalse(controller_manager_interface.reload_libraries(force_kill=
False, restore=
True))
48 self.assertTrue(controller_manager_interface.reload_libraries(force_kill=
True, restore=
False))
51 self.assertTrue(controller_manager_interface.reload_libraries(force_kill=
False, restore=
False))
54 if __name__ ==
'__main__':
56 rostest.rosrun(
'controller_manager_msgs',
57 'controller_manager_scripts_rostest',