rbrth / framework

Framework for eye-in-hand sensing and motion control.
10 stars 9 forks source link

Error with HDevEngine #2

Open oriolorra opened 7 years ago

oriolorra commented 7 years ago

Hi, When I compile fruit_detection nothing happens, but when I run the node shows me this error:

terminate called after throwing an instance of 'HDevEngineCpp::HDevEngineException' Aborted (core dumped)

Could you give me some tips to rersolve this?

Thanks,

rbrth commented 7 years ago

Hi Oriolorra,

The fruit_detection node requires an installed version of MVTech Halcon.

Do you have a license for this?

Otherwise you can replace the fruit_detection node with your own node, for example using openCV. The framework is described here: http://www.sciencedirect.com/science/article/pii/S1537511015001816

Best, Ruud

oriolorra commented 7 years ago

Yes, I have installed MVTech Halcon 12 with license working.

Compiling do not show any error, so the libraries are found. But when I execute the node rosrun fruit_detection fruit_detection_node

Automatically, it gives this error: terminate called after throwing an instance of 'HDevEngineCpp::HDevEngineException' Aborted (core dumped)

I am not sure which is the source of the error.

Thanks,

Oriol

rbrth commented 7 years ago

Hi Oriol,

Hmm interesting. Perhaps it is the case the image_acquisition tries to connect with the camera using one of these scripts:

initialize_camera_tis.hdvp initialize_camera_tis_640_480.hdvp

But fails because you are using a different camera. In that case, you should edit these files to grab images with your camera.

It has been 2 years, so hard to pinpoint the problem straight away. :)

Best. Ruud

oriolorra commented 7 years ago

Thanks a lot for your answers, Ruud!!

I will try a little more ;)

nicolac93 commented 7 years ago

Hi, I have a question oriolorra. Which camera use? Because I can't use slam_bridge library for my camera ueye

oriolorra commented 7 years ago

I have choose to use a Kinect. I think that my problem was about the license. I have a dongle license usb key, that is working fine on windows but in Ubuntu does not recognise it. But I don't know why... :'(

Thanks

rbrth commented 7 years ago

For troubleshooting the dongle driver issue, please see the Halcon installation manual:

http://www.mvtec.com/fileadmin/Redaktion/mvtec.com/documentation/halcon/halcon-12.0-installation_guide.pdf

I also had some troubles getting the driver deamon installation right. Not sure what I did to fix it, but in the manual was the information I needed to do so.

Best, Ruud

oriolorra commented 7 years ago

Thanks Ruud, I will try it!

Wish you best, Oriol