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

ROS compile script for Eclipse IDE

Compiling ROS nodes needs the ROS environment. We have to source /opt/ros/indigo/setup.bash to access the ROS environment in the current terminal. We can work from the system terminal because we already added this line to the .bashrc file, but when we work using Eclipse, we have to make a script to do this.

Create a file called eclipsemake in /usr/local/bin using the following command:

    $ sudo nano /usr/local/bin/eclipsemake
  

Enter the following commands in this file:

    #!/bin/bash
    
    source /opt/ros/indigo/setup.bash
    
    make "$@" VERBOSE=1 -j8
  
Figure 4: Script to source the ROS environment

Create another file ...

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