uzh-rpg / rpg_dvs_ros

ROS packages for DVS
MIT License
300 stars 155 forks source link

CV name space error when when building dvs_rendere #99

Open meera-m-t opened 4 years ago

meera-m-t commented 4 years ago

Hello, When doing a catkin build of dvs_renderer I get the following error saying that undistort is not a member of opencv. I installed all the dependencies in the README.md.

Errors     << dvs_renderer:make /home/sameera/catkin_ws/logs/dvs_renderer/build.make.000.log                                                                                                               
/home/username/catkin_ws/src/rpg_dvs_ros/dvs_renderer/src/renderer.cpp: In member function ‘void dvs_renderer::Renderer::eventsCallback(const ConstPtr&)’:
/home/username/catkin_ws/src/rpg_dvs_ros/dvs_renderer/src/renderer.cpp:193:11: error: ‘undistort’ is not a member of ‘cv’
       cv::undistort(cv_image.image, cv_image2.image, camera_matrix_, dist_coeffs_);

Can you please specify the dependencies for openCV and what I am missing?

max11gen commented 4 years ago

I had the same problem. In my case it was enough to include opencv's calib3d header in renderer.h. So put #include <opencv2/calib3d.hpp> in renderer.h and see if it works.