From: Robotics P. u. h. l. <rob...@li...> - 2007-10-20 14:28:39
|
I get a Segmentation fault when running intro john@john-desktop:~/roboticsprimer-0.1/exercises/01_introduction/gumstix$ ./intro client.xml Loading config file[client.xml] Trying to connect to [192.168.1.102:6665] calling connect done ID Count[3] Load Proxy[POSITION][0] Name[roomba] Load Proxy[POWER][0] Name[roomba] Load Proxy[BUMPER][0] Name[roomba] Finished loading devices playerc error : got NACK from request playerc error : got NACK from request Segmentation fault (core dumped) over on the gumstix it says the following but does not crash # ./player roomba.cfg * Part of the Player/Stage/Gazebo Project [http://playerstage.sourceforge.net]. * Copyright (C) 2000 - 2006 Brian Gerkey, Richard Vaughan, Andrew Howard, * Nate Koenig, and contributors. Released under the GNU General Public License. * Player comes with ABSOLUTELY NO WARRANTY. This is free software, and you * are welcome to redistribute it under certain conditions; see COPYING * for details. Opening connection to Roomba on /dev/ttyS2...Done. Listening on ports: 6665 accepted client 0 on port 6665, fd 9 warning : Unhandled message for driver device=16777343:6665:4:0 type=3 subtype=2 len=1 warning : Unhandled message for driver device=16777343:6665:4:0 type=3 subtype=2 len=1 warning : other error on client 0 closing connection to client 0 on port 6665 My roomba.cfg is as follows:- driver ( name "roomba" provides ["position2d:0" "power:0" "bumper:0"] port "/dev/ttyS2" alwayson 1 ) It looks, to me, as if, at least sometimes, the communications works, and player is doing what it is supposed to do. Thus this is a problem with the intro code. Seg. fault seems rather severe! Questions 1) Why is intro seg. faulting? 2) Do you have any advice on debugging our robot control code on the development computer? For example, can one use gdb? and if so how? John Cummins __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Robotics P. u. h. l. <rob...@li...> - 2007-10-20 22:43:53
|
I still getting the following. root@john-desktop:~/roboticsprimer-0.1/exercises/01_introduction/gumstix# ./intro client.xml Loading config file[client.xml] Trying to connect to [192.168.1.102:6665] calling connect done ID Count[3] Load Proxy[POSITION][0] Name[roomba] Load Proxy[POWER][0] Name[roomba] Load Proxy[BUMPER][0] Name[roomba] playerc error : poll call failed with error [0:Success] playerc error : recv failed with error [Success] warning : failed to reconnect terminate called after throwing an instance of 'PlayerCc::PlayerError' Aborted (core dumped) root@john-desktop:~/roboticsprimer-0.1/exercises/01_introduction/gumstix# I have re-downloaded and re-compiled, player and gumstix-buildroot and messed around a bit with gdb. After loading the proxies in Client.cc it does a this->player->Read(); This is the call that fails Question 1) Does any one know the reasons Read would fail? 2) The message says "failed to reconnect" does that imply that the connection was established, broken, and not re-established? John Cummins __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Robotics P. u. h. l. <rob...@li...> - 2007-10-22 18:59:28
|
Hello, Do you have the same version of player installed on both the gumstix and your pc? -nate On 10/20/07, Robotics Primer users help list <rob...@li...> wrote: > I still getting the following. > > root@john-desktop:~/roboticsprimer-0.1/exercises/01_introduction/gumstix# > ./intro client.xml > Loading config file[client.xml] > Trying to connect to [192.168.1.102:6665] > calling connect > done > ID Count[3] > Load Proxy[POSITION][0] Name[roomba] > Load Proxy[POWER][0] Name[roomba] > Load Proxy[BUMPER][0] Name[roomba] > playerc error : poll call failed with error [0:Success] > playerc error : recv failed with error [Success] > warning : failed to reconnect > terminate called after throwing an instance of 'PlayerCc::PlayerError' > Aborted (core dumped) > root@john-desktop:~/roboticsprimer-0.1/exercises/01_introduction/gumstix# > > I have re-downloaded and re-compiled, player and gumstix-buildroot > and messed around a bit with gdb. > > After loading the proxies in Client.cc it does a > this->player->Read(); > This is the call that fails > > Question > 1) Does any one know the reasons Read would fail? > 2) The message says "failed to reconnect" does that imply that the > connection > was established, broken, and not re-established? > > > John Cummins > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Roboticsprimer-users mailing list > Rob...@li... > https://lists.sourceforge.net/lists/listinfo/roboticsprimer-users > > |