ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

Are opencv samples in diamondback debs?

asked 2011-03-04 09:09:36 -0500

fergs gravatar image

I recently upgraded to diamondback release (installed on Ubuntu 10.04 from apt-get). As I recall, the samples for opencv used to be in the opencv2 package directory -- however, it appears they no longer are? Am I looking in the wrong place or is this due to the cleanup that was done to reduce the size of the .debs?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
3

answered 2011-03-06 13:08:09 -0500

Eric Perko gravatar image

updated 2011-03-06 13:09:38 -0500

It looks like this was due to the cleanup of the debs.

If you checkout and build the opencv2 package from source (with e.g. svn co https://code.ros.org/svn/ros-pkg/stacks/vision_opencv/trunk/opencv2 and then CD into that package and type make), you'll find that it does download and build the samples, but they are never moved out of the build directory. Part of the deb cleanup was to remove all build directories from packages so that the debs did not include a bunch of intermediate object files, only finished executables and libraries.

If you think that the samples should be available to deb users, filing a ticket would be the best way to get them re-included. If the samples are large, it might be best for the build system to provide a second .deb that includes just the samples that could be installed in addition to the standard vision_opencv deb file. I can't really say whether or not the samples were intentionally kept out to keep the debs small or if it was just an oversight.

edit flag offensive delete link more

Comments

"roscd opencv2" and "make" should also work for the deb-packaged version. You need root access though.
Felix Endres gravatar image Felix Endres  ( 2011-03-06 19:24:02 -0500 )edit
Generally, building/editing files inside the deb-packaged version install is a poor idea. A much better solution is to overlay the package/stack you want to develop with using something like rosinstall (or by checking it out onto your ROS_PACKAGE_PATH).
Eric Perko gravatar image Eric Perko  ( 2011-03-07 12:18:48 -0500 )edit
This is basically what I thought, I wanted to confirm that I wasn't looking in the wrong place. Thanks Erik
fergs gravatar image fergs  ( 2011-03-07 12:28:05 -0500 )edit
I'm also in favour of having an extra package with both OpenCV and OpenCV2 samples.
KoenBuys gravatar image KoenBuys  ( 2011-03-07 17:38:38 -0500 )edit
0

answered 2011-03-06 12:47:11 -0500

Yongqiang Gao gravatar image

Hi, the size of diamondback is obviously smaller than cturtle. And also i can not find the samples under /vision/opencv2. Some puzzles are also for me..

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-03-04 09:09:36 -0500

Seen: 709 times

Last updated: Mar 06 '11