<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Dear Balise,<br><br>I comment between lines.<br><br>> Date: Tue, 2 Nov 2010 09:26:57 -0700<br>> From: blaise@willowgarage.com<br>> To: ros-users@code.ros.org<br>> Subject: Re: [ros-users] Python node design.<br>> <br>> If you move pyopencv into src, you should be able to import from<br>> python after loading the manifest, by using "import<br>> pyopencv.module_name". <br>I am putting into src/ an encapsulated version we made of pyopencv which does not require to be installed in any /usr path. Whenever I try to "import pyopencv" without LD_LIBRARY_PATH pointing it drops me this error:<br><br>ImportError: libpyopencv_extras.so.2.1.0.wr1.2.0: cannot open shared object file: No such file or directory<br><br>(Though I am not 100% sure, given that I don't<br>> know exactly what is in pyopencv.)<br>> <br>> I'm curious, however, what pyopencv is, and how it differs from the<br>> opencv2 package. http://www.ros.org/wiki/opencv2<br>
PyOpenCV are the python wrappers in which our system is currently working.<br>
http://code.google.com/p/pyopencv/<br>> <br>> 2010/11/2 Renato Samperio <mintaka_alnitak@hotmail.com>:<br>> > Dar ROS users,<br>> ><br>> > I would like to know if somebody could have a hint for our problem. This<br>> > question is for system design in python.<br>> ><br>> > We require of a ROS package holding a library for our system that has<br>> > relevant python wrappers (pyopencv) used in our system.<br>> ><br>> > So far, we have encapsulated all required libraries (*.so) and python files<br>> > (*.py) into a node structure which can be used by pointing it to the<br>> > LD_LIBRARY_PATH. However, if we want to run our system as a ROS node, we<br>> > also require to update this system variable.<br>> ><br>> > The 'manifest.xml' file for our ROS library (pyopencv) is:<br>> ><br>> > <package><br>> ><br>> > <description brief="pyopencv"> pyopencv </description><br>> ><br>> > <author>Renato Samperio</author><br>> ><br>> > <license>BSD</license><br>> ><br>> > <review status="unreviewed" notes=""/><br>> ><br>> > <url>http://ros.org/wiki/pyopencv</url><br>> ><br>> > <depend package="rospy"/><br>> ><br>> > <depend package="sensor_msgs"/><br>> ><br>> > <export><br>> ><br>> > <cpp lflags="-Wl,-rpath,${prefix}/lib -L${prefix}/lib -lpyopencv_extras<br>> > -lboost_python -lcvaux -lcv_h_ext -lcv_hpp_ext -lcxcore_h_ext<br>> > -lcxcore_hpp_ext -lcxcore_hpp_point_ext -lcxcore_hpp_vec_ext -lcxtypes_h_ext<br>> > -lhighgui_ext -lcvaux -lcv -lcxcore -lhighgui -lml -lml_ext -lsdopencv_ext"<br>> > /><br>> ><br>> > </export><br>> ><br>> > </package><br>> ><br>> > We made our node following rules from PyStyleGuide. Our file system<br>> > structure is:<br>> ><br>> > pyopencv<br>> ><br>> > |- CMakeLists.txt<br>> ><br>> > |- manifest.xml<br>> ><br>> > |- mainpage.dox<br>> ><br>> > |- src/<br>> ><br>> > |- pyopencv/ $B"+(B Pointed to LD_LIBRARY_PATH<br>> ><br>> > |- __init__.py<br>> ><br>> > |- *.so, *.py, *.pyc<br>> ><br>> > I would really appreciate if somebody has an idea of how we could avoid the<br>> > LD_LIBRARY_PATH system variable.<br>> ><br>> > With best wishes,<br>> ><br>> > Renato Samperio<br>> ><br>> > _______________________________________________<br>> > ros-users mailing list<br>> > ros-users@code.ros.org<br>> > https://code.ros.org/mailman/listinfo/ros-users<br>> ><br>> ><br>> _______________________________________________<br>> ros-users mailing list<br>> ros-users@code.ros.org<br>> https://code.ros.org/mailman/listinfo/ros-users<br>                                        </body>
</html>