Step 3 – Creating the controller configuration file for Gazebo

After creating the MoveIt! files, we have to create the Gazebo controller configuration file and the launch file.

Create a new file called trajectory_control.yaml , which contains the list of the Gazebo ROS controllers that need to be loaded along with Gazebo.

You will get this file from the the seven_dof_arm_gazebo package created in Chapter 4Simulating Robots Using ROS and Gazebo in the /config folder.

The following is the definition of this file:

seven_dof_arm: seven_dof_arm_joint_controller: type: "position_controllers/JointTrajectoryController" joints: - shoulder_pan_joint - shoulder_pitch_joint - elbow_roll_joint - elbow_pitch_joint - wrist_roll_joint - wrist_pitch_joint ...

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.