Skip to Content
Robot Operating System Cookbook
book

Robot Operating System Cookbook

by Kumar Bipin
June 2018
Intermediate to advanced
484 pages
11h 36m
English
Packt Publishing
Content preview from Robot Operating System Cookbook

Creating ROS messages

In this section, we will learn how to create a user-defined custom message using the .msg file, which will be used in our nodes. This contains a specification about the type of data to be transmitted. The ROS build system will use this file to create the necessary code to implement the message in the ROS computational framework or network.

In the previous section, Creating nodes, we created two nodes with a standard type message. Now, we will learn how to create custom messages with ROS tools.

First, create a msg folder in the chapter2_tutorials package. Furthermore, create a new chapter2_msg.msg file there and add the following lines:

int32 A 
int32 B 
int32 C 

Furthermore, we will have to search for the following lines ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mobile Intelligent Autonomous Systems

Mobile Intelligent Autonomous Systems

Jitendra R. Raol, Ajith K. Gopal
Wheeled Mobile Robotics

Wheeled Mobile Robotics

Gregor Klancar, Andrej Zdesar, Saso Blazic, Igor Skrjanc

Publisher Resources

ISBN: 9781783987443Supplemental Content