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

How to use very latest OpenCV version in ROS?

asked 2011-05-05 04:41:34 -0600

Julius gravatar image

updated 2011-05-05 06:13:07 -0600

Eric Perko gravatar image

I am trying to use the very latest version of OpenCV in ROS because I want to integrate a critical bugfix from OpenCV. From what I read OpenCV is integrated by some 'magic' mechanism. Is it simply enough to replace my diamondback vision_opencv stack by the latest one from SVN, or do I also have to specify which OpenCV version is magically included?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2011-05-05 06:11:35 -0600

updated 2011-05-05 06:16:09 -0600

The make file in vision_opencv/opencv2 seems to contain the URI and svn branch it checks out. You could probably do what you are saying by changing that URI, though I'm guessing and can't confirm that this would work.

edit flag offensive delete link more

Comments

This will work as long as you are building everything dependent on it from source.
tfoote gravatar image tfoote  ( 2011-05-05 07:13:38 -0600 )edit
Yes. I backported latest OpenCV rev 5024 from trunk to aptitude ROS diamondback installation. Applied the following changes (1) SVN_URL="https://code.ros.org/svn/opencv/trunk/opencv", (2) SVN_REVISION="-r5024", (3) disabling out-dated patch "# SVN_PATCH = pythontest.patch". (4) Removed ROS_NOBUILD.
Julius gravatar image Julius  ( 2011-05-06 00:59:35 -0600 )edit
You should avoid changing the files included in the debs (the files that are in /opt/ros ) as they will likely be overwritten in the next update to that .deb package. You should instead overlay the vision_opencv stack and make your changes to this local overlay.
Eric Perko gravatar image Eric Perko  ( 2011-05-06 08:29:51 -0600 )edit
True indeed, that's good advice. It's not recommended to mess around with any packaged installation. The steps remain the same, though.
Julius gravatar image Julius  ( 2011-05-06 19:11:13 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2011-05-05 04:41:34 -0600

Seen: 2,164 times

Last updated: May 05 '11