Skip to Content
Mastering ROS for Robotics Programming - Second Edition
book

Mastering ROS for Robotics Programming - Second Edition

by Lentin Joseph, Jonathan Cacace
February 2018
Beginner
580 pages
13h 20m
English
Packt Publishing
Content preview from Mastering ROS for Robotics Programming - Second Edition

Step 10 – Writing the launch file for the controller

The joint assigned for showing the working of this controller is shoulder_pan_joint of the robot seven_dof_arm. After creating the YAML file, we can create a launch file inside the launch folder, which can load the controller configuration file and run the controller. The launch file is called my_controller.launch, which is given as follows:

<?xml version="1.0" ?> 
<launch> 
  <include file="$(find my_controller)/launch/seven_dof_arm_world.launch" />    
  <rosparam file="$(find my_controller)/my_controller.yaml" command="load"/> 
  <node name="my_controller_spawner" pkg="controller_manager" type="spawner" respawn="false" 
   output="screen" args="my_controller_name"/> 
</launch> 

In the following code, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering ROS for Robotics Programming - Third Edition

Mastering ROS for Robotics Programming - Third Edition

Lentin Joseph, Jonathan Cacace
Effective Robotics Programming with ROS - Third Edition

Effective Robotics Programming with ROS - Third Edition

Luis Sanchez, Enrique Fernandez Perdomo, Anil Mahtani

Publisher Resources

ISBN: 9781788478953Supplemental Content