Dear Cássio,

El jueves, 10 de octubre de 2013 13:43:51 UTC+2, Cássio Volcan escribió:
>
> 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?  
>
 
rosrun is part of the rosbash suite whereas rostopic is part of the 
ros_comm. You can find the recipes 
here<https://github.com/bmwcarit/meta-ros/blob/master/recipes-ros/ros/rosbash_1.10.6.bb>and
 
here<https://github.com/bmwcarit/meta-ros/blob/master/recipes-ros/ros-comm/rostopic_1.9.49.bb>
 inside 
of the meta-ros layer source tree. Try bitbaking these recipes and 
deploying the package to your machine. You should have access to these 
utilities then.

Furthermore, you don't need rosrun to launch a simple publisher-subscriber 
example (e.g. 
chatter<https://github.com/bmwcarit/meta-ros/tree/master/recipes-ros/chatter>). 
You can launch it running the executable or the script if it's written in 
python.

>
> 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
>

Even if your FS is not Angstrom your OE installation should package the 
cross-compiled recipes in way that you could deploy them to your machine. 
I'm not so experienced out of Angstrom so maybe Lukas or Stefan can provide 
some comments regarding this fact.

>
> Thank you for answers.
>
> PS: With someone need any help to provide a BSP and kernel configurations 
> to use meta-ros on arm processors, please let me try to help.
>
> Regards,
>
> 2013/10/9 Víctor Mayoral <[email protected] <javascript:>>
>
>>
>> Cássio i've been coding recipes this summer so i'm glad to give you a 
>> hand.
>> Start taking a look at 
>> diving-meta-ros<https://github.com/vmayoral/diving-meta-ros> and 
>> come to me if you find any trouble while writting the recipes for 
>> openslam_gmapping.
>>
>> Regards,
>>
>>
>> El miércoles, 9 de octubre de 2013 16:59:34 UTC+2, Lukas Bulwahn escribió:
>>
>>>  On 10/09/2013 03:58 PM, Cássio Volcan wrote:
>>>  
>>> Dear Lukas, thank you veru much.  
>>>
>>>  After doing my BSP and solve some bugs, roscore is working on my board 
>>> :) 
>>>
>>>  if everyone has the same problem to connect localhost to run roscore I 
>>> suggest to increase the _TIMEOUT_MASTER_START from python2.7/site-packages/
>>> **roslaunch/launch.py, because I get some errors and lost a lot of time 
>>> to solve it.
>>>
>>>   Dear Cassio,
>>>
>>> Could you give more details what kind of problem occurred (what was the 
>>> error trace? what was the behavior? what was your setup?) and how did you 
>>> fix that concretely.
>>>
>>>
>>>  
>>>  I'm attempting to use the simple Publisher and Subscriber example from 
>>> ros wiki, but I have no rosrun, rosmake and rostopic too, for example.
>>>
>>>   
>>>  Another issue: have been you noticed if someone use meta-ros running 
>>> slam gmapping?
>>>
>>>   Nobody is using slam_gmapping yet, but I had an initial look at it 
>>> and I believe it should be quite simple to provide recipes for that. (there 
>>> were no obvious showstoppers.)
>>>
>>> You simply need a recipe for openslam_gmapping and then a recipe for 
>>> gmapping in the slam_gmapping repository and you are done. We already 
>>> provide a recipe for tf, nav_msgs and roscpp.
>>>
>>> Maybe, Victor Mayoral can help you with writing a bitbake recipe---he 
>>> has already some experience with that.
>>>
>>>
>>> Lukas
>>>  
>>>  
>>
>
>
> -- 
> Cássio Volcan Pio
> Computer Engineer
> Control and Automation Engineering major -- FURG
> Embedded Systems Developer -- GARTEN Engenharia
> www.garten.com.br
> NAUTEC - Automation and Intelligent Robotics Group -- FURG
> Federal University of Rio Grande -- FURG <http://www.furg.br>
> +55(53) 9101-1526
>
> 

Reply via email to