Skip to Content
ROS Robotics By Example - Second Edition
book

ROS Robotics By Example - Second Edition

by Lentin Joseph, Carol Fairchild, Dr. Thomas L. Harman
November 2017
Beginner
484 pages
10h 25m
English
Packt Publishing
Content preview from ROS Robotics By Example - Second Edition

Creating and building a ROS package

Before we begin to design and build our robot model in simulation, we should create our first ROS package. In Chapter 1, Getting Started with ROS, we created a ROS catkin workspace under /home/<username>/catkin_ws. The structure of a catkin workspace looks like this:

catkin_ws/                     -- WORKSPACE
build/                         -- BUILD SPACE
devel/                         -- DEVEL SPACE
src/                           -- SOURCE SPACE
CMakeLists.txt          -- 'Toplevel' CMake file, provided by catkin

Tip

Make sure that you have source ~/catkin_ws/devel/setup.bash in your .bashrc file, or this command is entered at the terminal window prompt.

We begin by moving to your catkin workspace source directory:

$ cd ~/catkin_ws/src

Now, let's create our first ROS package, ros_robotics:

$ catkin_create_pkg ros_robotics ...
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

ROS Robotics By Example

ROS Robotics By Example

Carol Fairchild, Dr. Thomas L. Harman
Hands-On ROS for Robotics Programming

Hands-On ROS for Robotics Programming

Bernardo Ronquillo Japón
ROS Robotics Projects - Second Edition

ROS Robotics Projects - Second Edition

Ramkumar Gandhinathan, Lentin Joseph

Publisher Resources

ISBN: 9781788479592Supplemental Content