Understanding the rosserial package in ROS

The rosserialpackage is a set of standardized communication protocols implemented for communicating from ROS to character devices such as serial ports, and sockets, and vice versa. The rosserial protocol can convert the standard ROS messages and services data types to embedded device equivalent data types. It also implements multitopic support by multiplexing the serial data from a character device. The serial data is sent as data packets by adding header and tail bytes on the packet. The packet representation is shown next:

Figure 2 : rosserial packet representation

The function of each byte follows: ...

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.