<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div> Hi again,<br><br></div> finally<b> this problem was solved</b>! I am going to try to explain the process I have followed:<br></div></div> - 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:<br>./generateGUI: línea 3: pyuic4: orden no encontrada<br>./generateGUI: línea 5: pyrcc4: orden no encontrada<br>mv: no se puede efectuar `stat' sobre «resources_rc.py»: No existe el archivo o el directorio<br></div> - 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.<br></div> - Now I could generate my GUI, but the "follow_line" executable didn't work yet.<br></div> - I focused on the last message: "ImportError: cannot import name resources_rc" which came from "[...]/gui/widgets/teleopWidget.py".<br></div> - 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".<br></div> - I deduced I needed to get a "resources_rc.py" to satisfy the "teleopWidged.py" which was searching it there.<br></div> - 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.<br><br></div> I am very happy but anyway I suppose something is wrong. I figure out I shouldn't have done such a hard process.<br><br></div> Thanks all for your help,<br><br></div> Julio<br><div><div><div><div><div><div><div><div><div><br><br><br><br><br><br><br></div></div></div></div></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-05-30 21:38 GMT+02:00 Julio Vega <span dir="ltr"><<a href="mailto:julio.vega@urjc.es" target="_blank">julio.vega@urjc.es</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div> Hi,<br><br></div> it still shows the same error. I have added the PYTHONPATH to the end of the .basrch file as follows:<br>PYTHONPATH="${PYTHONPATH}:~/phd/desarrollo/JdeRobot-TeachingRobotics-master/src/follow_line/:~/phd/desarrollo/JdeRobot-TeachingRobotics-master/src/follow_line/gui/widgets/resources/"<br>export PYTHONPATH<br><br></div> And finally I run: "source .basrch". But unfortunately I get the same error:<span class=""><br>Traceback (most recent call last):<br> File "main.py", line 6, in <module><br> from gui.GUI import MainWindow<br></span> File "/home/julio/phd/desarrollo/JdeRobot-TeachingRobotics-master/src/follow_line/gui/GUI.py", line 1, in <module><br> from gui.widgets.teleopWidget import TeleopWidget<br> File "/home/julio/phd/desarrollo/JdeRobot-TeachingRobotics-master/src/follow_line/gui/widgets/teleopWidget.py", line 19, in <module><span class=""><br> from resources import resources_rc<br>ImportError: cannot import name resources_rc<br><br></span></div> Thanks for your help,<br><br></div> Julio<br></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">2016-05-29 23:28 GMT+02:00 JoseMaria Cañas Plaza <span dir="ltr"><<a href="mailto:jmplaza@gsyc.es" target="_blank">jmplaza@gsyc.es</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Julio,<br>
<br>
the messages after launching gazebo are normal. They are mostly<br>
warnings or non essential errors. They also appear in my computer and<br>
everything works here.<br>
<br>
Regarding the messages after launching the follow_line component, the<br>
problem seems to be an incomplete PYTHON configuration. You already<br>
have a resources_rc.py file as it is included in the src/follow_line<br>
directory of the TeachingRobotics repository (in addition there is<br>
also a src/follow_line/gui/widgets/resources/resources_rc.pyc).<br>
Despite the file exists Python does not find it when needed. Try to<br>
include those directories in the PYTHONPATH environment variable. That<br>
is one way to expand the set of directories where python interpreter<br>
searches for modules.<br>
<br>
Cheers,<br>
<div><div><br>
On Sun, May 29, 2016 at 1:04 PM, Julio Vega <<a href="mailto:julio.vega@urjc.es" target="_blank">julio.vega@urjc.es</a>> wrote:<br>
> Hi,<br>
><br>
> first of all, thanks for your help. I have tried it as you have explained,<br>
> step by step and results are no good. I still having the same erros.<br>
><br>
> By the side of gazebo, I get some errors, but I think they can be ignored.<br>
> The output is as following:<br>
> =========================================<br>
> Gazebo multi-robot simulator, version 5.3.0<br>
> Copyright (C) 2012-2015 Open Source Robotics Foundation.<br>
> Released under the Apache 2 License.<br>
> <a href="http://gazebosim.org" rel="noreferrer" target="_blank">http://gazebosim.org</a><br>
><br>
> [Msg] Waiting for master.<br>
> [Msg] Connected to gazebo master @ <a href="http://127.0.0.1:11345" rel="noreferrer" target="_blank">http://127.0.0.1:11345</a><br>
> [Msg] Publicized address: 192.168.1.33<br>
> Gazebo multi-robot simulator, version 5.3.0<br>
> Copyright (C) 2012-2015 Open Source Robotics Foundation.<br>
> Released under the Apache 2 License.<br>
> <a href="http://gazebosim.org" rel="noreferrer" target="_blank">http://gazebosim.org</a><br>
><br>
> [Msg] Waiting for master.<br>
> [Msg] Connected to gazebo master @ <a href="http://127.0.0.1:11345" rel="noreferrer" target="_blank">http://127.0.0.1:11345</a><br>
> [Msg] Publicized address: 192.168.1.33<br>
> [Err] [InsertModelWidget.cc:279] Missing model.config for model<br>
> "/home/julio/.gazebo/models/kinect"<br>
> [Err] [InsertModelWidget.cc:279] Missing model.config for model<br>
> "/home/julio/.gazebo/models/mapaSimple"<br>
> [Err] [InsertModelWidget.cc:279] Missing model.config for model<br>
> "/usr/local/share/jderobot/gazebo/models/kinect"<br>
> [Err] [InsertModelWidget.cc:279] Missing model.config for model<br>
> "/usr/local/share/jderobot/gazebo/models/mapaSimple"<br>
> Load: -256811480 cam_f1_left<br>
> Load: -1643279736 cam_f1_right<br>
> LaserDump Constructor<br>
> constructor motors<br>
> -----------------constructor Pose3D<br>
> --Ice.Config=f1Motors.cfg<br>
> GetName() Pose3D: f1<br>
> [Info] loaded Ice.Config file: /usr/local/share/jderobot/conf/f1Pose3D.cfg<br>
> [Info] loaded Ice.Config file: /usr/local/share/jderobot/conf/f1Motors.cfg<br>
> Pose3D Endpoints default -h localhost -p 8998<br>
> Motors Endpoints > default -h localhost -p 9999<br>
> laser: f1::laser<br>
> strs[0]: f1<br>
> [Info] loaded Ice.Config file: /usr/local/share/jderobot/conf/f1_laser.cfg<br>
> Laser Endpoints > default -h localhost -p 8996<br>
> [Err] [Material.cc:93] Unable to find texture[Color_006.jpg] in<br>
> path[/home/julio/.gazebo/models/pistaSimple/meshes]<br>
> [Err] [Material.cc:93] Unable to find texture[Color_006.jpg] in<br>
> path[/home/julio/.gazebo/models/pistaSimple/meshes]<br>
> [Info] loaded Ice.Config file:<br>
> /usr/local/share/jderobot/conf/cam_f1_left.cfg<br>
> CameraGazebo cam_f1_left Endpoints > default -h localhost -p 8995<br>
> -! 05/29/16 12:56:05.992 warning: found unknown properties for object<br>
> adapter `CameraGazebo':<br>
> CameraGazebo.Camera.0.Format<br>
> CameraGazebo.Camera.0.ImageHeight<br>
> CameraGazebo.Camera.0.ImageWidth<br>
> <a href="http://CameraGazebo.Camera.0.Name" rel="noreferrer" target="_blank">CameraGazebo.Camera.0.Name</a><br>
> Constructor CameraI<br>
> safeThread<br>
> [Info] loaded Ice.Config file:<br>
> /usr/local/share/jderobot/conf/cam_f1_right.cfg<br>
> CameraGazebo cam_f1_right Endpoints > default -h localhost -p 8994<br>
> -! 05/29/16 12:56:05.995 warning: found unknown properties for object<br>
> adapter `CameraGazebo':<br>
> CameraGazebo.Camera.0.Format<br>
> CameraGazebo.Camera.0.ImageHeight<br>
> CameraGazebo.Camera.0.ImageWidth<br>
> <a href="http://CameraGazebo.Camera.0.Name" rel="noreferrer" target="_blank">CameraGazebo.Camera.0.Name</a><br>
> Constructor CameraI<br>
> safeThread<br>
> [Wrn] [Publisher.cc:132] Queue limit reached for topic<br>
> /gazebo/default/pose/local/info, deleting message. This warning is printed<br>
> only once.<br>
> =========================================<br>
><br>
> On the other hand, when I launch follow_line, I get this output:<br>
> =========================================<br>
> Traceback (most recent call last):<br>
> File "main.py", line 6, in <module><br>
> from gui.GUI import MainWindow<br>
> File<br>
> "/home/julio/JdeRobot-TeachingRobotics-master/src/follow_line/gui/GUI.py",<br>
> line 1, in <module><br>
> from gui.widgets.teleopWidget import TeleopWidget<br>
> File<br>
> "/home/julio/JdeRobot-TeachingRobotics-master/src/follow_line/gui/widgets/teleopWidget.py",<br>
> line 19, in <module><br>
> from resources import resources_rc<br>
> ImportError: cannot import name resources_rc<br>
> =========================================<br>
><br>
> It seems to need something (resources_rc) that I don't have.<br>
><br>
> Does anyone know such a resource? Thanks,<br>
><br>
> Julio<br>
><br>
><br>
><br>
> 2016-05-26 7:18 GMT+02:00 JoseMaria Cañas Plaza <<a href="mailto:jmplaza@gsyc.es" target="_blank">jmplaza@gsyc.es</a>>:<br>
>><br>
>> uhm.. weird. Avoid the script for the moment, it is a shorcut.<br>
>><br>
>> 1.- Run:<br>
>><br>
>> source /usr/local/share/jderobot/gazebo/gazebo-setup.sh<br>
>><br>
>><br>
>> 2.- Then go to the directory where you have downloaded the git<br>
>> TeachingRobotics repository. Go to the<br>
>><br>
>> directory-with-your-copy-of-teachingRobotics/JdeRobot-TeachingRobotics/src/follow_line/gazebo<br>
>> and there run<br>
>><br>
>> gazebo --verbose simpleCircuit.world<br>
>><br>
>><br>
>> 3.- After that, go to<br>
>><br>
>> directory-with-your-copy-of-teachingRobotics/JdeRobot-TeachingRobotics/src/follow_line/<br>
>> and there run<br>
>><br>
>> python main.py --Ice.Config=followLineF1.cfg<br>
>><br>
>><br>
>> It works like a charm on my machine, with JdeRobot-5.3.2 from package<br>
>> and the current source code of TeachingRobotics from the github. Let<br>
>> us know and tell us the Gazebo console messages if not working<br>
>> properly.<br>
>><br>
>> Cheers,<br>
>><br>
>> JoseMaria<br>
>><br>
>> On Mon, May 23, 2016 at 8:50 PM, Julio Vega <<a href="mailto:julio.vega@urjc.es" target="_blank">julio.vega@urjc.es</a>> wrote:<br>
>> > Hi,<br>
>> ><br>
>> > I am trying to launch the "Follow_line" code from TeachingRobotics<br>
>> > GitHub<br>
>> > (exactly from here [1]). I see there is a "run_it.sh", so I run it, but<br>
>> > I<br>
>> > get some errors:<br>
>> ><br>
>> > ========================================<br>
>> > [Msg] Waiting for master.<br>
>> > [Msg] Connected to gazebo master @ <a href="http://127.0.0.1:11345" rel="noreferrer" target="_blank">http://127.0.0.1:11345</a><br>
>> > [Msg] Publicized address: 192.168.1.35<br>
>> > Load: 1134465760 cam_f1_left<br>
>> > Load: 817915592 cam_f1_right<br>
>> > LaserDump Constructor<br>
>> > constructor motors<br>
>> > -----------------constructor Pose3D<br>
>> > --Ice.Config=f1Motors.cfg<br>
>> > GetName() Pose3D: f1<br>
>> > [Info] loaded Ice.Config file:<br>
>> > /usr/local/share/jderobot/conf/f1Motors.cfg<br>
>> > [Info] loaded Ice.Config file:<br>
>> > /usr/local/share/jderobot/conf/f1Pose3D.cfg<br>
>> > Motors Endpoints > default -h localhost -p 9999<br>
>> > Pose3D Endpoints default -h localhost -p 8998<br>
>> > laser: f1::laser<br>
>> > strs[0]: f1<br>
>> > [Info] loaded Ice.Config file:<br>
>> > /usr/local/share/jderobot/conf/f1_laser.cfg<br>
>> > Laser Endpoints > default -h localhost -p 8996<br>
>> > [Err] [Material.cc:93] Unable to find texture[Color_006.jpg] in<br>
>> > path[/home/julio/.gazebo/models/pistaSimple/meshes]<br>
>> > [Info] loaded Ice.Config file:<br>
>> > /usr/local/share/jderobot/conf/cam_f1_left.cfg<br>
>> > CameraGazebo cam_f1_left Endpoints > default -h localhost -p 8995<br>
>> > -! 05/23/16 20:46:47.819 warning: found unknown properties for object<br>
>> > adapter `CameraGazebo':<br>
>> > CameraGazebo.Camera.0.Format<br>
>> > CameraGazebo.Camera.0.ImageHeight<br>
>> > CameraGazebo.Camera.0.ImageWidth<br>
>> > <a href="http://CameraGazebo.Camera.0.Name" rel="noreferrer" target="_blank">CameraGazebo.Camera.0.Name</a><br>
>> > Constructor CameraI<br>
>> > safeThread<br>
>> > [Info] loaded Ice.Config file:<br>
>> > /usr/local/share/jderobot/conf/cam_f1_right.cfg<br>
>> > CameraGazebo cam_f1_right Endpoints > default -h localhost -p 8994<br>
>> > -! 05/23/16 20:46:47.823 warning: found unknown properties for object<br>
>> > adapter `CameraGazebo':<br>
>> > CameraGazebo.Camera.0.Format<br>
>> > CameraGazebo.Camera.0.ImageHeight<br>
>> > CameraGazebo.Camera.0.ImageWidth<br>
>> > <a href="http://CameraGazebo.Camera.0.Name" rel="noreferrer" target="_blank">CameraGazebo.Camera.0.Name</a><br>
>> > Constructor CameraI<br>
>> > safeThread<br>
>> > Traceback (most recent call last):<br>
>> > File "main.py", line 6, in <module><br>
>> > from gui.GUI import MainWindow<br>
>> > File "JdeRobot-TeachingRobotics-master/src/follow_line/gui/GUI.py",<br>
>> > line<br>
>> > 1, in <module><br>
>> > from gui.widgets.teleopWidget import TeleopWidget<br>
>> > File<br>
>> ><br>
>> > "JdeRobot-TeachingRobotics-master/src/follow_line/gui/widgets/teleopWidget.py",<br>
>> > line 19, in <module><br>
>> > from resources import resources_rc<br>
>> > ImportError: cannot import name resources_rc<br>
>> > ========================================<br>
>> ><br>
>> > It seems it is going to be launched properly, but finally it crashes.<br>
>> ><br>
>> > Does anyone can help me? Thanks in advance,<br>
>> ><br>
>> > Julio<br>
>> ><br>
>> > [1]<br>
>> ><br>
>> > <a href="https://github.com/RoboticsURJC/JdeRobot-TeachingRobotics/tree/master/src/follow_line" rel="noreferrer" target="_blank">https://github.com/RoboticsURJC/JdeRobot-TeachingRobotics/tree/master/src/follow_line</a><br>
>> ><br>
>> > --<br>
>> > <a href="http://www.juliovega.es" rel="noreferrer" target="_blank">http://www.juliovega.es</a><br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> > _______________________________________________<br>
>> > Jde-developers mailing list<br>
>> > <a href="mailto:Jde-developers@gsyc.es" target="_blank">Jde-developers@gsyc.es</a><br>
>> > <a href="http://gsyc.escet.urjc.es/cgi-bin/mailman/listinfo/jde-developers" rel="noreferrer" target="_blank">http://gsyc.escet.urjc.es/cgi-bin/mailman/listinfo/jde-developers</a><br>
>> ><br>
>><br>
>><br>
>><br>
>> --<br>
>> Universidad Rey Juan Carlos<br>
>> <a href="http://gsyc.urjc.es/jmplaza" rel="noreferrer" target="_blank">http://gsyc.urjc.es/jmplaza</a><br>
><br>
><br>
><br>
><br>
> --<br>
> <a href="http://www.juliovega.es" rel="noreferrer" target="_blank">http://www.juliovega.es</a><br>
><br>
><br>
<br>
<br>
<br>
--<br>
Universidad Rey Juan Carlos<br>
<a href="http://gsyc.urjc.es/jmplaza" rel="noreferrer" target="_blank">http://gsyc.urjc.es/jmplaza</a><br>
</div></div></blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br><div data-smartmail="gmail_signature"><a href="http://www.juliovega.es" target="_blank">http://www.juliovega.es</a><br><br><br></div>
</font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><a href="http://www.juliovega.es" target="_blank">http://www.juliovega.es</a><br><br><br></div>
</div>