Git Product home page Git Product logo

Comments (28)

gitunit avatar gitunit commented on September 25, 2024

uncompress zip file and it should be solved. the documentation (section 4, point 1) says:

"You have to provide the path to the ORB vocabulary and to the settings file. The paths must be absolute or relative to the ORB_SLAM directory.
We already provide the vocabulary file we use in ORB_SLAM/Data/ORBvoc.yml. Uncompress the file, as it will be loaded much faster."

from orb_slam.

ChenhanXmu avatar ChenhanXmu commented on September 25, 2024

Thank you very much for replying me.I have uncompress the ORBvoc.yml.I guess is whether their(PATH_TO_VOCABULARY PATH_TO_SETTINGS_FILE) path to write wrong.I would like to ask you whether Their path(PATH_TO_VOCABULARY PATH_TO_SETTINGS_FILE) is the same ? and can only write one path to environment variable ?
2015-08-06 19 36 19
2015-08-06 19 45 41

from orb_slam.

Po-Jen avatar Po-Jen commented on September 25, 2024

Here's my scripts and my launch file:

https://github.com/Po-Jen/scripts/blob/master/orb_slam/slam.sh
https://gist.github.com/Po-Jen/1dc24fde19727407c3a8

You can see how to specify the path in the last of the launch file.

from orb_slam.

ChenhanXmu avatar ChenhanXmu commented on September 25, 2024

thank you very much!!!

from orb_slam.

ChenhanXmu avatar ChenhanXmu commented on September 25, 2024

用他提供的rosbag可以运行了。可是我想用自己的内置摄像头,当执行 rosrun ORB_SLAM ORB_SLAM PATH_TO_VOCABULARY PATH_TO_SETTINGS_FILE 会出现如下错误:
2015-08-09 15 57 41

from orb_slam.

Po-Jen avatar Po-Jen commented on September 25, 2024

PATH_TO_VOCABULARY and PATH_TO_SETTINGS_FILE means nothing to your program. You should give it the real path. You should know that since you have successfully run the rosbag example.

from orb_slam.

ChenhanXmu avatar ChenhanXmu commented on September 25, 2024

原來如此啊!
那麼你給的這兩行代碼是打開攝像機然後將數據放入/camera/image_raw這個topic中去是嗎 ?
(roslaunch /home/rosfuerte/project/ros/pc_cam.launch /usb_cam/image_raw:=/camera/image_raw
roslaunch ORB_SLAM ExampleFuerte.launch)

那麼我的攝像機節點是下面這個吧
2015-08-10 19 10 54

我運行下面的命令:roslaunch /home/chenhan/catkin_ws/src/usb_cam/launch/usb_cam-test.launch /usb_cam/image_raw:=/camera/image_raw
2015-08-10 19 17 09
這個錯誤,我不太理解
/usb_cam/image_raw:=/camera/image_raw 這一句

from orb_slam.

ChenhanXmu avatar ChenhanXmu commented on September 25, 2024

How can I solve this problem of "No tf data. Actual error: Fixed Frame [ORB_SLAM/Camera] does not exi"
2015-08-11 10 51 43

from orb_slam.

Po-Jen avatar Po-Jen commented on September 25, 2024

You need to use your own camera driver, usb_cam is the driver I am using. It complains that the executable usb_cam_node does not exist in your computer.

If you have your camera publish image successfully, you can start moving around. Once you do enough frames, it'll then switch from lines to little squares showing keypoint mappings. The error of "No tf data. Actual error: Fixed Frame [ORB_SLAM/Camera] does not exists" would then disappear.

You can check jwcrawley's comment in issue#42.

from orb_slam.

ChenhanXmu avatar ChenhanXmu commented on September 25, 2024

感谢啊!虽然摄像机没有显示图像,但是可以实现map了。
我现在先利用这些点云进行三维重建,请问您觉得这样可行吗?那些点云是可以提取出来的吧?

from orb_slam.

Po-Jen avatar Po-Jen commented on September 25, 2024

If you have seen feature points shown in Rviz, I think you can progress.

You should note that the map you created are sparse, if you want a semi-dense map, you should take a look at LSD-SLAM.

from orb_slam.

ChenhanXmu avatar ChenhanXmu commented on September 25, 2024

十分感谢!!!开始看LSD的paper。

from orb_slam.

Po-Jen avatar Po-Jen commented on September 25, 2024

If the problem is solved, you should close this issue. Thx~

from orb_slam.

ldhl103 avatar ldhl103 commented on September 25, 2024

the newer version is the ORB_SLAM/Data/ORBvoc.txt.tar.gz.
I uncompressed it, and my command is :

rosrun ORB_SLAM ORB_SLAM Data/ORBvoc.txt Data/settings.yaml

but I met the same problem

Wrong path to settings. Path must be absolut or relative to ORB_SLAM package directory.

how do I solve it?

from orb_slam.

raulmur avatar raulmur commented on September 25, 2024

The default settings file is "Data/Settings.yaml" not "Data/settings.yaml"
rosrun ORB_SLAM ORB_SLAM Data/ORBvoc.txt Data/Settings.yaml

In any case, check the system is working by running the example sequence using the Launch file provided (see section 5 in the documentation).

from orb_slam.

LEETZUNGYOU avatar LEETZUNGYOU commented on September 25, 2024

Hello @Po-Jen May I ask a question?
Why when I run Example.bag My ORB-SLAM didn't work?

from orb_slam.

Po-Jen avatar Po-Jen commented on September 25, 2024

You need to provide the steps you did and how did you fail.

from orb_slam.

marcelinomalmeidan avatar marcelinomalmeidan commented on September 25, 2024

1st: I really wish I could understand whatever was written here before the "If the problem is solved, you should close this issue. Thx~". Spoken language didn't help =/

2nd: I am having similar problems as described here. I followed the instructions in Readme.md, and seemed to succeed up to section 3. If I did understand Section 4 well, I have to execute the line:
rosrun ORB_SLAM ORB_SLAM PATH_TO_VOCABULARY PATH_TO_SETTINGS_FILE

I have an open terminal with roscore executing, and I open a new terminal to execute the above, which in my case is:
rosrun ORB_SLAM ORB_SLAM /Data/ORBvoc.txt /Data/Settings.yaml

The output is:
ORB-SLAM Copyright (C) 2014 Raul Mur-Artal
This program comes with ABSOLUTELY NO WARRANTY;
This is free software, and you are welcome to redistribute it
under certain conditions. See LICENSE.txt.
Segmentation fault (core dumped)

I don't understand what this Segmentation fault is. And yes, I did extract the .tar.gz file.

Still a little bit confused, I tried to go to section 5 (this forum thread made me believe that I had go through Section 5 straight away). I downloaded the example file, went to the ORB_SLAM folder in the terminal and typed (I use 14.04 with Indigo):
roslaunch ExampleGroovyOrNewer.launch

The output is long, but it seems that the error is the following:
[ERROR] [1454457475.590683661]: Wrong path to settings. Path must be absolut or relative to ORB_SLAM package directory.
[ORB_SLAM-3] process has died [pid 16098, exit code -11, cmd /home/user/ORB_SLAM/bin/ORB_SLAM Data/ORBvoc.txt Data/Settings.yaml __name:=ORB_SLAM __log:=/home/user/.ros/log/f70f21a6-c9c6-11e5-8896-0023aea65975/ORB_SLAM-3.log].
log file: /home/user/.ros/log/f70f21a6-c9c6-11e5-8896-0023aea65975/ORB_SLAM-3*.log

I apologize if this was supposed to be easy to solve, but I wasn't able to understand well what to do from the Readme file.

from orb_slam.

MarcGyongyosi avatar MarcGyongyosi commented on September 25, 2024

either remove the "/" from before the paths and make sure you're executing in the right directory, or give it absolute paths. if you give it /Data it will try to find the files in the directory /Data on your computer and not within the ORB SLAM directory

from orb_slam.

marcelinomalmeidan avatar marcelinomalmeidan commented on September 25, 2024

Thank you MarcGyongyosi! It makes sense what you said, but I just ran (I am presently in the ORB_SLAM folder):
rosrun ORB_SLAM ORB_SLAM Data/ORBvoc.txt Data/Settings.yaml

Output (Same as before =/):
ORB-SLAM Copyright (C) 2014 Raul Mur-Artal
This program comes with ABSOLUTELY NO WARRANTY;
This is free software, and you are welcome to redistribute it
under certain conditions. See LICENSE.txt.
Segmentation fault (core dumped)

from orb_slam.

ram651991 avatar ram651991 commented on September 25, 2024

I'm not providing a solution here, but I just would like to share a similar scenario i faced while running rgbdslam_v2 package. So I would like to say that this may or may not be the exact solution to your problem. "Segmentation fault (core dumped)" occurs generally due to memory issues, as in, either you're out of memory or the package is trying to access a memory area it is not supposed to. Lately i found out that I hadn't declared a swap area in my ubuntu machine where the rbgdslam package wasn't having enough memory to run itself and hence threw the "Segmentation fault" error. Off late I got the same error when i tried to run the package in raspberry pi a+ (which has only 256MB RAM). Once I fixed the swap area (by providing enough swap memory - 8gb is what i allocated), I didn't get the Segmentation fault error either in my Ubuntu machine or raspberry pi.

from orb_slam.

chaiein avatar chaiein commented on September 25, 2024

image

There is enough space but still segmentation fault

from orb_slam.

gs14iitbbs avatar gs14iitbbs commented on September 25, 2024

Helllo @marcelinomalmeidan, how did you solve your problem ?
I am having the exactly same situation.
I tried both rosrun ORB_SLAM ORB_SLAM Data/ORBvoc.txt Data/Settings.yaml
and roslaunch ExampleGroovyOrNewer.launch
but none is working as shown below:

screenshot from 2017-03-22 14 42 10

screenshot from 2017-03-22 14 43 39

Please let me know how did you solve it.
Is it problem with opencv version compatibility or something else?

This link discuss similar topic, but I didn't get solution:
#89

from orb_slam.

marcelinomalmeidan avatar marcelinomalmeidan commented on September 25, 2024

Hey @gs14iitbbs! Sorry, its been so long, I don't quite recall how I solved it. I feel bad that I didn't post my solution here =/
However, I recall uninstalling OpenCV and reinstalling the right version, which helped for something. I just don't recall if this actually helped for this one problem.

from orb_slam.

gs14iitbbs avatar gs14iitbbs commented on September 25, 2024

Okay !! thanks, I will try to solve it changing OpenCV version. If I could solve it, I will post it.

from orb_slam.

latifAnjum avatar latifAnjum commented on September 25, 2024

My launch command:
rosrun ORB_SLAM ORB_SLAM Data/ORBvoc.yml Data/Settings.yaml
Generates this error.
image
Files (ORBvoc.yml and Settings.yaml) are placed in the mentioned path, unzipped.

System Info:
I have Ubuntu 16.04 with ROS Kinetic Kame. Please help. I have successfully built ORBSLAM in ROS Kinetic Kame, so I guess this distro of ROS is not the problem.

from orb_slam.

wangzhaoguang avatar wangzhaoguang commented on September 25, 2024

@latifAnjum
your command is not right : rosrun ORB_SLAM ORB_SLAM Data/ORBvoc.yml Data/Settings.yaml
should like : rosrun ORB_SLAM ORB_SLAM Data/ORBvoc.txt Data/Settings.yaml
anyway, even run the above one, I met errors, saying "Wrong path to settings. Path must be absolut or relative to ORB_SLAM package directory."

from orb_slam.

wangzhaoguang avatar wangzhaoguang commented on September 25, 2024

@ChenhanXmu hello chen, you got through the error but you did not say how.
actually I met the same problem, like below:
By the way, I checked the voc path and Settings.yawl, they are both well placed and spelled as @raulmur said.
4

from orb_slam.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.