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

Creating our own workspace

Before proceeding to further examples, we are going to create our own workspace. In this workspace, we will centralize all the code used throughout this section.

To see the workspace that ROS is using, use the following command:

    $ echo $ROS_PACKAGE_PATH  

You will see output similar to the following:

    /opt/ros/kinetic/share:/opt/ros/kinetic/stacks  

The folder that we are going to create is in ~/dev/catkin_ws/src/. To add this folder, we use the following commands:

    $ mkdir -p ~/dev/catkin_ws/src
    $ cd ~/dev/catkin_ws/src
    $ catkin_init_workspace  

Once we've created the workspace folder, there are no packages inside-only a CMakeList.txt file. The next step is building the workspace. To do this, we use the following ...

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