-
Notifications
You must be signed in to change notification settings - Fork 819
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
rosrun image_view #42
Comments
There's no need to view image in image_view, I also have black window but I can see the map in Rviz. Make sure your image is published to /camera/image_raw, then move your camera so that map can be initialized and viewed in Rviz. |
Can you check if /camera/image_raw correctly shows the image in Rviz? |
How to do this please ? |
Add a new display, and choose Image. After that, choose /camera/image_raw to be the topic showed. |
In the image you just posted, you can see that under Image, there's a row called "Image Topic" (right above the "Transport Hint"). Click on the blank space above "raw" and choose /camera/image_raw. |
I didn't find it , I have just /ORB_SLAM/Frame as a choice ! |
OK, that's the problem. You should check why your camera driver does not publish image to /camera/image_raw. If there's no image published to this topic, ORB_SLAM as a subscriber, cannot build map since there's no input. This should not be hard, leverage ROS answer. |
OK,thank you a lot for you help, I'll post my issue there then. |
re, why it's shown here : rostopic list |
It's strange to me too. I saw you have /camera/image_raw in rostopic list, so I let you to check the content in Rviz. Maybe you can use rqt to see which node publish this topic, and use |
I suggest yo to learn some basic ROS usage, you didn't change the setting in rqt to show all topics. I said "use rqt to see which node publish this topic", but since you didn't show topics, we'll not get which node publish /camera/image_raw. BTW, you didn't even start a driver node, how can ORB_SLAM get image? |
I don't know how to do that, I'm really lost between the lines of ros tutorials.... |
I forget to tell you that I changed the settings in rqt but the results don't change.... Can you tell me please how can I start a driver node, I searched / net but I didn't find how to do it... |
You need a camera to output frames into the input for ORB-SLAM. I used usb_cam module to get the camera data. However, usb_cam sends camera data to /usb_cam/image_raw and we need it to put data into /camera/image_raw to see if your camera works, only need to run in one terminal: And the viewer in another terminal: If the above doesn't work, you have a camera that doesn't work properly. Check it in Cheese before continuing. Check the video device and the available resolutions. Now, for changing resolutions for getting a better image, it's simpler to make a roslaunch file (go read $ROS_PACKAGE_DIR/ORB_SLAM/ExampleGroovyHydro.launch ) and add in the following for the first node:
You will have to modify the appropriate settings to set it up for your system. If you have multiple cameras, change /dev/ appropriately. Now run the launch file by 'roslaunch ExampleGroovyHydro.launch' . It should spin up the camera, xViz as well as a video window that first reports something like 'loading definitions'. It should load, and then show you video soon after. You're up. Now, after playing with it, and investigating the settings, I also made a change in Data/Settings.yaml . I changed "UseMotionModel" to 0 . I'm still investigating the other settings, and how they affect the result. |
Yes. You'll get that until you start generating the map. You'll see a b/w image of your webcam with green lines. Start moving around, usually by walking forward and back. Don't start by turning in place. Once you do enough frames, it'll then switch from lines to little squares showing keypoint mappings. That's when you're starting to build the 3d map for the SLAM. And that error you noted will go away. |
thank you a lot for your explanation, how much time it takes to get the frames ?,because it doesn't work for me...!!! |
re, can you tell me please how do you chose "Fixed Frame" in Global Options/ RViz, because I noticed that sometimes I have "map" and others I have "ORB_SLAM/Camera" !! thing that I find weird |
See the author's youtube channel for some successful datasets: https://www.youtube.com/channel/UC_jh6pkpTd3movgveqdILuQ I would suggest you try to get the example sequence to run first: Once you get this working, make a copy of the file Data/Settings.yaml and use your own camera calibration settings here. fx,fy,cx,cy and lens distortion parameters. To launch this settings file, make a copy of the orb slam launch file under launch/ folder. Here you have to so you point to your own settings file and also remap fix remap: if you use the usb_cam as jwcrawley suggested, then it will be <remap from="/camera/image_raw" to="/usb_cam/image_raw /> If you are serious about using ORB_SLAM and/or other algorithms for SLAM purpose then I recommend you to learn the basics of both SLAM and ROS. Depending on your background this might take some time, but well worth investing time as otherwise you'll have a bad time. SLAM: And an introduction to CV for this purpose, such as Multiple view geometry lessons: |
Hi, thank you a lot for your precious help, the example works well,I did all the changes but it didn't work. |
I think I met the same problem as 5aou met.... I can use usb cam open my cam , and roslaunch ExampleGroovyHydro.launch I think it seems that I don't publish to camera/image_raw successfully...... how do I solve this problem? I will appreciate the help |
I have a similar issue. I can see the b/w image of my webcam with green lines but they never change to little squares as aforementioned by @jwcrawley . I have walked back and forth with the camera in a highly illuminated environment but the method refused to initialize as one can see in the image below. My camera is a PlayStation eye camera. The data that I get from opencv calibration is: Do I need to use some rectification mechanism? Can someone help me going through this problem? Thanks, mss |
Hello! |
Hi, unfortunately I didn't resolve it. Sorry. |
Hi |
Ok that'll be noce. |
@jwcrawley This work for me thanks to your suggestion! |
@jwcrawley |
|
Hi all,
I had a black window when I did:
rosrun image_view image_view image:=/ORB_SLAM/Frame _autosize:=true, any suggestion please.
PS: I'm using a Logitech camera. My frames.pdf contains "no tf data recieved".
Thank you a lot.
The text was updated successfully, but these errors were encountered: