Can you move this to conversation to http://answers.ros.org/questions/?
$ python
Python 2.7.1 (r271:86832, Jun 16 2011, 16:59:05)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import roslib
>>> roslib.load_manifest('move_base') # Which depends on move_base_msgs
>>> from move_base_msgs.msg import MoveBaseGoal
>>>
Classification: UNCLASSIFIED
Caveats: NONE
I'm having a really strange problem under electric. I'm trying to use the
move_base_msgs package in my package. I've added it as a dependency in my
package's manifest, and am able to import the top level module. That is,
'import move_base_msgs' works. However, if I try 'from move_base_msgs.msg
import *', none of the defined messages gets imported; in fact, python
raises an exception saying that "'module' object has no attribute 'msg'",
when I can confirm that move_base_msgs/src/move_base_msgs does exist (with
__init__.py as well). When I try:
import move_base_msgs
print(dir(move_base_msgs))
I don't get the 'msg' submodule list. However, when I do the following:
import actionlib_msgs
print(dir(actionlib_msgs))
I do get the 'msg' submodule for actionlib.
So, what's going on, and how do I fix it?
Thanks,
Cem Karan
Classification: UNCLASSIFIED
Caveats: NONE
_______________________________________________
ros-users mailing list
ros-users@code.ros.org
https://code.ros.org/mailman/listinfo/ros-users