Skip to content

Commit

Permalink
use required tag to run check_ueye_api
Browse files Browse the repository at this point in the history
  • Loading branch information
k-okada committed Jan 14, 2016
1 parent 292a529 commit 91b3dcf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion launch/rgb8.launch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<launch>
<param name="check_ueye_api" command="rosrun ueye_cam check_ueye_api" />
<node name="check_ueye_api" pkg="ueye_cam" type="check_ueye_api" required="true" />
<arg name="nodelet_manager_name" value="nodelet_manager" />
<arg name="camera_name" value="camera" />

Expand Down
5 changes: 3 additions & 2 deletions src/check_ueye_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,15 @@
#include <dlfcn.h>
#include <ros/ros.h>

int main() {
int main(int argc, char **argv) {
void *handle;
handle = dlopen("libueye_api.so", RTLD_LAZY);
if ( ! handle ) {
ROS_ERROR("The official IDS uEye driver (libueye_api.so) were not detected on your machine.");
ROS_ERROR("You (or a system administrator) MUST still download and install the official IDS uEye drivers (http://en.ids-imaging.com/download-ueye.html).");
ROS_ERROR("Also make sure that the IDS daemon (/etc/init.d/ueyeusbdrc) is running.");
exit(1);
}
ros::init(argc, argv, "check_ueye_api");
ros::spin();
exit(0);
}

0 comments on commit 91b3dcf

Please sign in to comment.