Ask Your Question
0

Not able viewing image using image_view package

asked 2018-01-27 04:12:57 -0500

alfa_80 gravatar image

updated 2018-01-27 04:49:13 -0500

jayess gravatar image

I have been trying to use image_view to to view bottom camera of ardrone simulated in Gazebo but not able to see anything. The below command I've used:

rosrun image_view image_view image:=/ardrone/bottom/image_raw

The gui of camera is just appeared for about 3 seconds before it freezes. I have just upgraded to OpenCV3 anyway. Has it something to do with OpenCV3?

Anything that could go wrong?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2018-01-30 06:47:16 -0500

alfa_80 gravatar image

I found out that after reinstalling the ROS solves the issue by running the following command along with setting up the appropriate ROS environment variables:

sudo apt-get install ros-kinetic-desktop-full
edit flag offensive delete link more
0

answered 2018-01-27 04:57:11 -0500

jayess gravatar image

Did you switch to the bottom camera? I don't know about this simulated model of the AR.Drone 2.0, but the real one only allows the use of one camera at a time so you have to make a service call to toggle cameras (his is a limitation of the drone, not any ROS package that you're using).

To switch to the bottom camera, try using

rosservice call /ardrone/togglecam

As for the OpenCV question, I'm not sure.

edit flag offensive delete link more

Comments

I've tried using both camera but didn't work. Thanks for the input anyway

alfa_80 gravatar imagealfa_80 ( 2018-01-27 06:42:13 -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: 2018-01-27 04:12:57 -0500

Seen: 341 times

Last updated: Jan 30 '18