Ask Your Question
1

run : rosrun image_view image_view image:=/camera/rgb/image_mono

asked 2015-12-11 13:51:14 -0500

fatima gravatar image

updated 2015-12-11 14:08:42 -0500

130s gravatar image

hi , i want to start image processing with ROS, i think i should work wih rosrun image_view image_view image:=/camera/rgb/image_mono but when i run this command i have a window like this i dont know how work with this command :

rosrun image_view image_view image:=/camera/rgb/image_mono
or 
rosrun image_view image_view image:=/camera/rgb/image_color

so please some one help and guide me to work with this and first step for image processing ? image description

edit retag flag offensive close merge delete

Comments

1

Are image topics being published?

130s gravatar image130s ( 2015-12-11 14:08:59 -0500 )edit
1

http://wiki.ros.org/image_transport Go through the tutorials for this package

2ROS0 gravatar image2ROS0 ( 2015-12-11 15:26:26 -0500 )edit

hi 130s , im beginner at ROS, so could you please explain me more about topics that should be published i mean how could i publish?

fatima gravatar imagefatima ( 2015-12-11 23:32:00 -0500 )edit

hi 2ROS0 , i did every thing for image_transport but i had a window without any thing like the picture is in my question what should i do?

fatima gravatar imagefatima ( 2015-12-12 03:03:15 -0500 )edit

What type of camera are you using? Webcam or some else?

Ameer Hamza Khan gravatar imageAmeer Hamza Khan ( 2015-12-12 03:34:43 -0500 )edit

hi , its my webcam for my laptop .

fatima gravatar imagefatima ( 2015-12-12 03:54:24 -0500 )edit

please help me

fatima gravatar imagefatima ( 2015-12-12 04:11:18 -0500 )edit

Actually, the problem is you are not getting the image from webcam, just using image_view can't show you image. You have to get the image on image:=/Image/topic. If you were using usb webcam it would have been much easier but for integrated webcam i am not able to find any package for indigo.

Ameer Hamza Khan gravatar imageAmeer Hamza Khan ( 2015-12-12 04:18:21 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
-1

answered 2015-12-12 04:31:20 -0500

Ameer Hamza Khan gravatar image

updated 2015-12-12 04:31:34 -0500

Just download package from this link extract it in your work_space/src run catkin_make and then rosrun webcam_pub webcam_pub.

Then you can use image_view image_view image:=/webcam/image_raw

edit flag offensive delete link more

Comments

@fatima ! had this solution worked for you?

Ameer Hamza Khan gravatar imageAmeer Hamza Khan ( 2015-12-12 05:12:44 -0500 )edit

hi Ameer , thanks for help, but when i run rosrun webcam_pub webcam_pub i have this error : [ERROR] [1449937759.389801015]: [registerPublisher] Failed to contact master at [localhost:11311]. Retrying...

fatima gravatar imagefatima ( 2015-12-12 07:00:05 -0500 )edit

what should i do in your idea?

fatima gravatar imagefatima ( 2015-12-12 07:01:58 -0500 )edit

it works Ameer , very thank you , i don know how to thanks, GOD bless you , now i could start image processing if you could guide me for that to start too please tell me .again thank you so much

fatima gravatar imagefatima ( 2015-12-12 07:11:29 -0500 )edit

I think you were missing roscore. What do you want to know about image processing? Do you know openCV?

Ameer Hamza Khan gravatar imageAmeer Hamza Khan ( 2015-12-12 07:18:28 -0500 )edit

yes thats right roscore was missing, now its working, i know opencv a little but think may be i could work with image_proc but it looks like opencv is the only way rights?

fatima gravatar imagefatima ( 2015-12-12 08:20:04 -0500 )edit

Image_proc is only used for image rectification. For general purpose application u should use OpenCV. I suggest to start with this tutorial. Although written for visual studio for windows but you can easily use it in linux. It will give u general intro of openCV.

Ameer Hamza Khan gravatar imageAmeer Hamza Khan ( 2015-12-12 09:00:56 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-12-11 13:51:14 -0500

Seen: 5,347 times

Last updated: Dec 12 '15