<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi Breno,<br>
<br>
I just tried to find out what could be the problem, and honestly I
couldn't make that code work myself. The blender file you are using is
a bit outdated now, since we have made lots of changes to the whole
framework. Our yarp-blender bindings have changed a lot, and so, they
don't work anymore with this file.<br>
<br>
Can you try downloading the latest files from:<br>
<a class="moz-txt-link-freetext" href="https://code.launchpad.net/~blender-for-robotics/openrobots-simulator/ors">https://code.launchpad.net/~blender-for-robotics/openrobots-simulator/ors</a><br>
To install, the instructions are in:<br>
<a class="moz-txt-link-freetext" href="https://answers.launchpad.net/openrobots-simulator/+faq/844">https://answers.launchpad.net/openrobots-simulator/+faq/844</a><br>
<br>
Let us know if you have any problems installing or running this code.<br>
All the best.<br>
<br>
Gilberto<br>
<br>
<br>
On 01/14/2010 03:05 AM, Breno Carneiro Pinheiro wrote:
<blockquote
 cite="mid:6132061f1001131805n47b06b62i16ba20cc4bbe319b@mail.gmail.com"
 type="cite">Hi Nicolas, I tried what you said but I still get some
repeatedly import errors as the messages below:<br>
  <br>
ImportError: No module named middleware.yarp<br>
Python script error from controller "object_pick#CONTR#4":<br>
Traceback (most recent call last):<br>
&nbsp; File "object_pick", line 4, in &lt;module&gt;<br>
AttributeError: 'module' object has no attribute 'selectedObject'<br>
Python script error from controller "object_pick#CONTR#4":<br>
Traceback (most recent call last):<br>
&nbsp; File "object_pick", line 4, in &lt;module&gt;<br>
AttributeError: 'module' object has no attribute 'selectedObject'<br>
Python script error from controller "object_pick#CONTR#4":<br>
Traceback (most recent call last):<br>
&nbsp; File "object_pick", line 4, in &lt;module&gt;<br>
AttributeError: 'module' object has no attribute 'selectedObject'<br>
Python script error from controller "check_visibility#CONTR#5":<br>
Traceback (most recent call last):<br>
&nbsp; File "check_visibility", line 4, in &lt;module&gt;<br>
  <br>
  <br>
I was looking for middleware.yarp but I didn't find it yet. Another
issue is why I can't edit Yarp_python_simulator.blend file. I mean I
tried to change some pieces of code but It's not allowed to change
anything. Do you have any idea about it? My python is 2.5.<br>
  <br>
Thanks agaiin<br>
  <br>
Breno<br>
  <br>
  <br>
  <div class="gmail_quote">2009/12/21 Nicolas Lassabe <span dir="ltr">&lt;<a
 moz-do-not-send="true" href="mailto:Nicolas.Lassabe@onera.fr">Nicolas.Lassabe@onera.fr</a>&gt;</span><br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi
Breno,<br>
    <br>
Did you copy the yarp.py and _yarp.so ? Do you have the same version of
python to run blender and for yarp-python ? It should be python 2.5 or
2.6.<br>
    <br>
$ sudo cp yarp.py /usr/lib/python2.5/site-package/<br>
$ sudo cp _yarp.so /usr/lib/python2.5/site-package/_yarp.so<br>
    <br>
    <br>
Nicolas<br>
    <div>
    <div class="h5"><br>
    <br>
Breno Carneiro Pinheiro wrote:<br>
&gt; Hi folks I started learning a little bit about YARP and its<br>
&gt; integration with Blender.<br>
&gt;<br>
&gt; I decided to run some examples like the one posted here:<br>
&gt; <a moz-do-not-send="true"
 href="http://wiki.blender.org/index.php?title=Robotics:Middleware/YARP/Python_Simulator_Example&amp;useskin=monobook#Image_grabbing_and_output_with_YARP"
 target="_blank">http://wiki.blender.org/index.php?title=Robotics:Middleware/YARP/Python_Simulator_Example&amp;useskin=monobook#Image_grabbing_and_output_with_YARP</a><br>
&gt; &lt;<a moz-do-not-send="true"
 href="http://wiki.blender.org/index.php?title=Robotics:Middleware/YARP/Python_Simulator_Example&amp;useskin=monobook#Image_grabbing_and_output_with_YARP"
 target="_blank">http://wiki.blender.org/index.php?title=Robotics:Middleware/YARP/Python_Simulator_Example&amp;useskin=monobook#Image_grabbing_and_output_with_YARP</a>&gt;<br>
&gt; but a I got a lot of difficulties to runs it properly. I'm gonna<br>
&gt; explain what I did:<br>
&gt;<br>
&gt; 1 - Yarp 2.2.5 installation: passed ok! I compiled as suggested
here:<br>
&gt; <a moz-do-not-send="true"
 href="http://wiki.blender.org/index.php/Robotics:Middleware/YARP"
 target="_blank">http://wiki.blender.org/index.php/Robotics:Middleware/YARP</a>
and<br>
&gt; everything looks fine!<br>
&gt;<br>
&gt; 2 - Yarp check is ok!<br>
&gt;<br>
&gt; 3 - Yarp read and write is ok!<br>
&gt;<br>
&gt; 4 - I set the variable &nbsp;BLENDER_ROBOTICS_ROOT to<br>
&gt; /my-path/blender_robotics/scripts where are place the files:<br>
&gt;<br>
&gt;<br>
&gt; check_visibility &nbsp;finalization &nbsp;image_grabber_yarp &nbsp;initialization<br>
&gt; middleware &nbsp;object_pick &nbsp;object_selection
&nbsp;Yarp_python_simulator.blend<br>
&gt;<br>
&gt; and the middleware dir.<br>
&gt;<br>
&gt; 5 - Then I downloaded the &nbsp;Yarp_python_simulator.blend that's
place in<br>
&gt; another dir.<br>
&gt;<br>
&gt; 6 - I open this .blend file with blender 2.49.<br>
&gt;<br>
&gt; 7- Then I followed the instructions on the pege mentioned. The<br>
&gt; instructions are:<br>
&gt;<br>
&gt; To test that:<br>
&gt;<br>
&gt; &nbsp; &nbsp; * Start | yarp server|<br>
&gt; &nbsp; &nbsp; * Launch | yarp read /reader|<br>
&gt; &nbsp; &nbsp; * Launch the GameEngine (key P)<br>
&gt; &nbsp; &nbsp; * Connect them with | yarp connect /blender_simu/cog_map
/reader|<br>
&gt;<br>
&gt; everything seems to be ok until I press key P at blender
environment.<br>
&gt; When I do it a error message appear repeatedly:<br>
&gt;<br>
&gt; Python script error from controller "image_grabber#CONTR#6":<br>
&gt; Traceback (most recent call last):<br>
&gt; &nbsp; File "image_grabber_yarp", line 1, in &lt;module&gt;<br>
&gt; ImportError: No module named yarp<br>
&gt; Python script error from controller "image_grabber#CONTR#6":<br>
&gt; Traceback (most recent call last):<br>
&gt; &nbsp; File "image_grabber_yarp", line 1, in &lt;module&gt;<br>
&gt; ImportError: No module named yarp<br>
&gt; Python script error from controller "image_grabber#CONTR#6":<br>
&gt; Traceback (most recent call last):<br>
&gt; &nbsp; File "image_grabber_yarp", line 1, in &lt;module&gt;<br>
&gt; ImportError: No module named yarp<br>
&gt; Python script error from controller "check_visibility#CONTR#5":<br>
&gt; Traceback (most recent call last):<br>
&gt; &nbsp; File "check_visibility", line 4, in &lt;module&gt;<br>
&gt; ImportError: No module named middleware.yarp<br>
&gt;<br>
&gt; &nbsp;Then if I execute the | yarp connect /blender_simu/cog_map /reader<br>
&gt;<br>
&gt; |I got the message: Cannot find port named /blender_simu/cog_map<br>
&gt;<br>
&gt; Besides that errors I would like to know why I can't edit the
scripts<br>
&gt; at Yarp_python_simulator.blend<br>
&gt; file. I mean when I try to change something like scriptRoot and ask<br>
&gt; for save &nbsp;It asks me: CreateNewFile and then say that is unable to<br>
&gt; save the file.<br>
&gt;<br>
&gt; Could anybody give me some help on all that issues?<br>
&gt;<br>
&gt; Thanks a lot!!<br>
&gt; --<br>
&gt; Breno Carneiro Pinheiro<br>
    </div>
    </div>
&gt;
------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Robotics mailing list<br>
&gt; <a moz-do-not-send="true" href="mailto:Robotics@blender.org">Robotics@blender.org</a><br>
&gt; <a moz-do-not-send="true"
 href="http://lists.blender.org/mailman/listinfo/robotics"
 target="_blank">http://lists.blender.org/mailman/listinfo/robotics</a><br>
&gt;<br>
    <br>
_______________________________________________<br>
Robotics mailing list<br>
    <a moz-do-not-send="true" href="mailto:Robotics@blender.org">Robotics@blender.org</a><br>
    <a moz-do-not-send="true"
 href="http://lists.blender.org/mailman/listinfo/robotics"
 target="_blank">http://lists.blender.org/mailman/listinfo/robotics</a><br>
  </blockquote>
  </div>
  <br>
  <br clear="all">
  <br>
-- <br>
Breno Carneiro Pinheiro<br>
  <pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Robotics mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Robotics@blender.org">Robotics@blender.org</a>
<a class="moz-txt-link-freetext"
 href="http://lists.blender.org/mailman/listinfo/robotics">http://lists.blender.org/mailman/listinfo/robotics</a>
  </pre>
</blockquote>
<br>
</body>
</html>