Ask Your Question
0

UDPROS more information needed on UDP Header

asked 2013-04-16 19:32:53 -0500

unknown_entity1 gravatar image

updated 2014-01-28 17:16:13 -0500

ngrennan gravatar image

Per the wiki on ROSUDP, the UDP Header starts out with Connection ID (8 bytes), Opcode (1 byte), Msg ID (1 byte), and Block Number(unspecified byte length).

What is the byte length of Block#? and what additional fields are missing from the documentation that are required by ROSUDP preceding the Connection Header and Message? I did a UDP trace using Wireshark, and I am not able to explain some of the bits. All help will be appreciated!

Thanks,

Aaron

Connection ID - This 32-bit value is determined during connection negotiation and is used to denote which connection the datagram is destined for. This parameter allows a single socket to service multiple UDPROS connections.

Opcode - UDPROS supports multiple datagram types. The opcode specifies the datagram type. This 8-bit field can have the following possible values:

DATA0 (0) - This opcode is sent in the first datagram of a ROS message
DATAN (1) - All subsequent datagrams of a ROS message use this opcode
PING (2) - A heartbeat packet is sent periodically to let the other side know that the connection is still alive
ERR (3) - An error packet is used to signal that a connection is closing unexpectedly

Message ID - This 8-bit value is incremented for each new message and is used to determine if datagrams have been dropped.

Block # - When the opcode is DATA0, this field contains the total number of UDPROS datagrams expected to complete the ROS message. When the opcode is DATAN, this field contains the current datagram number.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-04-17 08:44:25 -0500

tfoote gravatar image

If it's not documented the best approach will be to introspect what roscpp is doing in it's implementation.

edit flag offensive delete link more

Comments

@tfoote your right, that may be the only option if somebody is not familiar with it. I'm certain somebody on this answers forum knows the answer.

unknown_entity1 gravatar image unknown_entity1  ( 2013-04-17 09:59:53 -0500 )edit

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-04-16 19:32:53 -0500

Seen: 296 times

Last updated: Apr 17 '13