Closed rnunziata closed 6 years ago
@rnunziata Sorry but unfortunately SlamDUnk is not compatible for now with OpenCV3.. you can use SkiMap however. What do you need to do?
could I compile against a diff ver of opencv by point to it like this in the make file, any versions older then 2.4 I can use. I want to track without pose if I do not send pose data via rosbag then the map does not develop correctly . I am using a filtered version of rgbd_dataset_freiburg3_long_office_household_validation.bag with only depth, image, cam_info.
# OpenCV 2.4.9
CPPFLAGS = -L/path/to/opencv2.4.9/lib \
-I/path/to/opencv2.4.9/include
I tried to override like this in the CMakeLists.txt but its still looking at /usr. Do you know how to over ride opencv in cmake?
set(CPPFLAGS "-L/home/rjn/opencv-2.4.13.3/install/lib -I/home/rjn/opencv-2.4.13.3/install/include")
set(OpenCV_INCLUDE_DIRS "/home/rjn/opencv-2.4.13.3/install/include")
set(OpenCV_LIBRARIES "/home/rjn/opencv-2.4.13.3/install/lib")
@rnunziata did you remove the "find(opencv..." row or not? in this case are you sure that your forced SET over Opencv_VARIABLES is after the "find" operation? By the way try to use ORBSLAM2 as camera tracker (See https://github.com/m4nh/skimap_ros/issues/7) because unfortunately SlamDUNK is not mantained continuously for now in this package, that is focused only on the SkiMap mapping part.
This worked for me
find_package(OpenCV 2.4.13.3 EXACT NO_DEFAULT_PATH REQUIRED PATHS /home/rjn/opencv-2.4.13.3/install)
if(OpenCV_INCLUDE_DIRS)
include_directories(${OpenCV_INCLUDE_DIRS})
endif(OpenCV_INCLUDE_DIRS)
...but now I am getting error related to nonfree: is this version no good?
In file included from /home/rjn/catkin_ws/src/skimap_ros/include/slamdunk/camera_tracker.h:20:0,
from /home/rjn/catkin_ws/src/skimap_ros/src/slamdunk/feature_tracker.cpp:9:
/home/rjn/opencv-2.4.13.3/install/include/opencv2/nonfree/features2d.hpp: At global scope:
/home/rjn/opencv-2.4.13.3/install/include/opencv2/nonfree/features2d.hpp:73:21: error: ‘vector’ has not been declared
vector<KeyPoint>& keypoints) const;
^
/home/rjn/opencv-2.4.13.3/install/include/opencv2/nonfree/features2d.hpp:73:27: error: expected ‘,’ or ‘...’ before ‘<’ token
vector<KeyPoint>& keypoints) const;
^
/home/rjn/opencv-2.4.13.3/install/include/opencv2/nonfree/features2d.hpp:77:21: error: ‘vector’ has not been declared
vector<KeyPoint>& keypoints,
Have you looked at ros ptam for tf and pose transform ....
Slamdunk does not compile with opencv-2.4.13.3. I will return to 3.2 and try ORBSLAM2 for interface.
I am using opencv 3.2.0-dev
and