How can you define
a CUSTOM Message in ROS?
my name is Tiziano
and if you are new to the channel, welcome
this is a series about ROS
the Robot Operating System
and especially ROS and Raspberry Pi
in the last 2 videos we created a simple Publisher
and a simple Subscriber node
both in Python, for sharing a information
using a standard message String
but what if you want to create your own message
that's not hard at all, and we're going to learn it in this tutorial
so, let's go to the laptop
now we want to create a custom message
the first thing we want to to is go to our package
and now in the package itself
we want to create a msg folder
now, in this msg folder is where we want to put all
the custom messages that we build
every message file has to have an extension .msg
here I have just to write all the fields that I want
and let's create a custom message that has
a String
a String value that we call data
and an Integer
counter
once we have created our custom message file
we need to modify Cmakelist and package.xml
so, let's open Cmakelist first
