Ask Your Question
0

cv_bridge tutorials not working

asked 2017-07-08 15:45:51 -0500

Allen Ayala gravatar image

updated 2017-07-08 19:15:57 -0500

When running the example code from the cv_bridge tutorial, all I see is a small window that has captured a small portion of my screen, along with terminal output that says init done and some blank space. I ran catkin_make in my catkin_ws and have received no build errors. As you can tell, I am able to run the node but don't receive the normal output. To start connection with the drone I did rosrun ardrone_autonomy ardrone_driver _realtime_navdata:=True _realtime_video:=True _navdata_demo:=1 in order to ensure that the realtime video publishing and Navdata were enabled for the drone. I also ran the stated command without the extra parameters. I am using OpenCV 3.2 with the Parrot 1 AR drone and am currently using ROS Kinetic on a Ubuntu 16.04 machine. However when I execute rosrun image_view image_view image:=/ardrone/front/image_raw, I can see the camera feed. Any help is appreciated.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2017-07-24 08:30:42 -0500

ozangungor gravatar image

Just for the record and people having the same issue I'm adding this comment. I was also having problems following that tutorial so I've changed the topic name to /usb_cam/image_raw so it works now!

edit flag offensive delete link more
0

answered 2017-07-08 20:40:08 -0500

Allen Ayala gravatar image

I am now able to receive camera feed along with the OpenCV drawn circle. To fix the issue, I changed which topic the subscriber (image_sub_) was subscribed to: from /camera/image_raw to /ardrone/image_raw. Could this change have a significant effect on vision processing?

edit flag offensive delete link more

Comments

The topic names are kind of address names or lookup so shouldn't affect on vision processing.

naveedhd gravatar image naveedhd  ( 2017-08-02 09:17:09 -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

2 followers

Stats

Asked: 2017-07-08 15:45:51 -0500

Seen: 288 times

Last updated: Jul 24 '17