IntelRealSense / realsense_samples_ros

Sample code illustrating how to develop ROS applications using the Intel® RealSense™ ZR300 camera for Object Library (OR), Person Library (PT), and Simultaneous Localization And Mapping (SLAM).
Apache License 2.0
127 stars 92 forks source link

ZR300 test fails #6

Open alexge233 opened 7 years ago

alexge233 commented 7 years ago

Hi,

I've followed the instructions on Ubuntu 16.04 with kernel 4.4.0-66. Whilst roslaunch realsense_ros_camera camera.launch actually works, when I run roslaunch realsense_ros_camera camera_zr300.test it fails with the output below:

roslaunch realsense_ros_camera camera_zr300.test 
... logging to /home/mario/mario_ws/log/25a1727c-3a22-11e7-ba87-408d5ca7bf3c/roslaunch-mariolinux-7881.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://mariolinux:35249/

SUMMARY
========

PARAMETERS
 * /realsense_ros_camera/accel_optical_frame_id: camera_accel_opti...
 * /realsense_ros_camera/color_fps: 30
 * /realsense_ros_camera/color_height: 1080
 * /realsense_ros_camera/color_optical_frame_id: camera_rgb_optica...
 * /realsense_ros_camera/color_width: 1920
 * /realsense_ros_camera/depth_fps: 30
 * /realsense_ros_camera/depth_height: 480
 * /realsense_ros_camera/depth_optical_frame_id: camera_depth_opti...
 * /realsense_ros_camera/depth_width: 640
 * /realsense_ros_camera/enable_color: True
 * /realsense_ros_camera/enable_depth: True
 * /realsense_ros_camera/enable_fisheye: True
 * /realsense_ros_camera/fisheye_fps: 30
 * /realsense_ros_camera/fisheye_height: 480
 * /realsense_ros_camera/fisheye_optical_frame_id: camera_fisheye_op...
 * /realsense_ros_camera/fisheye_width: 640
 * /realsense_ros_camera/gyro_optical_frame_id: camera_gyro_optic...
 * /realsense_ros_camera/ir2_optical_frame_id: camera_ir2_optica...
 * /realsense_ros_camera/ir_optical_frame_id: camera_ir_optical...
 * /realsense_ros_camera/serial_no: 
 * /rosdistro: kinetic
 * /rosversion: 1.12.7

NODES
  /
    realsense_ros_camera (nodelet/nodelet)
    realsense_ros_camera_manager (nodelet/nodelet)

ROS_MASTER_URI=http://localhost:11311

core service [/rosout] found
process[realsense_ros_camera_manager-1]: started with pid [7906]
process[realsense_ros_camera-2]: started with pid [7907]
[ INFO] [1494931908.534047907]: Loading nodelet /realsense_ros_camera of type realsense_ros_camera/NodeletCamera to manager realsense_ros_camera_manager with the following remappings:
[ INFO] [1494931908.538047912]: waitForService: Service [/realsense_ros_camera_manager/load_nodelet] has not been advertised, waiting...
[ INFO] [1494931908.542047917]: Initializing nodelet with 2 worker threads.
[ INFO] [1494931908.558047938]: waitForService: Service [/realsense_ros_camera_manager/load_nodelet] is now available.
[ INFO] [1494931908.866048335]: Intel RealSense ZR300, serial_no: 4071801490
[ INFO] [1494931908.994048500]:   enabled depth stream, width: 640 height: 480 fps: 30
[ INFO] [1494931908.998048505]:   enabled color stream, width: 1920 height: 1080 fps: 30
[ INFO] [1494931908.998048505]:   enabled fisheye stream, width: 640 height: 480 fps: 30
[ INFO] [1494931908.998048505]:   enabled accel and gyro stream
[FATAL] [1494931909.106048644]: Failed to load nodelet '/realsense_ros_camera` of type `realsense_ros_camera/NodeletCamera` to manager `realsense_ros_camera_manager'
[realsense_ros_camera_manager-1] process has died [pid 7906, exit code -11, cmd /opt/ros/kinetic/lib/nodelet/nodelet manager __name:=realsense_ros_camera_manager __log:=/home/mario/mario_ws/log/25a1727c-3a22-11e7-ba87-408d5ca7bf3c/realsense_ros_camera_manager-1.log].
log file: /home/mario/mario_ws/log/25a1727c-3a22-11e7-ba87-408d5ca7bf3c/realsense_ros_camera_manager-1*.log
[realsense_ros_camera-2] process has died [pid 7907, exit code 255, cmd /opt/ros/kinetic/lib/nodelet/nodelet load realsense_ros_camera/NodeletCamera realsense_ros_camera_manager --no-bond __name:=realsense_ros_camera __log:=/home/mario/mario_ws/log/25a1727c-3a22-11e7-ba87-408d5ca7bf3c/realsense_ros_camera-2.log].
log file: /home/mario/mario_ws/log/25a1727c-3a22-11e7-ba87-408d5ca7bf3c/realsense_ros_camera-2*.log
all processes on machine have died, roslaunch will exit
shutting down processing monitor...
... shutting down processing monitor complete
done
alexge233 commented 7 years ago

Furthermore, any change I do to the launch file, the node won't start. Even silly changes, such as setting the fps to 20 or 10. I've set the output to a logfile, yet there is no log, only a return code -11.

mattcurfman commented 7 years ago

Thanks for the feedback, I will investigate it here and reply with findings.

alexge233 commented 7 years ago

@mattcurfman thanks Matt, let me know if I can help in any way, I've run into similar issues with slam and camera, but it might be that our robot doesn't have rviz installed, only the ros core.