[JdeRobot] Error running Follow_line

Julio Vega julio.vega at urjc.es
Tue May 31 19:13:47 CEST 2016


  Hi again,

  finally* this problem was solved*! I am going to try to explain the
process I have followed:
  - I saw a "generateGUI" and I thought that I could not to have a gui
generated, so I tried to execute it. I got these errors:
./generateGUI: línea 3: pyuic4: orden no encontrada
./generateGUI: línea 5: pyrcc4: orden no encontrada
mv: no se puede efectuar `stat' sobre «resources_rc.py»: No existe el
archivo o el directorio
  - I "googled" such an error and I found I needed to run: "sudo apt-get
install pyqt4-dev-tools qt4-designer" in order to get such a dev tool.
  - Now I could generate my GUI, but the "follow_line" executable didn't
work yet.
  - I focused on the last message: "ImportError: cannot import name
resources_rc" which came from "[...]/gui/widgets/teleopWidget.py".
  - I went to that path and, yes, I didn't see any "resources_rc" nor even
in "[...]/gui/widgets/resources", where I could find a "resources.qrc".
  - I deduced I needed to get a "resources_rc.py" to satisfy the
"teleopWidged.py" which was searching it there.
  - So I ran: "pyrcc4 resources.qrc -o resources_rc.py" and voilà, I got a
"resources_rc.py" and my "follow_line" worked so fine.

  I am very happy but anyway I suppose something is wrong. I figure out I
shouldn't have done such a hard process.

  Thanks all for your help,

  Julio








2016-05-30 21:38 GMT+02:00 Julio Vega <julio.vega en urjc.es>:

>   Hi,
>
>   it still shows the same error. I have added the PYTHONPATH to the end of
> the .basrch file as follows:
>
> PYTHONPATH="${PYTHONPATH}:~/phd/desarrollo/JdeRobot-TeachingRobotics-master/src/follow_line/:~/phd/desarrollo/JdeRobot-TeachingRobotics-master/src/follow_line/gui/widgets/resources/"
> export PYTHONPATH
>
>   And finally I run: "source .basrch". But unfortunately I get the same
> error:
> Traceback (most recent call last):
>   File "main.py", line 6, in <module>
>     from gui.GUI import MainWindow
>   File
> "/home/julio/phd/desarrollo/JdeRobot-TeachingRobotics-master/src/follow_line/gui/GUI.py",
> line 1, in <module>
>     from gui.widgets.teleopWidget import TeleopWidget
>   File
> "/home/julio/phd/desarrollo/JdeRobot-TeachingRobotics-master/src/follow_line/gui/widgets/teleopWidget.py",
> line 19, in <module>
>     from resources import resources_rc
> ImportError: cannot import name resources_rc
>
>   Thanks for your help,
>
>   Julio
>
> 2016-05-29 23:28 GMT+02:00 JoseMaria Cañas Plaza <jmplaza en gsyc.es>:
>
>> Hi Julio,
>>
>> the messages after launching gazebo are normal. They are mostly
>> warnings or non essential errors. They also appear in my computer and
>> everything works here.
>>
>> Regarding the messages after launching the follow_line component, the
>> problem seems to be an incomplete PYTHON configuration. You already
>> have a resources_rc.py file as it is included in the src/follow_line
>> directory of the TeachingRobotics repository (in addition there is
>> also a src/follow_line/gui/widgets/resources/resources_rc.pyc).
>> Despite the file exists Python does not find it when needed. Try to
>> include those directories in the PYTHONPATH environment variable. That
>> is one way to expand the set of directories where python interpreter
>> searches for modules.
>>
>> Cheers,
>>
>> On Sun, May 29, 2016 at 1:04 PM, Julio Vega <julio.vega en urjc.es> wrote:
>> >   Hi,
>> >
>> >   first of all, thanks for your help. I have tried it as you have
>> explained,
>> > step by step and results are no good. I still having the same erros.
>> >
>> >   By the side of gazebo, I get some errors, but I think they can be
>> ignored.
>> > The output is as following:
>> > =========================================
>> > Gazebo multi-robot simulator, version 5.3.0
>> > Copyright (C) 2012-2015 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.33
>> > Gazebo multi-robot simulator, version 5.3.0
>> > Copyright (C) 2012-2015 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.33
>> > [Err] [InsertModelWidget.cc:279] Missing model.config for model
>> > "/home/julio/.gazebo/models/kinect"
>> > [Err] [InsertModelWidget.cc:279] Missing model.config for model
>> > "/home/julio/.gazebo/models/mapaSimple"
>> > [Err] [InsertModelWidget.cc:279] Missing model.config for model
>> > "/usr/local/share/jderobot/gazebo/models/kinect"
>> > [Err] [InsertModelWidget.cc:279] Missing model.config for model
>> > "/usr/local/share/jderobot/gazebo/models/mapaSimple"
>> > Load: -256811480 cam_f1_left
>> > Load: -1643279736 cam_f1_right
>> > LaserDump Constructor
>> > constructor motors
>> > -----------------constructor Pose3D
>> > --Ice.Config=f1Motors.cfg
>> > GetName() Pose3D: f1
>> > [Info] loaded Ice.Config file:
>> /usr/local/share/jderobot/conf/f1Pose3D.cfg
>> > [Info] loaded Ice.Config file:
>> /usr/local/share/jderobot/conf/f1Motors.cfg
>> > Pose3D Endpoints default -h localhost -p 8998
>> > Motors Endpoints > default -h localhost -p 9999
>> >  laser: f1::laser
>> > strs[0]: f1
>> > [Info] loaded Ice.Config file:
>> /usr/local/share/jderobot/conf/f1_laser.cfg
>> > Laser Endpoints > default -h localhost -p 8996
>> > [Err] [Material.cc:93] Unable to find texture[Color_006.jpg] in
>> > path[/home/julio/.gazebo/models/pistaSimple/meshes]
>> > [Err] [Material.cc:93] Unable to find texture[Color_006.jpg] in
>> > path[/home/julio/.gazebo/models/pistaSimple/meshes]
>> > [Info] loaded Ice.Config file:
>> > /usr/local/share/jderobot/conf/cam_f1_left.cfg
>> > CameraGazebo cam_f1_left Endpoints > default -h localhost -p 8995
>> > -! 05/29/16 12:56:05.992 warning: found unknown properties for object
>> > adapter `CameraGazebo':
>> >        CameraGazebo.Camera.0.Format
>> >        CameraGazebo.Camera.0.ImageHeight
>> >        CameraGazebo.Camera.0.ImageWidth
>> >        CameraGazebo.Camera.0.Name
>> > Constructor CameraI
>> > safeThread
>> > [Info] loaded Ice.Config file:
>> > /usr/local/share/jderobot/conf/cam_f1_right.cfg
>> > CameraGazebo cam_f1_right Endpoints > default -h localhost -p 8994
>> > -! 05/29/16 12:56:05.995 warning: found unknown properties for object
>> > adapter `CameraGazebo':
>> >        CameraGazebo.Camera.0.Format
>> >        CameraGazebo.Camera.0.ImageHeight
>> >        CameraGazebo.Camera.0.ImageWidth
>> >        CameraGazebo.Camera.0.Name
>> > Constructor CameraI
>> > safeThread
>> > [Wrn] [Publisher.cc:132] Queue limit reached for topic
>> > /gazebo/default/pose/local/info, deleting message. This warning is
>> printed
>> > only once.
>> > =========================================
>> >
>> >   On the other hand, when I launch follow_line, I get this output:
>> > =========================================
>> > Traceback (most recent call last):
>> >   File "main.py", line 6, in <module>
>> >     from gui.GUI import MainWindow
>> >   File
>> >
>> "/home/julio/JdeRobot-TeachingRobotics-master/src/follow_line/gui/GUI.py",
>> > line 1, in <module>
>> >     from gui.widgets.teleopWidget import TeleopWidget
>> >   File
>> >
>> "/home/julio/JdeRobot-TeachingRobotics-master/src/follow_line/gui/widgets/teleopWidget.py",
>> > line 19, in <module>
>> >     from resources import resources_rc
>> > ImportError: cannot import name resources_rc
>> > =========================================
>> >
>> >   It seems to need something (resources_rc) that I don't have.
>> >
>> >   Does anyone know such a resource? Thanks,
>> >
>> >   Julio
>> >
>> >
>> >
>> > 2016-05-26 7:18 GMT+02:00 JoseMaria Cañas Plaza <jmplaza en gsyc.es>:
>> >>
>> >> uhm.. weird. Avoid the script for the moment, it is a shorcut.
>> >>
>> >> 1.- Run:
>> >>
>> >> source /usr/local/share/jderobot/gazebo/gazebo-setup.sh
>> >>
>> >>
>> >> 2.- Then go to the directory where you have downloaded the git
>> >> TeachingRobotics repository. Go to the
>> >>
>> >>
>> directory-with-your-copy-of-teachingRobotics/JdeRobot-TeachingRobotics/src/follow_line/gazebo
>> >> and there run
>> >>
>> >> gazebo --verbose simpleCircuit.world
>> >>
>> >>
>> >> 3.- After that, go to
>> >>
>> >>
>> directory-with-your-copy-of-teachingRobotics/JdeRobot-TeachingRobotics/src/follow_line/
>> >> and there run
>> >>
>> >> python main.py --Ice.Config=followLineF1.cfg
>> >>
>> >>
>> >> It works like a charm on my machine, with JdeRobot-5.3.2 from package
>> >> and the current source code of TeachingRobotics from the github. Let
>> >> us know and tell us the Gazebo console messages if not working
>> >> properly.
>> >>
>> >> Cheers,
>> >>
>> >> JoseMaria
>> >>
>> >> On Mon, May 23, 2016 at 8:50 PM, Julio Vega <julio.vega en urjc.es>
>> wrote:
>> >> >   Hi,
>> >> >
>> >> >   I am trying to launch the "Follow_line" code from TeachingRobotics
>> >> > GitHub
>> >> > (exactly from here [1]). I see there is a "run_it.sh", so I run it,
>> but
>> >> > I
>> >> > get some errors:
>> >> >
>> >> > ========================================
>> >> > [Msg] Waiting for master.
>> >> > [Msg] Connected to gazebo master @ http://127.0.0.1:11345
>> >> > [Msg] Publicized address: 192.168.1.35
>> >> > Load: 1134465760 cam_f1_left
>> >> > Load: 817915592 cam_f1_right
>> >> > LaserDump Constructor
>> >> > constructor motors
>> >> > -----------------constructor Pose3D
>> >> > --Ice.Config=f1Motors.cfg
>> >> > GetName() Pose3D: f1
>> >> > [Info] loaded Ice.Config file:
>> >> > /usr/local/share/jderobot/conf/f1Motors.cfg
>> >> > [Info] loaded Ice.Config file:
>> >> > /usr/local/share/jderobot/conf/f1Pose3D.cfg
>> >> > Motors Endpoints > default -h localhost -p 9999
>> >> > Pose3D Endpoints default -h localhost -p 8998
>> >> >  laser: f1::laser
>> >> > strs[0]: f1
>> >> > [Info] loaded Ice.Config file:
>> >> > /usr/local/share/jderobot/conf/f1_laser.cfg
>> >> > Laser Endpoints > default -h localhost -p 8996
>> >> > [Err] [Material.cc:93] Unable to find texture[Color_006.jpg] in
>> >> > path[/home/julio/.gazebo/models/pistaSimple/meshes]
>> >> > [Info] loaded Ice.Config file:
>> >> > /usr/local/share/jderobot/conf/cam_f1_left.cfg
>> >> > CameraGazebo cam_f1_left Endpoints > default -h localhost -p 8995
>> >> > -! 05/23/16 20:46:47.819 warning: found unknown properties for object
>> >> > adapter `CameraGazebo':
>> >> >        CameraGazebo.Camera.0.Format
>> >> >        CameraGazebo.Camera.0.ImageHeight
>> >> >        CameraGazebo.Camera.0.ImageWidth
>> >> >        CameraGazebo.Camera.0.Name
>> >> > Constructor CameraI
>> >> > safeThread
>> >> > [Info] loaded Ice.Config file:
>> >> > /usr/local/share/jderobot/conf/cam_f1_right.cfg
>> >> > CameraGazebo cam_f1_right Endpoints > default -h localhost -p 8994
>> >> > -! 05/23/16 20:46:47.823 warning: found unknown properties for object
>> >> > adapter `CameraGazebo':
>> >> >        CameraGazebo.Camera.0.Format
>> >> >        CameraGazebo.Camera.0.ImageHeight
>> >> >        CameraGazebo.Camera.0.ImageWidth
>> >> >        CameraGazebo.Camera.0.Name
>> >> > Constructor CameraI
>> >> > safeThread
>> >> > Traceback (most recent call last):
>> >> >   File "main.py", line 6, in <module>
>> >> >     from gui.GUI import MainWindow
>> >> >   File "JdeRobot-TeachingRobotics-master/src/follow_line/gui/GUI.py",
>> >> > line
>> >> > 1, in <module>
>> >> >     from gui.widgets.teleopWidget import TeleopWidget
>> >> >   File
>> >> >
>> >> >
>> "JdeRobot-TeachingRobotics-master/src/follow_line/gui/widgets/teleopWidget.py",
>> >> > line 19, in <module>
>> >> >     from resources import resources_rc
>> >> > ImportError: cannot import name resources_rc
>> >> > ========================================
>> >> >
>> >> >   It seems it is going to be launched properly, but finally it
>> crashes.
>> >> >
>> >> >   Does anyone can help me? Thanks in advance,
>> >> >
>> >> >   Julio
>> >> >
>> >> >   [1]
>> >> >
>> >> >
>> https://github.com/RoboticsURJC/JdeRobot-TeachingRobotics/tree/master/src/follow_line
>> >> >
>> >> > --
>> >> > http://www.juliovega.es
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > _______________________________________________
>> >> > Jde-developers mailing list
>> >> > Jde-developers en gsyc.es
>> >> > http://gsyc.escet.urjc.es/cgi-bin/mailman/listinfo/jde-developers
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Universidad Rey Juan Carlos
>> >> http://gsyc.urjc.es/jmplaza
>> >
>> >
>> >
>> >
>> > --
>> > http://www.juliovega.es
>> >
>> >
>>
>>
>>
>> --
>> Universidad Rey Juan Carlos
>> http://gsyc.urjc.es/jmplaza
>>
>
>
>
> --
> http://www.juliovega.es
>
>
>


-- 
http://www.juliovega.es
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: http://gsyc.escet.urjc.es/pipermail/jde-developers/attachments/20160531/df62eee9/attachment-0001.htm 


More information about the Jde-developers mailing list