neufieldrobotics / spinnaker_sdk_camera_driver

Point Grey (FLIR) Spinnaker based camera driver (Blackfly S etc.)
MIT License
128 stars 90 forks source link

fatal error: spinnaker_sdk_camera_driver/spinnaker_image_names.h: No such file or directory #7

Closed Rockyzyk closed 6 years ago

Rockyzyk commented 6 years ago

hi, Mr shahvi,

When I Install the driver and run "catkin_make", The following error occurred: fatal error: spinnaker_sdk_camera_driver/spinnaker_image_names.h: No such file or directory

How can I find the "spinnaker_image_names.h" file? Would you please help me? Thanks

Rockyzyk commented 6 years ago

@shahvi

ghost commented 6 years ago

I have seen that sometimes when it tries to use the messages before generating then. Try running catkin_make a couple more times and it should compile.

Rockyzyk commented 6 years ago

Thanks for help! I think the mean reason is my python module empy missing. And I refer the following link and fix it! https://answers.ros.org/question/257331/python-module-empy-missing-tutorials/

run the cmd: pip uninstall em pip install empy

Rockyzyk commented 6 years ago

hi, @shahvi I have another trouble that when I run the launch file. Some error occurred. screensho

My camera is a Blackfly S ethernet camera: https://www.ptgrey.com/blackfly-s-color-32-mp-gige-vision-sony-imx265 Would you please teach me how to fix the error? Thanks again!

ghost commented 6 years ago

I haven't tried this code with the Ethernet cameras and I don't have one to test. However, I can guide you through a few things to try. It looks like the system is detecting the camera, so we might have a chance.

The first thing to try would be to comment out the ROS_ASSERT at line 59 in camera.cpp. Then recompile by running catkin_make.

Rockyzyk commented 6 years ago

@shahvi after try to comment out the ROS_ASSERT, the error is changed to follow: screensho2 The problem is same with https://github.com/neufieldrobotics/spinnaker_sdk_camera_driver/issues/5 so I changed the FPS to 4, to make sure. But the error still occurs. Would you please check it? Thanks!

Rockyzyk commented 6 years ago

By the way, I use the virtual box, and spinView is worked for showing images of camera.

ghost commented 6 years ago

With USB cameras this happens when the power to the cameras is flaky. I suspect the Virtual box would add to the complication. You could try a different computer that boots into Ubuntu directly or a dual boot setup.

ghost commented 6 years ago

Also have you tried this package http://wiki.ros.org/spinnaker_camera_driver

Rockyzyk commented 6 years ago

I try this package and it succeeds! Thanks for helping!