Step 4 – Creating the launch file for Gazebo trajectory controllers

After creating the configuration file, we can load the controllers along with Gazebo. We have to create a launch file which launches Gazebo, the trajectory controllers, and the MoveIt! interface in a single command.

The launch file seven_dof_arm_bringup_moveit.launch contains the definition to launch all these commands:

<launch> <!-- Launch Gazebo --> <include file="$(find seven_dof_arm_gazebo)/launch/seven_dof_arm_world.launch" /> <!-- ros_control seven dof arm launch file --> <include file="$(find seven_dof_arm_gazebo)/launch/seven_dof_arm_gazebo_states.launch" /> <!-- ros_control trajectory control dof arm launch file --> <include file="$(find seven_dof_arm_gazebo)/launch/seven_dof_arm_trajectory_controller.launch" ...

Get Mastering ROS for Robotics Programming - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.