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

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

Comments

1

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

gvdhoorn gravatar image gvdhoorn  ( 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 image Dhivin  ( 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 image gvdhoorn  ( 2017-12-11 05:15:29 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

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

https://github.com/abhinavjain241/com...

edit flag offensive delete link more

Comments

Not what i am asking.

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

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

gvdhoorn gravatar image gvdhoorn  ( 2017-12-11 05:14:35 -0500 )edit

Question Tools

1 follower

Stats

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

Seen: 330 times

Last updated: Dec 11 '17