anqixu / ueye_cam

A ROS nodelet and node that wraps the driver API for UEye cameras by IDS Imaging Development Systems GMBH.
Other
60 stars 102 forks source link

RosLaunch problem #55

Closed antonays closed 7 years ago

antonays commented 7 years ago

Hi, I have the following problem with starting the ueye camera node. I am using a UI 1221LE camera from a raspberry pi running minibian with ROS indigo. The camera is confirmed to be working from a ubuntu environment but have problems starting it from the minibian.

I have installed the arm 7 drivers and started successfully the daemon. I have tried to use the ueye_cam from apt-get, everything was ok but could not launch. Now i have cloned the git, compiled with catkin successfully, but when trying to run roslaunch ueye_cam rgb8.launch

i get the output

/root/ueye/ueye_cam/catkin_ws/devel/lib/ueye_cam/check_ueye_api: error while loading shared libraries: libueye_api.so: cannot open shared object file: No such file or directory=REQUIRED process [check_ueye_api-1] has died! process has died [pid 7478, exit code 127, cmd /root/ueye/ueye_cam/catkin_ws/devel/lib/ueye_cam/check_ueye_api __name:=check_ueye_api __log:=/root/.ros/log/2823c8ee-1392-11e7-a344-b827eba280a7/check_ueye_api-1.log]. log file: /root/.ros/log/2823c8ee-1392-11e7-a344-b827eba280a7/check_ueye_api-1*.log Initiating shutdown!

I confirm to have sourced catkin_ws/devel/setup.bash also, i confirm that the directory /devel/lib includes the files libueye_cam_nodelet.so and libueye_wrapper.so and they are not empty.

Moreover, Having commented the line <node name="check_ueye_api" pkg="ueye_cam" type="check_ueye_api" required="true" /> in src/launch/rg8.launch. i get a different error:

[ERROR] [1490697836.989684294]: Failed to load nodelet [/ueye_cam_nodelet] of type [ueye_cam/ueye_cam_nodelet] even after refreshing the cache: Failed to load library /root/ueye/ueye_cam/catkin_ws/devel/lib//libueye_cam_nodelet.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = libueye_api.so: cannot open shared object file: No such file or directory) [ERROR] [1490697836.989874241]: The error before refreshing the cache was: Failed to load library /root/ueye/ueye_cam/catkin_ws/devel/lib//libueye_cam_nodelet.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = libueye_api.so: cannot open shared object file: No such file or directory) [FATAL] [1490697836.990713562]: Failed to load nodelet '/ueye_cam_nodelet of type ueye_cam/ueye_cam_nodelet to manager nodelet_manager' [ueye_cam_nodelet-2] process has died [pid 7668, exit code 255, cmd /opt/ros/indigo/lib/nodelet/nodelet load ueye_cam/ueye_cam_nodelet nodelet_manager __name:=ueye_cam_nodelet __log:=/root/.ros/log/2823c8ee-1392-11e7-a344-b827eba280a7/ueye_cam_nodelet-2.log]. log file: /root/.ros/log/2823c8ee-1392-11e7-a344-b827eba280a7/ueye_cam_nodelet-2*.log

** having followed this thread on the ros page, I get the same problem, but unable to fix.

Moreover. i tried also to compile the fuerte branch, but couldn't

Thank you!

antonays commented 7 years ago

So it turns out it was the wrong driver, I used the IDS driver for Arm7 architecture with soft float instead of hard float. with the correct driver all works fine.