v4r_ros_wrappers not compiling in xenial ros kinetic ¨error: ‘Camera’ does not name a type¨

asked 2019-04-13 14:11:27 -0600

Danilo_BR gravatar image

I did install the V4R vision for robot library, but when trying to catkin_make the wrappers I keep getting an error, downloaded both v4r and v4r_ros_wrappers from https://rgit.acin.tuwien.ac.at/v4r

I am running a fresh Ubuntu 16.04.6 Xenial with ROS Kinetic

does anyone know how to fix this?

Scanning dependencies of target incremental_object_learning_service
[ 87%] Building CXX object v4r_ros_wrappers-master/v4r_incremental_object_learning/CMakeFiles/incremental_object_learning_service.dir/src/object_learning_ros.cpp.o
[ 88%] Linking CXX executable /home/danilogsch/catkin_ws/devel/lib/v4r_incremental_object_learning/test_incremental_object_learning_service
[ 88%] Linking CXX executable /home/danilogsch/catkin_ws/devel/lib/v4r_incremental_object_learning/incremental_object_learning_service
[ 88%] Linking CXX executable /home/danilogsch/catkin_ws/devel/lib/v4r_camera_tracker/camera_tracker_service
[ 88%] Linking CXX executable /home/danilogsch/catkin_ws/devel/lib/v4r_object_gestalt_segmentation/object_gestalt_segmentation
[ 88%] Built target object_gestalt_segmentation
[ 88%] Built target test_incremental_object_learning_service
[ 88%] Built target incremental_object_learning_service
[ 88%] Built target camera_tracker_service
Scanning dependencies of target recognition_service
[ 89%] Building CXX object v4r_ros_wrappers-master/v4r_object_recognition/CMakeFiles/recognition_service.dir/src/recognizer_ros.cpp.o
In file included from /home/danilogsch/catkin_ws/src/v4r_ros_wrappers-master/v4r_object_recognition/src/recognizer_ros.cpp:1:0:
/home/danilogsch/catkin_ws/src/v4r_ros_wrappers-master/v4r_object_recognition/include/recognizer_ros.h:24:5: error: ‘Camera’ does not name a type
     Camera::ConstPtr camera_; ///< camera (if cloud is not organized)
     ^
/home/danilogsch/catkin_ws/src/v4r_ros_wrappers-master/v4r_object_recognition/src/recognizer_ros.cpp: In member function ‘bool v4r::RecognizerROS<PointT>::respondSrvCall(v4r_object_recognition_msgs::recognize::Request&, v4r_object_recognition_msgs::recognize::Response&) const’:
/home/danilogsch/catkin_ws/src/v4r_ros_wrappers-master/v4r_object_recognition/src/recognizer_ros.cpp:24:25: error: ‘camera_’ was not declared in this scope
     img_conv.setCamera( camera_ );
                         ^
/home/danilogsch/catkin_ws/src/v4r_ros_wrappers-master/v4r_object_recognition/src/recognizer_ros.cpp: In member function ‘bool v4r::RecognizerROS<PointT>::setCamera(v4r_object_recognition_msgs::set_camera::Request&, v4r_object_recognition_msgs::set_camera::Response&)’:
/home/danilogsch/catkin_ws/src/v4r_ros_wrappers-master/v4r_object_recognition/src/recognizer_ros.cpp:187:10: error: ‘v4r::Camera’ has not been declared
     v4r::Camera::Ptr cam;
          ^
/home/danilogsch/catkin_ws/src/v4r_ros_wrappers-master/v4r_object_recognition/src/recognizer_ros.cpp:191:9: error: ‘cam’ was not declared in this scope
         cam.reset(new v4r::Camera());
         ^
/home/danilogsch/catkin_ws/src/v4r_ros_wrappers-master/v4r_object_recognition/src/recognizer_ros.cpp:191:23: error: expected type-specifier
         cam.reset(new v4r::Camera());
                       ^
/home/danilogsch/catkin_ws/src/v4r_ros_wrappers-master/v4r_object_recognition/src/recognizer_ros.cpp:195:9: error: ‘cam’ was not declared in this scope
         cam.reset(new v4r::Camera (req.cam.K[0], req.cam.K[4], req.cam.width, r
         ^
/home/danilogsch/catkin_ws/src/v4r_ros_wrappers-master/v4r_object_recognition/src/recognizer_ros.cpp:195:23: error: expected type-specifier
         cam.reset(new v4r::Camera (req.cam.K[0], req.cam.K[4], req.cam.width, r
                       ^
/home/danilogsch/catkin_ws/src/v4r_ros_wrappers-master/v4r_object_recognition/src/recognizer_ros.cpp:198:5: error: ‘camera_’ was not declared in this scope
     camera_ = cam;
     ^
/home/danilogsch/catkin_ws/src/v4r_ros_wrappers-master/v4r_object_recognition/src/recognizer_ros.cpp:198:15: error: ‘cam’ was not declared in this scope
     camera_ = cam;
               ^
/home/danilogsch/catkin_ws/src/v4r_ros_wrappers-master/v4r_object_recognition/src/recognizer_ros.cpp: In member function ‘bool v4r::RecognizerROS<PointT>::initialize(int, char**)’:
/home/danilogsch/catkin_ws/src/v4r_ros_wrappers-master/v4r_object_recognition/src/recognizer_ros.cpp:275:5: error: ‘camera_’ was not declared in this scope
     camera_ = mrec_->getCamera();
     ^
/home/danilogsch/catkin_ws/src/v4r_ros_wrappers-master/v4r_object_recognition/src/recognizer_ros.cpp: In instantiation of ‘bool v4r::RecognizerROS<PointT>::initialize(int, char**) [with PointT = pcl::PointXYZRGB]’:
/home ...
(more)
edit retag flag offensive close merge delete