Kinect + Openni/Freenect + Multiple machines
I've learned that ROS allows for talking/subscribing of topics over the network by utilizing ROS_MASTER_URI. I'm trying to get my Kinect data to work in a similar fashion.
Senario:
- Computer (10.0.0.22) "Master" runs
roscore
andrviz
- Computer (10.0.0.4) "Bot" runs
roslaunch openni_launch openni.launch
ORroslaunch freenect_launch freenect.launch
Both computers have export ROS_MASTER_URI=http://10.0.0.22:11311
So roscore
is running and roslaunch openni_launch openni.launch
are both running fine but things get weird with the introduction of rosrun rviz rviz
. On "Bot" I see the terminal print out the following immediately when rviz
boots up:
$ roslaunch openni_launch openni.launch
... logging to /home/ubuntu/.ros/log/b945d67e-f8fd-11e5-a7b3-0800270c17fb/roslaunch-ubuntu-3091.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://ubuntu:43440/
SUMMARY
========
PARAMETERS
* /camera/camera_nodelet_manager/num_worker_threads: 4
* /camera/depth_rectify_depth/interpolation: 0
* /camera/depth_registered_rectify_depth/interpolation: 0
* /camera/disparity_depth/max_range: 4.0
* /camera/disparity_depth/min_range: 0.5
* /camera/disparity_registered_hw/max_range: 4.0
* /camera/disparity_registered_hw/min_range: 0.5
* /camera/disparity_registered_sw/max_range: 4.0
* /camera/disparity_registered_sw/min_range: 0.5
* /camera/driver/depth_camera_info_url:
* /camera/driver/depth_frame_id: camera_depth_opti...
* /camera/driver/depth_registration: False
* /camera/driver/device_id: #1
* /camera/driver/rgb_camera_info_url:
* /camera/driver/rgb_frame_id: camera_rgb_optica...
* /rosdistro: indigo
* /rosversion: 1.11.16
NODES
/camera/
camera_nodelet_manager (nodelet/nodelet)
debayer (nodelet/nodelet)
depth_metric (nodelet/nodelet)
depth_metric_rect (nodelet/nodelet)
depth_points (nodelet/nodelet)
depth_rectify_depth (nodelet/nodelet)
depth_registered_hw_metric_rect (nodelet/nodelet)
depth_registered_metric (nodelet/nodelet)
depth_registered_rectify_depth (nodelet/nodelet)
depth_registered_sw_metric_rect (nodelet/nodelet)
disparity_depth (nodelet/nodelet)
disparity_registered_hw (nodelet/nodelet)
disparity_registered_sw (nodelet/nodelet)
driver (nodelet/nodelet)
points_xyzrgb_hw_registered (nodelet/nodelet)
points_xyzrgb_sw_registered (nodelet/nodelet)
rectify_color (nodelet/nodelet)
rectify_ir (nodelet/nodelet)
rectify_mono (nodelet/nodelet)
register_depth_rgb (nodelet/nodelet)
/
camera_base_link (tf/static_transform_publisher)
camera_base_link1 (tf/static_transform_publisher)
camera_base_link2 (tf/static_transform_publisher)
camera_base_link3 (tf/static_transform_publisher)
ROS_MASTER_URI=http://10.0.0.22:11311
core service [/rosout] found
process[camera/camera_nodelet_manager-1]: started with pid [3100]
process[camera/driver-2]: started with pid [3101]
process[camera/debayer-3]: started with pid [3102]
process[camera/rectify_mono-4]: started with pid [3103]
process[camera/rectify_color-5]: started with pid [3107]
process[camera/rectify_ir-6]: started with pid [3112]
process[camera/depth_rectify_depth-7]: started with pid [3113]
process[camera/depth_metric_rect-8]: started with pid [3121]
process[camera/depth_metric-9]: started with pid [3122]
process[camera/depth_points-10]: started with pid [3126]
process[camera/register_depth_rgb-11]: started with pid [3127]
process[camera/points_xyzrgb_sw_registered-12]: started with pid [3128]
process[camera/depth_registered_sw_metric_rect-13]: started with pid [3138]
process[camera/depth_registered_rectify_depth-14]: started with pid [3145]
process[camera/points_xyzrgb_hw_registered-15]: started with pid [3147]
process[camera/depth_registered_hw_metric_rect-16]: started with pid [3155]
process[camera/depth_registered_metric-17]: started with pid [3157]
process[camera/disparity_depth-18]: started with pid [3161]
[ INFO] [1459620448.933287052]: Initializing nodelet with 4 worker threads.
process[camera/disparity_registered_sw-19]: started with pid [3162]
process[camera/disparity_registered_hw-20]: started with pid [3174]
process[camera_base_link-21]: started with pid [3182]
process[camera_base_link1-22]: started with pid [3183]
process[camera_base_link2-23]: started with pid [3184]
process[camera_base_link3-24]: started with pid [3185]
Warning: USB events thread - failed to set priority. This might cause loss of data...
Warning: USB events thread - failed to ...