March 2018
Intermediate to advanced
1396 pages
42h 14m
English
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

Create another file ...