Skip to content

Creating Nodes

Now you know most everything you need to know about launch files, it's time to learn how to create your own nodes. However, before we start, it's important for you to know how to set up a C++/Python environment since that is the language we use most often.

Setting up IDE

When working with large c++ projects, simple text editors like vim or sublime really don't cut it. Instead, we have IDE (Integrated Development Environment).

Setting up CLion

CLion is free for students who apply for a JetBrains student license. You can download it from the Ubuntu app center or from its official website.

Setting up VSCode

VSCode (Visual Studio Code) is completely free. You can download it from the Ubuntu app center or from its official website.

Two websites that might help:

Clion ROS2 setup tutorial

ROS 2 and VSCode

Creating Your Own Nodes

These links will take you to the official ROS2 tutorials which are pretty good at covering this subject.

Creating Nodes in C++:

ROS2: Writing a Simple Publisher and Subscriber (C++)

Creating Nodes in Python:

ROS2: Writing a Simple Publisher and Subscriber (Python)