Is this a normal latency for ROS with Turtlebot?
I am new to ROS and I know little about what to expect from it and from my Turtlebot2 in terms of performance. It does seem to me that it works too slow, but I do not know for sure. I would like someone to confirm this, and maybe suggest ways to diagnose my setup to find the reason of this slowness.
Everything looks good if nothing on the workstation is subscribed to the camera feeds:
$ rosnode ping --all
Will ping the following nodes:
* /zeroconf/zeroconf
* /camera/driver
* /camera_base_link
* /master
* /capability_server
* /cmd_vel_mux
* /camera/depth_metric
* /robot_state_publisher
* /bumper2pointcloud
* /camera/depth_rectify_depth
* /camera/depth_points
* /interactions
* /app_manager
* /camera/depth_metric_rect
* /capability_server_nodelet_manager
* /mobile_base
* /rosout
* /camera/rectify_color
* /camera/camera_nodelet_manager
* /turtlebot_teleop_keyboard
* /rviz
* /camera_base_link1
* /camera_base_link3
* /camera_base_link2
* /diagnostic_aggregator
* /camera/points_xyzrgb_sw_registered
* /camera/register_depth_rgb
* /mobile_base_nodelet_manager
pinging /zeroconf/zeroconf with a timeout of 3.0s
xmlrpc reply from http://192.168.xx.x16:51171/ time=7.439137ms
pinging /camera/driver with a timeout of 3.0s
xmlrpc reply from http://192.168.xx.x16:46037/ time=8.575916ms
pinging /camera_base_link with a timeout of 3.0s
xmlrpc reply from http://192.168.xx.x16:59431/ time=7.348061ms
pinging /master with a timeout of 3.0s
xmlrpc reply from http://192.168.xx.x16:35006/ time=36.192894ms
pinging /capability_server with a timeout of 3.0s
xmlrpc reply from http://192.168.xx.x16:49286/ time=11.957169ms
pinging /cmd_vel_mux with a timeout of 3.0s
xmlrpc reply from http://192.168.xx.x16:35104/ time=20.205975ms
pinging /camera/depth_metric with a timeout of 3.0s
xmlrpc reply from http://192.168.xx.x16:42717/ time=92.966080ms
pinging /robot_state_publisher with a timeout of 3.0s
xmlrpc reply from http://192.168.xx.x16:59314/ time=8.183002ms
pinging /bumper2pointcloud with a timeout of 3.0s
xmlrpc reply from http://192.168.xx.x16:45636/ time=13.126135ms
pinging /camera/depth_rectify_depth with a timeout of 3.0s
xmlrpc reply from http://192.168.xx.x16:53540/ time=7.639170ms
pinging /camera/depth_points with a timeout of 3.0s
xmlrpc reply from http://192.168.xx.x16:43682/ time=11.249065ms
pinging /interactions with a timeout of 3.0s
xmlrpc reply from http://192.168.xx.x16:54360/ time=13.771057ms
pinging /app_manager with a timeout of 3.0s
xmlrpc reply from http://192.168.xx.x16:38159/ time=15.375137ms
pinging /camera/depth_metric_rect with a timeout of 3.0s
xmlrpc reply from http://192.168.xx.x16:38714/ time=10.761976ms
pinging /capability_server_nodelet_manager with a timeout of 3.0s
xmlrpc reply from http://192.168.xx.x16:58260/ time=7.064819ms
pinging /mobile_base with a timeout of 3.0s
xmlrpc reply from http://192.168.xx.x16:47401/ time=25.177002ms
pinging /rosout with a timeout of 3.0s
xmlrpc reply from http://192.168.xx.x16:47568/ time=17.100096ms
pinging /camera/rectify_color with a timeout of 3.0s
xmlrpc reply from http://192.168.xx.x16:60723/ time=17.340899ms
pinging /camera/camera_nodelet_manager with a timeout of 3.0s
xmlrpc reply ...
At the bottom of the snippet from
rosnode ping --all
it saysERROR: Unable to communicate with master!
. Are you having network issues?@jayess, it seems I do have network issues when something subscribes to the camera streams, like rviz or rostopic hz. It often results in significant lags of various ROS commands, like rosnode list. Teleop becomes unresponsive and so on. Is it normal?
It depends on your setup and environment. From my experience, streaming video over Wi-Fi can have significant lag. Sometimes on the order of 10s of seconds or longer.