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

cant start with ROS2 - Wrong path to vocabulary #149

Open
zoldaten opened this issue Sep 2, 2023 · 0 comments
Open

cant start with ROS2 - Wrong path to vocabulary #149

zoldaten opened this issue Sep 2, 2023 · 0 comments

Comments

@zoldaten
Copy link

zoldaten commented Sep 2, 2023

i`ve built ros2 orb_slam2 package but cant start:

ros2 run orb_slam2_ros orb_slam2_ros_mono ORBvoc.txt
[INFO] [1693671298.913516708] [orb_slam2_mono_node]: Camera info received.

ORB-SLAM2 Copyright (C) 2014-2016 Raul Mur-Artal, University of Zaragoza.
This program comes with ABSOLUTELY NO WARRANTY;
This is free software, and you are welcome to redistribute it
under certain conditions. See LICENSE.txt.

OpenCV version : 4.5.5
Major version : 4
Minor version : 5
Subminor version : 5
Input sensor was set to: Monocular

Loading ORB Vocabulary.
An error occured while opening the input stream.
Cannot find binary file for vocabulary. 
Failed to open at: file_not_set.bin
Trying to open the text file. This could take a while...
An error occured while opening the input stream.
Wrong path to vocabulary. 
Failed to open at: file_not_set
Warning: class_loader.ClassLoader: SEVERE WARNING!!! Attempting to unload library while objects created by this loader exist in the heap! You should delete your objects before attempting to unload the library or destroying the ClassLoader. The library will NOT be unloaded.
         at line 127 in ./src/class_loader.cpp
Warning: class_loader.ClassLoader: SEVERE WARNING!!! Attempting to unload library while objects created by this loader exist in the heap! You should delete your objects before attempting to unload the library or destroying the ClassLoader. The library will NOT be unloaded.
         at line 127 in ./src/class_loader.cpp
[ros2run]: Process exited with failure 255

it also not working with abs path to vocab:
ros2 run orb_slam2_ros orb_slam2_ros_mono /home/rock/ORB_SLAM2/Vocabulary/ORBvoc.txt

my camera starts well:
ros2 run gscam2 gscam_main --ros-args --remap /image_raw:=/camera/image_raw --remap /camera_info:=/camera/camera_info -p camera_info_url:=file:///home/rock/ros2_ws/src/gscam2/cfg/my_camera.ini

could you help a bit ?

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

1 participant