Closed shzargar closed 7 years ago
Could you make sure that you're running the launch above on the Ubuntu computer that the cameras' cables are connected to?
Necessary dependency should be installed automatically (defined here) as long as the tutorial was followed as it is. You can manually install the missing library by apt-get install ros-indigo-ueye-cam
as a quick workaround, if it's still missing.
I've checked on the nextage computer, it seems one of the hand camera is not working. I will come back with the message.
My questions: is there any specification for cameras (resolution and ...)? Is there any way to communicate with cameras via ethernet, I mean not using the nextage computer.
I'm not sure if I fully understand what you're asking but I think of 2 answers:
Using cameras you have, instead of the default Ueye cameras I added a subsection in the wiki page.
Using the default Ueye cameras
is there any specification for cameras (resolution and ...)?
The aforementioned driver package ueye_cam should take care of connections. For this I also added a few lines in the wiki.
Is there any way to communicate with cameras via ethernet, I mean not using the nextage computer.
To avoid confusion let's call UI Controller Box
(Nextage's Ubuntu) as Comp-A and your computer (assuming another Ubuntu) as Comp-B.
I assume it's possible to disconnect the cameras cable from Comp-A and connect to Comp-B. I don't know how that is easy/hard. Either way I suggest to make sure you take enough note about the current setting so that you can plug them back in when you want to.
Or if you want to keep the current setting and just want to access the cameras' output from Comp-B, this is where the distributed network architecture of ROS comes very handy -- run the camera "node"s on Comp-A, then from Comp-B you can subscribe to the camera "topic"s. A bit more concretely:
Comp-A; run roslaunch nextage_ros_bridge nextage_ueye_stereo.launch
Comp-B; set your rosmaster
toward Comp-A by e.g.:
export ROS_MASTER_URI=http://%Comp-A's ip address%:11311
Comp-B; Subscribe to the camera topics (e.g. rostopic list
, or visualize on RViz etc. This depends on what you want to do.)
Step 1 above is NEXTAGE-specific but the rest is standard ROS way to subscribe the topics published on a remote host.
Lastly, FYI related to cameras, calibration using head-camera is being worked out. https://github.com/tork-a/rtmros_nextage/issues/291
Could not load library (Poco exception = libueye_api.so: cannot open shared object file: No such file or directory)
you have to get libueye_api.so by manually install the ueye sdk from https://github.com/anqixu/ueye_cam/blob/master/cmake_modules/DownloadUEyeDriversUnofficial.cmake#L34
I tried to launch from Nextage's Ubuntu and I got this error.
... logging to /home/nxouser/.ros/log/088dccfc-f3d8-11e6-a72d-000bab77d7ba/roslaunch-tork-desktop-27088.log
Checking log directory for disk usage. This may take awhile.Nextage's Ubuntu
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://tork-desktop:46928/
SUMMARY
========
PARAMETERS
* /rosdistro
* /rosversion
* /ueye_cam_nodelet_master/auto_exposure
* /ueye_cam_nodelet_master/auto_frame_rate
* /ueye_cam_nodelet_master/auto_gain
* /ueye_cam_nodelet_master/auto_white_balance
* /ueye_cam_nodelet_master/binning
* /ueye_cam_nodelet_master/blue_gain
* /ueye_cam_nodelet_master/camera_id
* /ueye_cam_nodelet_master/camera_intrinsics_file
* /ueye_cam_nodelet_master/camera_name
* /ueye_cam_nodelet_master/camera_parameters_file
* /ueye_cam_nodelet_master/camera_topic
* /ueye_cam_nodelet_master/color_mode
* /ueye_cam_nodelet_master/exposure
* /ueye_cam_nodelet_master/ext_trigger_mode
* /ueye_cam_nodelet_master/flash_delay
* /ueye_cam_nodelet_master/flash_duration
* /ueye_cam_nodelet_master/frame_rate
* /ueye_cam_nodelet_master/gain_boost
* /ueye_cam_nodelet_master/green_gain
* /ueye_cam_nodelet_master/image_height
* /ueye_cam_nodelet_master/image_left
* /ueye_cam_nodelet_master/image_top
* /ueye_cam_nodelet_master/image_width
* /ueye_cam_nodelet_master/master_gain
* /ueye_cam_nodelet_master/pixel_clock
* /ueye_cam_nodelet_master/red_gain
* /ueye_cam_nodelet_master/sensor_scaling
* /ueye_cam_nodelet_master/subsampling
* /ueye_cam_nodelet_master/white_balance_blue_offset
* /ueye_cam_nodelet_master/white_balance_red_offset
* /ueye_cam_nodelet_slave1/auto_exposure
* /ueye_cam_nodelet_slave1/auto_frame_rate
* /ueye_cam_nodelet_slave1/auto_gain
* /ueye_cam_nodelet_slave1/auto_white_balance
* /ueye_cam_nodelet_slave1/binning
* /ueye_cam_nodelet_slave1/blue_gain
* /ueye_cam_nodelet_slave1/camera_id
* /ueye_cam_nodelet_slave1/camera_intrinsics_file
* /ueye_cam_nodelet_slave1/camera_name
* /ueye_cam_nodelet_slave1/camera_parameters_file
* /ueye_cam_nodelet_slave1/camera_topic
* /ueye_cam_nodelet_slave1/color_mode
* /ueye_cam_nodelet_slave1/exposure
* /ueye_cam_nodelet_slave1/ext_trigger_mode
* /ueye_cam_nodelet_slave1/flash_delay
* /ueye_cam_nodelet_slave1/flash_duration
* /ueye_cam_nodelet_slave1/frame_rate
* /ueye_cam_nodelet_slave1/gain_boost
* /ueye_cam_nodelet_slave1/green_gain
* /ueye_cam_nodelet_slave1/image_height
* /ueye_cam_nodelet_slave1/image_left
* /ueye_cam_nodelet_slave1/image_top
* /ueye_cam_nodelet_slave1/image_width
* /ueye_cam_nodelet_slave1/master_gain
* /ueye_cam_nodelet_slave1/pixel_clock
* /ueye_cam_nodelet_slave1/red_gain
* /ueye_cam_nodelet_slave1/sensor_scaling
* /ueye_cam_nodelet_slave1/subsampling
* /ueye_cam_nodelet_slave1/white_balance_blue_offset
* /ueye_cam_nodelet_slave1/white_balance_red_offset
NODES
/left/
image_proc (image_proc/image_proc)
/right/
image_proc (image_proc/image_proc)
/
head_link_to_stereo_link (tf/static_transform_publisher)
left_force_subscribe (rostopic/rostopic)
nodelet_manager (nodelet/nodelet)
right_force_subscribe (rostopic/rostopic)
stereo_image_proc (stereo_image_proc/stereo_image_proc)
stereo_link_to_stereo_frame (tf/static_transform_publisher)
ueye_cam_nodelet_master (nodelet/nodelet)
ueye_cam_nodelet_slave1 (nodelet/nodelet)
auto-starting new master
process[master]: started with pid [27102]
ROS_MASTER_URI=http://localhost:11311
setting /run_id to 088dccfc-f3d8-11e6-a72d-000bab77d7ba
process[rosout-1]: started with pid [27115]
started core service [/rosout]
process[nodelet_manager-2]: started with pid [27127]
process[ueye_cam_nodelet_master-3]: started with pid [27128]
[ INFO] [1487201986.709250746]: Initializing nodelet with 8 worker threads.
process[ueye_cam_nodelet_slave1-4]: started with pid [27167]
process[left_force_subscribe-5]: started with pid [27181]
process[right_force_subscribe-6]: started with pid [27210]
process[right/image_proc-7]: started with pid [27255]
WARNING: topic [/left/camera_info] does not appear to be published yet
process[left/image_proc-8]: started with pid [27286]
process[stereo_image_proc-9]: started with pid [27297]
process[head_link_to_stereo_link-10]: started with pid [27339]
process[stereo_link_to_stereo_frame-11]: started with pid [27360]
subscribed to [/right/camera_info]
[ WARN] [1487201987.983302374]: Could not load [right]'s sensor parameters file /home/nxouser/.ros/camera_conf/right.ini (IS_FILE_WRITE_OPEN_ERROR)
[ WARN] [1487201988.055877124]: [right] does not support internal image scaling
[ INFO] [1487201988.123811903]: UEye camera [right] initialized on topic /right/image_raw
Width: 1600
Height: 1200
Left Pos.: -1
Top Pos.: -1
Color Mode: rgb8
Subsampling: 1
Binning: 2
Sensor Scaling: 1
Auto Gain: 1
Master Gain: 0
Red Gain: 0
Green Gain: 1
Blue Gain: 16
Gain Boost: 0
Auto Exposure: 0
Exposure (ms): 33.0081
Auto White Balance: 1
WB Red Offset: 0
WB Blue Offset: 0
Flash Delay (us): 30000
Flash Duration (us): 1000
Ext Trigger Mode: 0
Auto Frame Rate: 0
Frame Rate (Hz): 29.6665
Pixel Clock (MHz): 24
Mirror Image Upside Down: 0
Mirror Image Left Right: 0
[ERROR] [1487201988.125173399]: Could not start free-run live video mode for [right] (IS_INVALID_BUFFER_SIZE)
[ERROR] [1487201988.125205025]: Shutting down driver nodelet for [right]
[FATAL] [1487201988.318650451]: Service call failed!
[ueye_cam_nodelet_slave1-4] process has died [pid 27167, exit code 255, cmd /opt/ros/hydro/lib/nodelet/nodelet load ueye_cam/ueye_cam_nodelet nodelet_manager __name:=ueye_cam_nodelet_slave1 __log:=/home/nxouser/.ros/log/088dccfc-f3d8-11e6-a72d-000bab77d7ba/ueye_cam_nodelet_slave1-4.log].
log file: /home/nxouser/.ros/log/088dccfc-f3d8-11e6-a72d-000bab77d7ba/ueye_cam_nodelet_slave1-4*.log
[nodelet_manager-2] process has died [pid 27127, exit code -11, cmd /opt/ros/hydro/lib/nodelet/nodelet manager __name:=nodelet_manager __log:=/home/nxouser/.ros/log/088dccfc-f3d8-11e6-a72d-000bab77d7ba/nodelet_manager-2.log].
log file: /home/nxouser/.ros/log/088dccfc-f3d8-11e6-a72d-000bab77d7ba/nodelet_manager-2*.log
[ueye_cam_nodelet_master-3] process has finished cleanly
log file: /home/nxouser/.ros/log/088dccfc-f3d8-11e6-a72d-000bab77d7ba/ueye_cam_nodelet_master-3*.log
As well my question about camera specification is about to know what type of camera is used for our nextage robot and what is its specification (like is it a color camera, resolution and frequency ...).
[ERROR] [1487201988.125173399]: Could not start free-run live video mode for [right] (IS_INVALID_BUFFER_SIZE)
This error is likely solved with a version of camera driver software that was released awhile ago (the issue ticket and release was done afterward).
You might want to tell us the version of camera driver software on the computer you used. As of today the latest available is 1.0.15. For instance I get the following.
dpkg -p ros-indigo-ueye-cam | grep Ver
Version: 1.0.15-0trusty-20170130-044337-0800
$ rosversion ueye_cam
1.0.15
As well my question about camera specification is about to know what type of camera is used for our nextage robot and what is its specification (like is it a color camera, resolution and frequency ...).
For the cameras bundled on the robot when it was shipped, the best resource I was able to find online is http://nextage.kawada.jp/en/stereovision/. Honestly I don't have much more info than that website provides, other than that the camera is called Ueye
and made by IDS. Its software driver package is http://wiki.ros.org/ueye_cam.
@emijah @youtalk may be able to address your concern better.
Closing due to inactivity. If there's anything to add please reopen or just add comments.
roslaunch nextage_ros_bridge nextage_ueye_stereo.launch
gives me this error. It seems that I don't have this library
/opt/ros/indigo/lib//libueye_cam_nodelet.so
. I don't know how to add it.