Ask Your Question

Why is ROS slower than a normal TCP connection?

asked 2017-12-11 00:18:15 -0500

Dhivin gravatar image

Why is ROS connections slower than a normal TCP socket connect?

edit retag flag offensive close merge delete



Can you clarify what is slower? Setting up connection, sending data (and then: bw or latency), tearing them down, something else?

gvdhoorn gravatar imagegvdhoorn ( 2017-12-11 01:00:14 -0500 )edit

I mean while sending and receiving data its slower than a TCP socket connection without ROS framework.

Dhivin gravatar imageDhivin ( 2017-12-11 01:46:36 -0500 )edit

How are you measuring this? If you are comparing sending a raw array of bytes versus publishing and receiving messages, then that is not a correct comparison.

gvdhoorn gravatar imagegvdhoorn ( 2017-12-11 05:15:29 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-12-11 02:45:34 -0500

Arjun S Kumar gravatar image

ROSTCP is an adapter that lets ROS send messages over TCP for topics; not for general use.

If you want a TCP socket, use the standard OS interface for creating a TCP socket.

Please check this

edit flag offensive delete link more


Not what i am asking.

Dhivin gravatar imageDhivin ( 2017-12-11 02:57:58 -0500 )edit

If this is not what you asked, then why did you mark the question as answered?

gvdhoorn gravatar imagegvdhoorn ( 2017-12-11 05:14:35 -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


Asked: 2017-12-11 00:18:15 -0500

Seen: 62 times

Last updated: Dec 11 '17