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

Networking problem with Xtion

asked 2013-03-05 22:34:05 -0500

liborw gravatar image

updated 2016-10-24 09:01:09 -0500

ngrennan gravatar image

Hello,

I have Asus Xtion connected to one PC and rosmaster on other connected by local network, everything worked fine till couple of days ago, the frame rate of the Xtion on the rosmaster PC dropped from 30 fps to 1 fps for images and even lower for points. Does someone experience the same behaviour? Is is possible to debug it somehow.

Update:

Here is the output of rostopic hz on the master PC:

master $ rostopic hz /xtion2/rgb/image_color
subscribed to [/xtion2/rgb/image_color]
average rate: 1.225
        min: 0.816s max: 0.816s std dev: 0.00000s window: 2
average rate: 1.229
        min: 0.810s max: 0.816s std dev: 0.00301s window: 3
average rate: 1.229
        min: 0.810s max: 0.816s std dev: 0.00254s window: 4

here is the output of rostopic bw on master PC:

master $ rostopic bw /xtion2/rgb/image_color
subscribed to [/xtion2/rgb/image_color]
average: 1.88MB/s
        mean: 0.92MB min: 0.92MB max: 0.92MB window: 2
average: 1.39MB/s
        mean: 0.92MB min: 0.92MB max: 0.92MB window: 3
average: 1.24MB/s
        mean: 0.92MB min: 0.92MB max: 0.92MB window: 4

here is the same on the slave PC where the Xtion is connected:

slave $ rostopic hz /xtion2/rgb/image_color
subscribed to [/xtion2/rgb/image_color]
average rate: 29.844
        min: 0.031s max: 0.036s std dev: 0.00199s window: 24
average rate: 29.869
        min: 0.031s max: 0.036s std dev: 0.00196s window: 54
average rate: 29.873
        min: 0.031s max: 0.036s std dev: 0.00195s window: 84

here is the output of the rostopic bw on the slave machine:

slave $ rostopic bw /xtion2/rgb/image_color                                                                                                                                   
subscribed to [/xtion2/rgb/image_color]
average: 28.19MB/s
        mean: 0.92MB min: 0.92MB max: 0.92MB window: 24
average: 27.87MB/s
        mean: 0.92MB min: 0.92MB max: 0.92MB window: 54
average: 27.78MB/s
        mean: 0.92MB min: 0.92MB max: 0.92MB window: 84

Thanks

edit retag flag offensive close merge delete

Comments

What is the output of rostopic hz and rostopic bw on both machines for your topics? Did anything change in your local network? WLAN, new Switches, Routers? Whats the connection speed of your network adapters?

Ben_S gravatar image Ben_S  ( 2013-03-05 22:55:43 -0500 )edit

I have updated the question. I can see there is probably problem with the network.

liborw gravatar image liborw  ( 2013-03-06 00:15:38 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-03-06 01:11:27 -0500

Hansg91 gravatar image

updated 2013-03-06 01:13:57 -0500

Is this local network connected through WiFi? If so, this could very well be your bottleneck. Try using iperf to check your network speed to see if that is the possible cause.

From what I can see, your computer that is connected to the Xtion seems to process it fine at 30fps, so I'm guessing it is something in your network causing this problem.

edit flag offensive delete link more

Comments

I have already checked the speed with iperf, it was 9 Mbits/sec. After restarting the router everything works fine.

liborw gravatar image liborw  ( 2013-03-06 01:15:55 -0500 )edit

9Mbits/sec is indeed not enough, you should really look for 40/50Mbits/sec at least I think.

Hansg91 gravatar image Hansg91  ( 2013-03-06 03:23:54 -0500 )edit

Question Tools

Stats

Asked: 2013-03-05 22:34:05 -0500

Seen: 309 times

Last updated: Mar 06 '13