Adding run configurations to run ROS nodes in Eclipse

After building the project, we may can run the node from Eclipse or from a terminal. For running the node inside Eclipse, right-click on the project and go to Run as | Run Configurations.

Create a New Launch Configuration under C/C++ Application. In the Main tab, browse the executable path in C/C++ Application. While we build the nodes in Eclipse, we can see the executable generating path. Browse the path of the executables here.

Here we are creating a launcher for the talker node, as shown in the following screenshot:

Figure 12: Creating the launcher for the talker node

After the preceding ...

Get ROS Programming: Building Powerful Robots now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.