ROS over network is slow

asked 2017-05-24 02:13:32 -0500

Hunk gravatar image

Hello,

we are using ROS over network with fast topics (100Hz) We have the problem that we get only a few topics (about ~1 second ) Anyone else has the same problems or has an idea how we can solve this ?

We added

ROS_MASTER_URI ROS_IP

on the laptop which hasn't the roscore

Thank you for your help

edit retag flag offensive close merge delete

Comments

Are you sure that ROS is the problem and not a slow connection?

NEngelhard gravatar image NEngelhard  ( 2017-05-24 02:43:24 -0500 )edit

@Hunk: could you please provide a bit more information? What sort of network are we talking about here? Which ROS transport are you using? What types of topics (large point clouds or small JointStates, etc)? Without more information it's going to be difficult to suggest anything.

gvdhoorn gravatar image gvdhoorn  ( 2017-05-24 03:04:16 -0500 )edit

we have really small messages like pose. And how i can determe which ros transport I'm using? I use ros kinetic with default settings

Hunk gravatar image Hunk  ( 2017-05-24 03:44:43 -0500 )edit

Then you're using TCPROS.

In any case: please provide more info on your network: wireless, wired, celullar, etc. And more info on how you configured everything: IPs, values of environment variables like ROS_IP. What is the output of ping IP_OF_LAPTOP, etc? Have you tried iperf?

gvdhoorn gravatar image gvdhoorn  ( 2017-05-24 04:08:02 -0500 )edit

If you do not need all published topics you can try http://wiki.ros.org/multimaster . If you want to use this package you should get the source code and make it a catkin package. You could also try this one http://www.ros.org/news/2015/10/nimbr...

angeltop gravatar image angeltop  ( 2017-05-25 02:26:53 -0500 )edit

I think it would be good to first figure out what is actually going on in @Hunk's network. Multimaster isn't going to help much if - for instance - he's using a (very) noisy wireless link. 100 Hz of Pose and some other msgs is nothing and should work fine on almost any network.

gvdhoorn gravatar image gvdhoorn  ( 2017-05-25 02:35:39 -0500 )edit

Were you able to solve it? I had similar issues, but sending images over wifi. Thank you

Rosbq gravatar image Rosbq  ( 2019-05-01 05:55:49 -0500 )edit

Any progress? I am trying to send pointclouds over ROS_IP TCP. rostopic hz is 2hz on SLAVE while it is 15hz on MASTER

darshb34 gravatar image darshb34  ( 2020-04-28 18:28:39 -0500 )edit