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
Get Pose Information from ORBSLAM #597
Comments
Hi Sivakumar, if you simply want to publish pose using a stereo node then add these set of lines in the
Hope this helps! |
Great, thank you so much! I will try this solution and follow up if there are any issues. |
So for some reason the pose publisher does not show up when I do rostopic list while the code is running. As a result, I'm not able to subscribe to the topic from RVIZ. I put the publisher code all below the line that has the sync registerCallback. Is this correct? I also tried adding cout statements ending with endl to see if the file was indeed getting to where I was publishing the node. However, I am getting no output from these cout statements I added within the main function. So not sure why file is not reading cout statements nor publishing to the topic. Also this is what I have for my publisher definition: Any help on why I am not able to publish would be much appreciated! |
And one more question just about the code, what variable would I need to convert into a ROS message type if I wanted to publish the key points detected by ORB SLAM? I would like to create the map based off these key features! |
Hey sorry for the late update, can you post your For extracting key features you can use methods |
Thanks for following up! I actually got it working, I had put your code in the main function instead of the GrabStereo method which was why nothing was being called back repeatedly. And great, I'll try getting that to work then! Will follow up if I have any other questions! |
So when I run the ORB_SLAM stereo file using my own stereo camera through ROS topics, I can see points in your GUI but there seems to be no save button or stop button that will let me save the map which I can then use at a later time for localization. Is there a way to save the map as a file which I can pull up later? If not, what file would I need to edit to change the GUI functionalities? Also, I see that there are these lines in ros_stereo.cpp:
Where are these text files being saved? I have been exiting the application through Ctrl+c, so not sure if these text files will save then. There is also no stop button on the GUI, so how would I ensure the saving of the map? Thanks! |
Hi, I had a similar interest in returning the pose data with a mono setup. to that end, I was able to adapt and modify the above code for my use case, but I am experiencing a stability issue. I can launch the software and it appears to function as usual. I am also able to read the published orb_pose messages a Simulink program using a ROS subscriber block. The issue is that it will crash if left running. I made all of the modification listed in above posts in ImageGrabber:
where:
defines the behavior of "!". this runs fine but will inevitably throw a run-time error within the first ~5 minutes with the following messages:
I was curious if any obvious reason for the came to mind, if not, I will peruse documentation and try to solve it. Again, this is all done in ROS_mono.cc, not ROS_stereo.cc as above. |
thanks, very helpful additional header files: |
I have tried this for stereo vision. But when I published pose are not providing the correct pose. I tried the V1_01 dataset while running this I get a good pose out. As I interfaced my stereo camera the pose I get is corresponding to the motion I make, the change in position is not mapped correctly. |
Hey, |
Hi mkestrada2, I implemented this as well in ROS_mono.cc and I am getting the same error as you after about a minute of running...
Did you ever solve this? Does it have to do with memory? Thanks for your help! |
I solved removing the ros::spin() in the GrabImage function. |
…me to csv in realtime sucked in pull request 357 and fixed build issue related to x3d https://githubmemory.com/repo/UZ-SLAMLab/ORB_SLAM3/issues/315 if link dead try https://web.archive.org/web/20210831165952/https://githubmemory.com/repo/UZ-SLAMLab/ORB_SLAM3/issues/315
but i still get the warning: |
|
Hi, I wish to extract pose information about my Zed stereo camera that is running ORBSLAM2. I see in the MapPoint.h file there is a function GetWorldPos(), but it returns a Mat. In what format is this Mat in and how would I convert this to global pose? I would like to convert this Mat into a PoseStamped ROS message. For context, my goal is to just map the pose in RVIZ and make a map, so I'd like to then publish the PoseStamped message.
Thank you for any help.
The text was updated successfully, but these errors were encountered: