[ros-users] rosserial and custom message: cannot load package error

Adam Stambler adasta at gmail.com
Fri Aug 26 04:03:30 UTC 2011


You are right.  I jumped the gun and didn't read the rest of your message.

If it is loading in ipython, then it should work.

Anyway, I am not sure what the problem is right now.  Could you ask this
question on answers.ros.org.  We can debug this there without polluting
people's inbox.

Regards,
Adam

On Thu, Aug 25, 2011 at 11:37 PM, brice rebsamen
<brice.rebsamen at gmail.com>wrote:

> Hi and thanks for the quick reply.
> I did rosmake lowlevel.
> I think a proof is that loading the package manually in ipython works.
>
> On Fri, Aug 26, 2011 at 11:25 AM, Adam Stambler <adasta at gmail.com> wrote:
> > Hi Brice,
> >
> > 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.
> >
> > In the future, please use answers.ros.org for these kinds of questions.
> >
> > Regards,
> > Adam
> >
> > On Thu, Aug 25, 2011 at 11:21 PM, brice rebsamen <
> brice.rebsamen at gmail.com>
> > wrote:
> >>
> >> Hi
> >>
> >> I am trying to set an arduino node. Here is the short version of the
> >> story.
> >>
> >> I defined a custom message ("lowlevel/Arduino") and generated the
> >> appropriate header using the script for that. The arduino code
> >> compiles alright. However, I am having a problem on the python_node
> >> side: it cannot load my package 'lowlevel':
> >>
> >> [ERROR] [WallTime: 1314328569.317936] Cannot import package : lowlevel
> >> [ERROR] [WallTime: 1314328569.318390] Failed to parse subscriber.
> >>
> >> However, if I run the following commands in ipython, it seems to work:
> >>
> >> In [1]: import roslib; roslib.load_manifest("rosserial_python")
> >> In [2]: import rospy
> >> In [3]: roslib.load_manifest('lowlevel')
> >> In [4]: m=__import__('lowlevel.msg')
> >> In [5]: m.msg.Arduino
> >> Out[5]: <class 'lowlevel.msg._Arduino.Arduino'>
> >>
> >> What am I doing wrong?
> >>
> >> Brice
> >> _______________________________________________
> >> ros-users mailing list
> >> ros-users at code.ros.org
> >> https://code.ros.org/mailman/listinfo/ros-users
> >
> >
> > _______________________________________________
> > ros-users mailing list
> > ros-users at code.ros.org
> > https://code.ros.org/mailman/listinfo/ros-users
> >
> >
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20110826/f6d14774/attachment-0002.html>


More information about the ros-users mailing list