ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

sep_vanmarcke's profile - activity

2018-03-23 08:21:23 -0500 received badge  Famous Question (source)
2017-10-08 14:11:17 -0500 received badge  Notable Question (source)
2017-10-08 14:11:17 -0500 received badge  Popular Question (source)
2017-06-25 09:31:45 -0500 received badge  Famous Question (source)
2017-04-13 04:26:33 -0500 received badge  Famous Question (source)
2017-03-22 18:19:13 -0500 received badge  Famous Question (source)
2017-03-22 05:34:42 -0500 received badge  Notable Question (source)
2017-03-22 05:10:59 -0500 commented answer How to use arbitrary version of OpenCV

That did the trick, thanks. It's the same version as the one under Kinetic,3.2.0, but it's better to use the most recent in github, right?

2017-03-22 05:01:00 -0500 commented answer How to use arbitrary version of OpenCV

To what value should i set OpenCV_ROOT_DIR? I tried to set it to opencv cloned folder in my home directory and it didn't work. Then i tried to set to /usr/local/include and it also didnd't work.

2017-03-22 03:51:14 -0500 received badge  Popular Question (source)
2017-03-21 23:21:58 -0500 asked a question namedWindow + imshow not showing on the screen

I can't get the window with the video to show on the screen. The light of the web camera flashes so it opens it and the program is in infinite loop when i run yet nothing shows on the screen.

#include <iostream>
#include <string>
#include <sstream>

#include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/videoio.hpp>

using namespace cv;

int main(int argc, char **argv) {

    VideoCapture cap(0);
    namedWindow("video", WINDOW_NORMAL);
    while (1) {
        Mat frame;
        cap >> frame;
        imshow("video", frame);
        if (waitKey(30) >= 0) break;
    }
    cap.release();
    return 0;
}
2017-03-21 20:59:53 -0500 received badge  Editor (source)
2017-03-21 20:58:51 -0500 asked a question How to use arbitrary version of OpenCV

Hi, i have ROS Kinetic installed and it comes with OpenCV. I also have the latested OpenCV that i downloaded from github and installed in /usr/local. The following code that i wrote will always use OpenCV that came with the ROS installation, can i make it use an arbitrary version of OpenCV that i have on the system? Here's the CMakeLists.txt file:

cmake_minimum_required(VERSION 2.6)
project(my_project)
find_package(OpenCV 3.0.0 REQUIRED)
message("OpenCV version: ${OpenCV_VERSION}")
include_directories(${OpenCV_INCLUDE_DIRS})
link_directories(${OpenCV_LIB_DIR})
set(SRC
  main.cpp
)
add_executable(${PROJECT_NAME} ${SRC})
target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS})

When i run it i get:

Found OpenCV: /opt/ros/kinetic (found suitable version "3.2.0", minimum required is "3.0.0") 
OpenCV version: 3.2.0

UPDATE

I found a way to make it work. I'am open for alternatives to this. This is the CMakeLists.txt that i have now:

cmake_minimum_required(VERSION 2.6)
project(tut)

set(OpenCV_INCLUDE_DIRS
  /usr/local/include
  /usr/local/include/opencv2
)

set(OpenCV_LIB_DIR
  /usr/local/lib
)

set(OpenCV_LIBS
  opencv_core
  opencv_highgui
  opencv_imgcodecs
)

include_directories(${OpenCV_INCLUDE_DIRS})
link_directories(${OpenCV_LIB_DIR})
add_executable(${PROJECT_NAME} src/main.cpp)
target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS})
2017-03-20 20:40:21 -0500 received badge  Notable Question (source)
2017-03-20 14:07:59 -0500 received badge  Notable Question (source)
2017-03-20 14:07:44 -0500 commented answer Why run catkin_init_workspace inside src folder?

Okay! I was always having to go back to tutorial because i was not sure (always happens when i don't know reason beyond stuff).

2017-03-20 12:14:40 -0500 received badge  Student (source)
2017-03-20 12:06:28 -0500 received badge  Popular Question (source)
2017-03-20 07:37:45 -0500 asked a question Why run catkin_init_workspace inside src folder?

I don't unstand why we run catkin_init_workspace inside the src folder, shoudn't it be the root folder, which is the catkin workspace folder?

$ mkdir -p ~/catkin_ws/src
$ cd ~/catkin_ws/src
$ catkin_init_workspace
2017-03-17 06:08:00 -0500 received badge  Scholar (source)
2017-03-17 06:07:59 -0500 received badge  Supporter (source)
2017-03-17 06:02:50 -0500 commented answer Getting started in the world of drone programming

I will give that a go for the moment.

2017-03-17 06:01:54 -0500 received badge  Popular Question (source)
2017-03-16 12:27:50 -0500 asked a question Getting started in the world of drone programming

Hey guys, I'am new in this site but i think i will pretty active in the next few months! My idea is program a drone so that it follows objects alone. I have some programming experience but i don't yet have a drone. I know that the Parrot drones can be programmed with ROS and i get the idea that people who get into this projects follow that path, i'am i correct? I found out recently that it's also possible to program DJI drones, how does that work?

I need the drone to have around 30 minutes of battery(ideally more, but if not possible that will do). The camera needs to be decent as well and i would also like the drone to be robust. (not fun burning $$).

So based on the above what drone would you recommend me, and how should i tackle this? (i'am thinking i need to study computer vision and learn to use OpenCV, what more?)