[JdeRobot] [jderobot] Error in import CV2

Âishik Pyne aishikpyne at gmail.com
Wed Mar 22 03:59:07 CET 2017


Hey Arturo,

JdeRobot​ has released it's 5.5 version and I think it doesn't have open CV
as a dependency. It comes along with it. I think a fresh install of it (
instructions at
http://jderobot.org/index.php/Manual-5#Installing_JdeRobot_5 ) should solve
all problems. Make sure you have Ubuntu 16.04 Xenial 64bit or a stable
Debian distribution. Make sure to have the pre requisites in the link.

Cheers :)

On Mar 21, 2017 11:58 PM, <jde-developers-request at gsyc.urjc.es> wrote:

Send Jde-developers mailing list submissions to
        jde-developers at gsyc.urjc.es

To subscribe or unsubscribe via the World Wide Web, visit
        https://gsyc.urjc.es/cgi-bin/mailman/listinfo/jde-developers
or, via email, send a message with subject or body 'help' to
        jde-developers-request at gsyc.urjc.es

You can reach the person managing the list at
        jde-developers-owner at gsyc.urjc.es

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Jde-developers digest..."


Today's Topics:

   1. Re: Error with Gazebo (Arturo Vélez)
   2. Re: [jderobot] Error in import CV2 (Arturo Vélez)


----------------------------------------------------------------------

Message: 1
Date: Tue, 21 Mar 2017 18:46:02 +0100
From: Arturo Vélez <arturo92vd at gmail.com>
To: jderobot <jde-developers at gsyc.es>
Subject: Re: [JdeRobot] Error with Gazebo
Message-ID:
        <CA+gZre4tFf+QQiHRnDgwpBZ3B2pExOvvBo_Fx4ixW9SwC6ikBQ at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hello,

The code you mention is in my .bashrc file. I send it attached.

Regards,
Arturo.

2017-03-17 16:43 GMT+01:00 JoseMaria Cañas Plaza <jmplaza at gsyc.es>:

> Arturo,
>
> it seems that your Gazebo does not find the auxiliary resources at run
> time. Did you run the post-installation instructions [1]? Could you
> show the last lines of your .bashrc file? It should include something
> like this, which configures environment variables so Gazebo can locate
> those auxiliary resources:
>
> ------------------------------------------------------------
> # JdeRobot resources
> export GAZEBO_RESOURCE_PATH=$GAZEBO_RESOURCE_PATH:/usr/local/
> share/jderobot/gazebo/models:/usr/local/share/jderobot/gazebo/worlds
> export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:/usr/local/share/
> jderobot/gazebo/models
> export GAZEBO_PLUGIN_PATH=$GAZEBO_PLUGIN_PATH:/usr/local/share/
> jderobot/gazebo/plugins/pioneer:/usr/local/share/
> jderobot/gazebo/plugins/nao:/usr/local/share/jderobot/
> gazebo/plugins/kinect:/usr/local/share/jderobot/gazebo/
> plugins/quadrotor:/usr/local/share/jderobot/gazebo/plugins/
> turtlebot:/usr/local/share/jderobot/gazebo/plugins/
> flyingkinect:/usr/local/share/jderobot/gazebo/plugins/car:/
> usr/local/share/jderobot/gazebo/plugins/f1
> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/jderobot:/
> usr/local/share/jderobot/gazebo/plugins/pioneer:/usr/
> local/share/jderobot/gazebo/plugins/nao:/usr/local/share/
> jderobot/gazebo/plugins/kinect:/usr/local/share/jderobot/gazebo/plugins/
> quadrotor:/usr/local/share/jderobot/gazebo/plugins/
> turtlebot:/usr/local/share/jderobot/gazebo/plugins/
> flyingkinect:/usr/local/share/jderobot/gazebo/plugins/car:/
> usr/local/share/jderobot/gazebo/plugins/f1
> --------------------------------------------------------------
>
> Cheers,
>
> JoseMaria
> [1] http://jderobot.org/index.php/Manual-5#Installation_for_
> running_JdeRobot
>
> On Fri, Mar 17, 2017 at 2:16 PM, Arturo Vélez <arturo92vd at gmail.com>
> wrote:
> > I´ve just reinstalled Ubuntu 16.04 from zero, and I installed JdeRobot
> 5.5.
> > The problem still.
> >
> > I am trying to open ArDrone.world as the example.
> >
> > 2017-03-13 19:17 GMT+01:00 Arturo Vélez <arturo92vd at gmail.com>:
> >>
> >> I am using 5.4.2 also, gazebo 7, no graphics acceleration. JdeRobot was
> >> installed cleanly because i reinstalled completely the OS, and after
> >> reinstalling OS, the next thing installed was JdeRobot (and all the
> >> dependencies).
> >>
> >> Running Gazebo without GUI i get the attached. I check the system log
> and
> >> i've found this, if it helps:
> >> Mar 13 18:46:38 arturo-Compaq-Presario-CQ70-Notebook-PC kernel: [
> >> 409.802567] gzserver[3486]: segfault at 40 ip 00007fa7b34f396b sp
> >> 00007fa76a9fb9f0 error 4 in libgazebo_common.so.7.5.0[
> 7fa7b344a000+101000]
> >> Mar 13 18:47:52 arturo-Compaq-Presario-CQ70-Notebook-PC kernel: [
> >> 484.305540] gzserver[3813]: segfault at 40 ip 00007fc58c1c996b sp
> >> 00007fc5437fc9f0 error 4 in libgazebo_common.so.7.5.0[
> 7fc58c120000+101000]
> >>
> >> Also, i am trying now, other worlds, and the error i get for most of
> them
> >> is "[Err] [Node.cc:105] No namespace found", and in
> ardrone_turtlebot.world
> >> in particular i get the error:
> >>
> >> "terminate called after throwing an instance of 'Ice::SocketException'
> >>   what():  Network.cpp:2065: Ice::SocketException:
> >> socket exception: Address already in use"
> >>
> >> I don't know if it can be related with the issue, but maybe Gazebo is
> bad
> >> configure or installed...
> >>
> >> Thanks,
> >> Arturo.
> >>
> >>
> >>
> >>
> >>
> >> 2017-03-13 11:29 GMT+01:00 JoseMaria Cañas Plaza <jmplaza at gsyc.es>:
> >>>
> >>> Hi Arturo,
> >>>
> >>> which release of JdeRobot are you working with? I'm using 5.4.2,
> >>> cleanly installed from debian packages, and gazebo works fine with the
> >>> same world you have launched....
> >>>
> >>> Do you have openGL (accelerated graphics) on your machine? Try to
> >>> start Gazebo without GUI to see if the problem is related with
> >>> graphics or not?:
> >>> gzserver --verbose ardrone-turtlebot.world
> >>>
> >>> If you ask for help here, please put more information of the context.
> >>> Otherwise you put things difficult for other people to help you.
> >>>
> >>> Cheers,
> >>>
> >>> JoseMaria
> >>>
> >>> On Thu, Mar 9, 2017 at 8:15 PM, Arturo Vélez <arturo92vd at gmail.com>
> >>> wrote:
> >>> > I get this when I open the world with --verbose:
> >>> >
> >>> > /gazebo/worlds$ gazebo --verbose ardrone-turtlebot.world
> >>> > Gazebo multi-robot simulator, version 7.5.0
> >>> > Copyright (C) 2012 Open Source Robotics Foundation.
> >>> > Released under the Apache 2 License.
> >>> > http://gazebosim.org
> >>> >
> >>> > [Msg] Waiting for master.
> >>> > Gazebo multi-robot simulator, version 7.5.0
> >>> > Copyright (C) 2012 Open Source Robotics Foundation.
> >>> > Released under the Apache 2 License.
> >>> > http://gazebosim.org
> >>> >
> >>> > [Msg] Waiting for master.
> >>> > [Msg] Connected to gazebo master @ http://127.0.0.1:11345
> >>> > [Msg] Publicized address: 192.168.1.10
> >>> > [Msg] Connected to gazebo master @ http://127.0.0.1:11345
> >>> > [Msg] Publicized address: 192.168.1.10
> >>> > [Wrn] [GuiIface.cc:256] Couldn't locate specified .ini. Creating
file
> >>> > at
> >>> > "/home/arturo/.gazebo/gui.ini"
> >>> > [Wrn] [msgs.cc:1807] Conversion of sensor type[imu] not suppported.
> >>> > Error [Element.hh:336] Unable to find value for key[self_collide]
> >>> > QuadRotorSensors::QuadRotorSensors()
> >>> > [0x7f422803c6d0]QuadrotorPlugin::QuadrotorPlugin()
> >>> > [quadrotor] QuadrotorPlugin::Load()
> >>> > [quadrotor] QuadrotorPlugin::InitializeIce()
> >>> > [quadrotor]     config: quadrotorplugin2.cfg
> >>> > [Info] loaded Ice.Config file:
> >>> > /usr/local/share/jderobot/conf/quadrotorplugin2.cfg
> >>> > [quadrotor]     create Ice plugin...
> >>> > [quadrotor] QuadrotorPlugin::Init()
> >>> > [quadrotor] Sensors of quadrotor
> >>> > [quadrotor]     cam_sensor_ventral (id: 35)
> >>> > [quadrotor]     cam_sensor_frontal (id: 36)
> >>> > [quadrotor]     sonar (id: 37)
> >>> > [quadrotor]     imu_sensor (id: 68)
> >>> > [quadrotor]     boostrap quadrotor state as Landed
> (altitude=0.103209)
> >>> > [Err] [Connection.cc:541] Connection[17] Closed during Read
> >>> > [Err] [TransportIface.cc:374] Unable to read from master
> >>> > [Err] [GLWidget.cc:856] Unable to connect to a running Gazebo
master.
> >>> >
> >>> >
> >>> >
> >>> >
> >>> > --
> >>> > View this message in context:
> >>> > http://jderobot-developer-list.2315034.n4.nabble.com/
> JdeRobot-Error-with-Gazebo-tp4643212p4643241.html
> >>> > Sent from the Jderobot Developer List mailing list archive at
> >>> > Nabble.com.
> >>> > _______________________________________________
> >>> > Jde-developers mailing list
> >>> > Jde-developers at gsyc.urjc.es
> >>> > https://gsyc.urjc.es/cgi-bin/mailman/listinfo/jde-developers
> >>>
> >>>
> >>>
> >>> --
> >>> Universidad Rey Juan Carlos
> >>> http://gsyc.urjc.es/jmplaza
> >>
> >>
> >
> >
> > _______________________________________________
> > Jde-developers mailing list
> > Jde-developers at gsyc.urjc.es
> > https://gsyc.urjc.es/cgi-bin/mailman/listinfo/jde-developers
> >
>
>
>
> --
> Universidad Rey Juan Carlos
> http://gsyc.urjc.es/jmplaza
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gsyc.urjc.es/pipermail/jde-developers/
attachments/20170321/df0d18d2/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .bashrc
Type: application/octet-stream
Size: 5031 bytes
Desc: not available
URL: <http://gsyc.urjc.es/pipermail/jde-developers/
attachments/20170321/df0d18d2/attachment-0001.obj>

------------------------------

Message: 2
Date: Tue, 21 Mar 2017 11:21:06 -0700 (PDT)
From: Arturo Vélez <arturo92vd at gmail.com>
To: jde-developers at gsyc.es
Subject: Re: [JdeRobot] [jderobot] Error in import CV2
Message-ID: <1490120466393-4643254.post at n4.nabble.com>
Content-Type: text/plain; charset=us-ascii

Hi,

I have a similar issue:

ImportError: /opt/ros/kinetic/lib/python2.7/dist-packages/cv2.so: undefined
symbol: PyCObject_Type

I tried <code>sudo apt-get dist-upgrade</code> and <code>sudo pip install
opencv-python</code> (also with pip3 just in case), but the problem
persist...

Any idea? Thanks in advance.
Regards.




--
View this message in context: http://jderobot-developer-
list.2315034.n4.nabble.com/JdeRobot-jderobot-Error-in-
import-CV2-tp4643232p4643254.html
Sent from the Jderobot Developer List mailing list archive at Nabble.com.


------------------------------

Subject: Digest Footer

_______________________________________________
Jde-developers mailing list
Jde-developers at gsyc.urjc.es
https://gsyc.urjc.es/cgi-bin/mailman/listinfo/jde-developers


------------------------------

End of Jde-developers Digest, Vol 102, Issue 17
***********************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gsyc.urjc.es/pipermail/jde-developers/attachments/20170322/4527abc4/attachment-0001.html>


More information about the Jde-developers mailing list