Skip to content
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

Runtime error #23

Closed
viniciusvidal2 opened this issue Jan 4, 2022 · 7 comments
Closed

Runtime error #23

viniciusvidal2 opened this issue Jan 4, 2022 · 7 comments

Comments

@viniciusvidal2
Copy link

The follow error happens when playing a bag file from the dataset. RViz is shutdown with all the other nodes. It seems to be when the first image is received, but not much else is shown even in the log files. Sorry for my lack of expertise in more means of investigation.

I am using ROS Melodic, and I compiled the code with OpenCV 4.5.3. Compilation went well.

error_r3live

@ziv-lin
Copy link
Member

ziv-lin commented Jan 5, 2022

For reporting bugs and problems, please follow the instruction guide in our ReadMe.md. Attaching both your hardware and software environment if possible (printed by R3LIVE, see the following figure) will be a great help for me in locating your problems.
envs

@ziv-lin
Copy link
Member

ziv-lin commented Jan 5, 2022

From your case, with referring to issue #11
I suggest you check if the OpenCV you use for compiling the codes matches exactly the openCV in your runtime environment. That is , the openCV version oriented by R3LIVE should as same as the version info printed in your terminal after types:

pkg-config --modversion opencv

@viniciusvidal2
Copy link
Author

viniciusvidal2 commented Jan 5, 2022

I am trully sorry, I didn't see this part in the Readme. I attach my hardware description, and as you can see, I am using Opencv version 4.5.3. I had to download and compile this version separetelly, since Ros Melodic used 3.2.
hard
From your following suggestion, the output of the command is the following:

pkg-config --modversion opencv

3.2.0

Do you have any suggestions in setting that too? Thank you.

@ziv-lin
Copy link
Member

ziv-lin commented Jan 11, 2022

From your case, it seems that your OpenCV is complied with 4.5.3 but run with OpenCV version 3.2.0, can you keep them the same? This is very very important to launch R3LIVE correctly.

@viniciusvidal2
Copy link
Author

Perfect, already did it and it is working, thank you for your help!

@zengkailiang
Copy link

Perfect, already did it and it is working, thank you for your help!

Can you tell me how you solved it ? I'm in the same situation as you, my ros melodic used opencv3.2. I compiled the code with opencv4.4.0.

@viniciusvidal2
Copy link
Author

You might do this checking to see which version is found when running the code in command prompt:

pkg-config --modversion opencv4

This page might be helpful to double check your installation procedure:

https://linuxize.com/post/how-to-install-opencv-on-ubuntu-18-04/

As a final advice, from the time I was struggling untill now, I found further issues with other libraries that you might be willing to use too, such as open3D, related to cmake version, for instance. My best advice in the end is to upgrade to Ubuntu 20, since it has a stable upgraded environment in general. Cons: don't do it if you have more than one machine using Ubuntu 18 and ROS Melodic, because ROS will face issues regarding Melodic and Noetic communications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants