[ROS In 5 Minutes] 002 – How to create a ROS Package

Written by Ruben Alves

28/04/2018

Hi all,

welcome to this “ROS In 5 Minutes” videos series.

In today’s video, we are going to see how to create a ROS Package.

But before we start, if you want to Learn ROS Fast, we recommend you the following courses:

ROS In 5 Days (Python) 
ROS In 5 Days (C++)

Either you like the video or not, please leave a comment on the comments section below, so we can interact and learn from each other.

Step1. Create a project in Robot Ignite Academy(RIA)

We have the best online ROS course available in RIA. It helps you learn ROS in the easiest way without setting up ROS environment locally. The only thing you need is a browser! Create an account here and start to browse the trial course for free now! We’ll use the ROS Basics in 5 Days course as an example today.

Step2. Create a ROS Package

You can see the help about the catkin_create_pkg by passing the “-h” parameter: catkin_create_pkg -h

To create your package in the catkin_ws/src folder with the command catkin_create_pkg +package name +package dependencies. For example,

catkin_create_pkg tutorial rospy std_msgs

Here we create a package called tutorial with the dependencies rospy and std_msgs because we want to use the python api and std_msgs package.

After that, ROS will create a package for you. Inside the package, you’ll find the package.xml and CMakeLists.txt which will help you to compile the package.

You can compile them with the catkin_make command.

But sometimes when you create a package, ROS is not able to find it “instantly”. If this happens, just type source devel/setup.bash  to source the file.

Want to learn more?

If you are interested in this topic please visit our ROS In 5 Days (Python)  course. You’ll learn how to create workspace, package, topic, service, and action in this course.

 

Edit by: Tony Huang

Masterclass 2023 batch2 blog banner

Check Out These Related Posts

129. ros2ai

129. ros2ai

I would like to dedicate this episode to all the ROS Developers who believe that ChatGPT or...

read more

0 Comments

Submit a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Pin It on Pinterest

Share This