Dear Cassio,
the problem you report looks very similar to Issue 62 [1], which I
reported a couple months ago.
This timeout on start up would also explain why the KeyboardInterrupt
nondeterministically occurs at different code locations and sometimes
occurs not at all.
I will try out your suggestion to see if it also resolves the issue that
I reported on the qemu virtual machine.
Thanks for reporting the problem and the solution to it.
To your second point:
The "core-image-ros-roscore" image only provides the packages to start
and run roscore.
However, if you have a look at the core-image-ros-roscore.bb file, you
can extend that image simply by adding more packages, e.g., rosrun,
rosbash and your own ROS packages, to IMAGE_INSTALL.
Then your image should have those packages installed as well. Please
report if some of them still have missing runtime dependencies. We have
not tested all of the ROS packages in isolation and might have missing
some dependencies.
Lukas
[1] https://github.com/bmwcarit/meta-ros/issues/62
On 10/10/2013 01:43 PM, Cássio Volcan wrote:
Dear Lukas and Víctor
Error ocurred when I tried to run roscore. The process could not
contact master, as can be seen below:
root@at91sam9x5ek:~# roscore
... logging to
/home/root/.ros/log/412f3d34-3103-11e3-b9d9-5162d3e8cd9f/roslaunch-at91sam9x5ek-856.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
2;roscore
started roslaunch server http://at91sam9x5ek:34199/
ros_comm version 1.9.49
SUMMARY
========
PARAMETERS
* /rosdistro
* /rosversion
NODES
auto-starting new master
process[master]: started with pid [873]
ERROR: could not contact master [http://at91sam9x5ek:11311/]
[master] killing on exit
Traceback (most recent call last):
File "/usr/bin/rosmaster", line 35, in <module>
rosmaster.rosmaster_main()
File "/usr/lib/python2.7/site-packages/rosmaster/main.py", line
73, in rosmaster_main
configure_logging()
File "/usr/lib/python2.7/site-packages/rosmaster/main.py", line
57, in configure_logging
_log_filename = rosgraph.roslogging.configure_logging('rosmaster',
logging.DEBUG, filename=filename)
File "/usr/lib/python2.7/site-packages/rosgraph/roslogging.py",
line 106, in configure_logging
logging.config.fileConfig(config_file, disable_existing_loggers=False)
File "/usr/lib/python2.7/logging/config.py", line 78, in fileConfig
handlers = _install_handlers(cp, formatters)
File "/usr/lib/python2.7/logging/config.py", line 156, in
_install_handlers
h = klass(*args)
File "/usr/lib/python2.7/site-packages/rosgraph/roslogging.py",
line 146, in __init__
from rospy.rostime import get_time, is_wallclock
File "/usr/lib/python2.7/site-packages/rospy/__init__.py", line
49, in <module>
from .client import spin, myargv, init_node, \
File "/usr/lib/python2.7/site-packages/rospy/client.py", line
51, in <module>
import roslib
File "/usr/lib/python2.7/site-packages/roslib/__init__.py", line
54, in <module>
import roslib.stacks
File "/usr/lib/python2.7/site-packages/roslib/stacks.py", line
46, in <module>
import roslib.packages
File "/usr/lib/python2.7/site-packages/roslib/packages.py", line
47, in <module>
from subprocess import Popen, PIPE
File "/usr/lib/python2.7/subprocess.py", line 432, in <module>
import pickle
File "/usr/lib/python2.7/pickle.py", line 165, in <module>
__all__.extend([x for x in dir() if re.match("[A-Z][A-Z0-9_]+$",x)])
File "/usr/lib/python2.7/re.py", line 137, in match
return _compile(pattern, flags).match(string)
File "/usr/lib/python2.7/re.py", line 228, in _compile
cachekey = (type(key[0]),) + key
KeyboardInterrupt
So I fixed the error increasing the _TIMEOUT_MASTER_START = 10.0
#seconds from python2.7/site-packages/roslaunch/launch.py to 15.0 seconds.
About the rosrun and rostopic, how can I run some executable like
Publisher and Subscriber example without it? Either am I doing
something wrong? I've done bitbake core-image-ros-roscore, but there
is no rosrun and rostopic, for example. Have you done recipes for that
on meta-ros?
I was taking a look on Víctor's tutorials and attempt do provide a
recipe from my issues, but I have no "opkg install *.ipkg" on my
board. I was reading how to bitbake some image to be able to use that,
but I do not have answers yet