ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

How to use protobuf with ros?

asked 2019-11-24 23:01:15 -0500

clepz gravatar image

Hello everyone,

I have been searching for hours but I couldn't find any documentation about how to use protobuf with ros. I really don't know how to create a message with protobuf. If anyone could help me I would be glad.

edit retag flag offensive close merge delete

Comments

1

A bit pedantic maybe, but:

  1. what does "use with ROS" mean exactly? Are you looking to have the ROS middleware communicate using Protobuf, or do you have a Protobuf message that you'd like to be compiled?
  2. ROS does not affect anything here, as Protobuf is just-another-library. How would you do this with CMake? Please realise: Catkin is a thin convenience layer over CMake.
gvdhoorn gravatar image gvdhoorn  ( 2019-11-24 23:37:20 -0500 )edit

http://wiki.ros.org/sig/NextGeneratio... I want to publish my proto message. I tried few things but I couldn't succeed.

clepz gravatar image clepz  ( 2019-11-25 03:23:59 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-11-25 03:45:47 -0500

gvdhoorn gravatar image

updated 2019-11-25 03:52:59 -0500

http://wiki.ros.org/sig/NextGeneratio...

The page you link to is very old (note the "last edited 2013-06-11" at the bottom right).

It is a page with notes from the very earliest beginnings of ROS 2, where multiple different middleware and (de)serialisation libraries and frameworks were being investigated (edit: I've updated the page to clearly state this: diff).

The current design of ROS 2 is (at a high-level) documented on design.ros2.org. The wiki page you link to probably was in the end used to write ROS on ZeroMQ and Friends and ROS on DDS.

I want to publish my proto message. I tried few things but I couldn't succeed.

Protobuf is not used in ROS 1, nor in ROS 2.

There is no official support for Protobuf messages in either ROS version.

There is a(n ongoing) discussion about this over in ros/ros_comm/issues/1085, but personally I don't see this happening in ROS 1. Some of the comments on that issue point to user-created extensions or packages that enable the use of Protobuf, perhaps you could take a look at them.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-11-24 23:01:15 -0500

Seen: 4,802 times

Last updated: Nov 25 '19