Ask Your Question

ROS Communication over UDP

asked 2020-02-29 02:49:33 -0500

tschinz gravatar image

What is the state of the ROS UDP implementation? I would like to implement an FPGA Ros node myself but to implement TCP it will be difficult, UDP is very much preferred because of its simplicity. Are there more detailed information about packet structure and content then Does anyone have a small working example of that?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2020-02-29 04:10:28 -0500

gvdhoorn gravatar image

updated 2020-02-29 04:11:33 -0500

Afaik no one has worked on UDPROS in recent years.

Support in roscpp is OK-ish. There have been some PRs submitted to ros/ros_comm to fix some issues, but nothing too major.

As for rospy, there is essentially no support (I believe this comment from 2018-08-24 by @Dirk Thomas is still relevant):

I just wanted to note that UDP isn't supported by ROS in Python atm [..]

Note that the UDP transport uses single datagrams for each publication, it does not support sequencing, framing or reassembly. As a consequence, any messages that serialise into a bytestream > MTU will be either truncated or not published at all.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2020-02-29 02:49:33 -0500

Seen: 549 times

Last updated: Feb 29 '20