Hi Brice,<br><br>You still need to make your custom message package (rosmake lowlevel).  You generated the Arduino code but you still need to make the message package in order to build the python/cpp message code that the rest of ros uses.  <br>

<br>In the future, please use <a href="http://answers.ros.org">answers.ros.org</a> for these kinds of questions.<br><br>Regards,<br>Adam<br><br><div class="gmail_quote">On Thu, Aug 25, 2011 at 11:21 PM, brice rebsamen <span dir="ltr"><<a href="mailto:brice.rebsamen@gmail.com">brice.rebsamen@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi<br>
<br>
I am trying to set an arduino node. Here is the short version of the story.<br>
<br>
I defined a custom message ("lowlevel/Arduino") and generated the<br>
appropriate header using the script for that. The arduino code<br>
compiles alright. However, I am having a problem on the python_node<br>
side: it cannot load my package 'lowlevel':<br>
<br>
[ERROR] [WallTime: 1314328569.317936] Cannot import package : lowlevel<br>
[ERROR] [WallTime: 1314328569.318390] Failed to parse subscriber.<br>
<br>
However, if I run the following commands in ipython, it seems to work:<br>
<br>
In [1]: import roslib; roslib.load_manifest("rosserial_python")<br>
In [2]: import rospy<br>
In [3]: roslib.load_manifest('lowlevel')<br>
In [4]: m=__import__('lowlevel.msg')<br>
In [5]: m.msg.Arduino<br>
Out[5]: <class 'lowlevel.msg._Arduino.Arduino'><br>
<br>
What am I doing wrong?<br>
<br>
Brice<br>
_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
</blockquote></div><br>