## For instruction on writing tutorials ## http://www.ros.org/wiki/WritingTutorials #################################### ##FILL ME IN #################################### ## for a custom note with links: ## note = ## for the canned note of "This tutorial assumes that you have completed the previous tutorials:" just add the links ## note.0= ## descriptive title for the tutorial ## title = Loading and starting controllers through service calls ## multi-line description to be displayed in search ## description = How to start controllers in ros_control ## the next tutorial description (optional) ## next = ## links to next tutorial (optional) ## next.0.link= ## next.1.link= ## what level user is this tutorial for ## level= BeginnerCategory ## keywords = #################################### <> <> Controllers are loaded into the the controller_manager through service requests. These service requests can be sent manually at the command line, or through the controller spawner python script that can be used inside of roslaunch files. == Command Line Service Calls == === Load the controllers: === {{{ rosservice call /rrbot/controller_manager/load_controller "name: 'joint1_position_controller'" rosservice call /rrbot/controller_manager/load_controller "name: 'joint2_position_controller'" }}} === Start the controllers: === {{{ rosservice call /rrbot/controller_manager/switch_controller "{start_controllers: ['joint1_position_controller','joint2_position_controller'], stop_controllers: [], strictness: 2}" }}} === Stop the controllers: === {{{ rosservice call /rrbot/controller_manager/switch_controller "{start_controllers: [], stop_controllers: ['joint1_position_controller','joint2_position_controller'], strictness: 2}" }}} == ROSLaunch Call == The following uses a mode controller to tell the hardware interface which control mode to use (velocity in this instance). It also loads a controller for each arm of the robot in this example. This spawner loads and starts all three controllers. {{{ }}} ## AUTOGENERATED DO NOT DELETE ## TutorialCategory ## FILL IN THE STACK TUTORIAL CATEGORY HERE