New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ROS Free Compile and Run using WebCam #426
Comments
You need to install it as a regular library to begin with, but if you have ROS installed it will probably install the ROS version. You can solve this problem like this:
This way you will have a version without ROS even if it is present in the system. Install next as a regular cmake library.. & make -j4 & make install Connect it to your project, I do this using qmake in pro. :
Next you can create a class to work with OpenVINS;
Create an instance of the class in a separate thread:
The current configuration works for Stereo so you just have to deal with the camera in mono mode. |
Thanks. Honestly I am new to OpenVins. I will do what you wrote and give you feedback. |
It seems that you are reading the images with the real sense camera but I don't have that and want to read input images with my WebCam. Can you please explain me how to do it? |
Perhaps I will leave this to you as homework)). There are examples on the Internet of how to obtain images from a camera using OpenCV, and how to use mono can be found in ROS1Visualizer.cpp. You will also need a synchronized IMU along with the camera and this is a problem because... regular cameras do not have imu, and synchronization assumes that imu data should be read at the moment when the camera shutter is charging, i.e. it must be implemented in hardware between sensors to function properly. This is necessary for setting temporary marks on the image from the camera and data received from inertial sensors. Their further integration and calculation of motion. But perhaps you have a camera like this with an ExtTrigg output from the camera shutter to read this interrupt as a read command to the IMU, or just a Realsense camera that will do the job for you. |
Are you trying to run it with your webcam only? This is visual-inertial project so you also need an IMU. If you just wish to use the feature tracking, then you should be able to just build ov_core and use the webcam example.
|
I have built and make open_vins on ubuntu 20.04.6 using the installation guide (ROS Free). But now I don't know how to compile and run it using my webcam without ROS. Could anyone please help me?!
Thanks.
The text was updated successfully, but these errors were encountered: