Skip to Content
ROS Programming: Building Powerful Robots
book

ROS Programming: Building Powerful Robots

by Anil Mahtani, Luis Sanchez, Enrique Fernandez, Aaron Martinez, Lentin Joseph
March 2018
Intermediate to advanced content levelIntermediate to advanced
1396 pages
42h 14m
English
Packt Publishing
Content preview from ROS Programming: Building Powerful Robots

Step 11 – Running controller along with PR2 simulation in Gazebo

After creating the controller launch files, we have to test it on PR2. We can launch the PR2 robot simulation using following command:

$roslaunch pr2_gazebo pr2_empty_world.launch

When we launch the PR2 simulation, all controllers associated with PR2 also get started. The purpose of our controller is to move the r_shoulder_pan_joint of PR2. If there are existing controllers handling this same joint, our controller can't work properly. To avoid this situation, we need to stop the controller that is handling the right arm of PR2. The following command tells you which are the controllers that are associated with PR2:

$ rosrun pr2_controller_manager pr2_controller_manager list
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

Programming Robots with ROS

Programming Robots with ROS

Morgan Quigley, Brian Gerkey, William D. Smart
Machine Learning Design Patterns

Machine Learning Design Patterns

Valliappa Lakshmanan, Sara Robinson, Michael Munn

Publisher Resources

ISBN: 9781788627436Supplemental Content