AutonomyLab / bebop_autonomy

ROS driver for Parrot Bebop Drones 1.0 & 2.0
http://wiki.ros.org/bebop_autonomy
BSD 3-Clause "New" or "Revised" License
152 stars 120 forks source link

Cannot Run Bebop_Driver ( Exit Code -11) #142

Closed TOTON95 closed 6 years ago

TOTON95 commented 6 years ago

I could run it without problems earlier, but when I got to continue the test, I got this sad result, I'm attaching my output. Does anyone knows how to solve it ? I am using a Bebop 1, Ubuntu 16.04 LTS, and ROS Kinetic.

totonzx@totonzx:~/bebop_ws$ roslaunch bebop_driver bebop_node.launch ... logging to /home/totonzx/.ros/log/5ff6f482-beda-11e7-ad5d-20689d850533/roslaunch-totonzx-18182.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.

xacro: Traditional processing is deprecated. Switch to --inorder processing! To check for compatibility of your document, use option --check-order. For more infos, see http://wiki.ros.org/xacro#Processing_Order started roslaunch server http://totonzx:41111/

SUMMARY

PARAMETERS

NODES /bebop/ bebop_driver (bebop_driver/bebop_driver_node) robot_state_publisher (robot_state_publisher/robot_state_publisher)

auto-starting new master process[master]: started with pid [18196] ROS_MASTER_URI=http://localhost:11311

setting /run_id to 5ff6f482-beda-11e7-ad5d-20689d850533 process[rosout-1]: started with pid [18209] started core service [/rosout] process[bebop/bebop_driver-2]: started with pid [18226] process[bebop/robot_state_publisher-3]: started with pid [18227] [ INFO] [1509523079.104606977]: Initializing nodelet with 4 worker threads. [ INFO] [1509523079.209727821]: [BebopSDK] 01:57:59:209 | Bebop:225 - Bebop Cnstr() [ INFO] [1509523079.209786941]: Nodelet Cstr [ INFO] [1509523079.229527584]: Connecting to Bebop ... [ INFO] [1509523079.238822254]: [CB] 01:57:59:238 | Ardrone3PilotingStateFlatTrimChanged:388 - [STATES] Enabling states/ardrone3/PilotingState/FlatTrimChanged [ INFO] [1509523079.243617567]: [CB] 01:57:59:243 | Ardrone3PilotingStateFlyingStateChanged:432 - [STATES] Enabling states/ardrone3/PilotingState/FlyingStateChanged [ INFO] [1509523079.248799111]: [CB] 01:57:59:248 | Ardrone3PilotingStateNavigateHomeStateChanged:534 - [STATES] Enabling states/ardrone3/PilotingState/NavigateHomeStateChanged [ INFO] [1509523079.251933856]: [CB] 01:57:59:251 | Ardrone3PilotingStatePositionChanged:592 - [STATES] Enabling states/ardrone3/PilotingState/PositionChanged [ INFO] [1509523079.255235457]: [CB] 01:57:59:255 | Ardrone3PilotingStateSpeedChanged:657 - [STATES] Enabling states/ardrone3/PilotingState/SpeedChanged [ INFO] [1509523079.257991711]: [CB] 01:57:59:257 | Ardrone3PilotingStateAttitudeChanged:722 - [STATES] Enabling states/ardrone3/PilotingState/AttitudeChanged [ INFO] [1509523079.262638454]: [CB] 01:57:59:262 | Ardrone3PilotingStateAltitudeChanged:838 - [STATES] Enabling states/ardrone3/PilotingState/AltitudeChanged [ INFO] [1509523079.279839823]: [CB] 01:57:59:279 | Ardrone3MediaStreamingStateVideoEnableChanged:1388 - [STATES] Enabling states/ardrone3/MediaStreamingState/VideoEnableChanged [ INFO] [1509523079.283569309]: [CB] 01:57:59:283 | Ardrone3CameraStateOrientation:1490 - [STATES] Enabling states/ardrone3/CameraState/Orientation [ INFO] [1509523079.294212442]: [CB] 01:57:59:294 | Ardrone3GPSStateNumberOfSatelliteChanged:1882 - [STATES] Enabling states/ardrone3/GPSState/NumberOfSatelliteChanged [ INFO] [1509523079.305941224]: [CB] 01:57:59:305 | CommonCommonStateBatteryStateChanged:148 - [STATES] Enabling states/common/CommonState/BatteryStateChanged [ INFO] [1509523079.319033361]: [CB] 01:57:59:318 | CommonCommonStateWifiSignalChanged:510 - [STATES] Enabling states/common/CommonState/WifiSignalChanged [ INFO] [1509523079.328689962]: [CB] 01:57:59:328 | CommonOverHeatStateOverHeatChanged:1023 - [STATES] Enabling states/common/OverHeatState/OverHeatChanged [ INFO] [1509523079.332624283]: [CB] 01:57:59:332 | CommonMavlinkStateMavlinkFilePlayingStateChanged:1118 - [STATES] Enabling states/common/MavlinkState/MavlinkFilePlayingStateChanged [ INFO] [1509523079.336220417]: [CB] 01:57:59:336 | CommonMavlinkStateMavlinkPlayErrorStateChanged:1183 - [STATES] Enabling states/common/MavlinkState/MavlinkPlayErrorStateChanged [ INFO] [1509523079.350745116]: [CB] 01:57:59:350 | CommonFlightPlanStateAvailabilityStateChanged:1568 - [STATES] Enabling states/common/FlightPlanState/AvailabilityStateChanged [ INFO] [1509523079.352828330]: [CB] 01:57:59:352 | CommonFlightPlanStateComponentStateListChanged:1619 - [STATES] Enabling states/common/FlightPlanState/ComponentStateListChanged [ INFO] [1509523079.370517112]: [ARCONTROLLER_Network] 01:57:59:370 | ARCONTROLLER_Network_GetAvailableSocketPort:128 - d2c_port port: 43210 [ INFO] [1509523079.370965483]: [ARCONTROLLER_Stream2] 01:57:59:370 | ARCONTROLLER_Stream2_Open_Socket:143 - udp local port stream: 55004 [ INFO] [1509523079.371069046]: [ARCONTROLLER_Stream2] 01:57:59:371 | ARCONTROLLER_Stream2_Open_Socket:143 - udp local port control: 55005 [ INFO] [1509523079.419875638]: [BebopSDK] 01:57:59:419 | CommandReceivedCallback:113 - Command Received Callback LWP id is: 18387 [ INFO] [1509523080.059378381]: [BebopSDK] 01:58:00:059 | Connect:321 - BebopSDK inited, lwp_id: 18226 [ WARN] [1509523080.059553515]: Resetting all settings ... [ INFO] [1509523080.059741884]: [BebopSDK] 01:58:00:059 | ResetAllSettings:417 - All settings of the drone have been reset to default values. [bebop/bebop_driver-2] process has died [pid 18226, exit code -11, cmd /home/totonzx/bebop_ws/devel/lib/bebop_driver/bebop_driver_node __name:=bebop_driver __log:=/home/totonzx/.ros/log/5ff6f482-beda-11e7-ad5d-20689d850533/bebop-bebop_driver-2.log]. log file: /home/totonzx/.ros/log/5ff6f482-beda-11e7-ad5d-20689d850533/bebop-bebop_driver-2*.log

===============================================================================

EDIT: Adding GDB output running just the driver node

=============================================================================== rosrun --prefix 'gdb -ex run --args' bebop_driver bebop_driver_node GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/. Find the GDB manual and other documentation resources online at: http://www.gnu.org/software/gdb/documentation/. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /home/totonzx/bebop_ws/devel/lib/bebop_driver/bebop_driver_node...(no debugging symbols found)...done. Starting program: /home/totonzx/bebop_ws/devel/lib/bebop_driver/bebop_driver_node [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7fffef52a700 (LWP 7662)] [New Thread 0x7fffeed29700 (LWP 7663)] [New Thread 0x7fffee528700 (LWP 7664)] [New Thread 0x7fffedd27700 (LWP 7669)] [New Thread 0x7fffed526700 (LWP 7671)] [New Thread 0x7fffecd25700 (LWP 7672)] [New Thread 0x7fffe7fff700 (LWP 7673)] [New Thread 0x7fffe77fe700 (LWP 7674)] [New Thread 0x7fffe6ffd700 (LWP 7675)] [ INFO] [1509578495.449152352]: Initializing nodelet with 4 worker threads. [New Thread 0x7fffe67fc700 (LWP 7679)] [ INFO] [1509578496.045769350]: [BebopSDK] 17:21:36:045 | Bebop:225 - Bebop Cnstr() [ INFO] [1509578496.045901685]: Nodelet Cstr [ INFO] [1509578496.055230039]: Connecting to Bebop ... [New Thread 0x7fffc7945700 (LWP 7768)] [ INFO] [1509578496.171987529]: [ARCONTROLLER_Network] 17:21:36:171 | ARCONTROLLER_Network_GetAvailableSocketPort:128 - d2c_port port: 43210 [ INFO] [1509578496.172462643]: [ARCONTROLLER_Stream2] 17:21:36:172 | ARCONTROLLER_Stream2_Open_Socket:143 - udp local port stream: 55004 [ INFO] [1509578496.172567138]: [ARCONTROLLER_Stream2] 17:21:36:172 | ARCONTROLLER_Stream2_Open_Socket:143 - udp local port control: 55005 [ERROR] [1509578501.176467088]: [ARDISCOVERY_Device] 17:21:41:176 | ARDISCOVERY_Device_NewARNetworkAL:243 - error: timeout error [ERROR] [1509578501.176689162]: [ARCONTROLLER_Network] 17:21:41:176 | ARCONTROLLER_Network_New:355 - error: Error during the getting of the ARNETWORKAL_Manager from the device [ INFO] [1509578501.177108726]: [ARCONTROLLER_Device] 17:21:41:177 | ARCONTROLLER_Device_StartRun:5123 - Start failed or canceled. [ERROR] [1509578501.177348281]: [ARCONTROLLER_Device] 17:21:41:177 | ARCONTROLLER_Device_StopNetwork:5822 - Error occured durring unregistering ARCommands to the feature ARCONTROLLER_DICTIONARY_KEY_GENER [ERROR] [1509578501.177499915]: [ARCONTROLLER_Device] 17:21:41:177 | ARCONTROLLER_Device_StopNetwork:5831 - Error occured durring unregistering ARCommands to the feature ARCONTROLLER_DICTIONARY_KEY_ARDRO [ERROR] [1509578501.177658160]: [ARCONTROLLER_Device] 17:21:41:177 | ARCONTROLLER_Device_StopNetwork:5840 - Error occured durring unregistering ARCommands to the feature ARCONTROLLER_DICTIONARY_KEY_COMMO [ERROR] [1509578501.177831394]: [ARCONTROLLER_Device] 17:21:41:177 | ARCONTROLLER_Device_StopRun:5166 - StopNetwork failed with error :Bad parameters [ERROR] [1509578501.178021370]: [ARCONTROLLER_Device] 17:21:41:177 | ARCONTROLLER_Device_StartRun:5131 - Start fail error :Error during the getting of the ARNETWORKAL_Manager from the device [Thread 0x7fffc7945700 (LWP 7768) exited] [ INFO] [1509578501.179101526]: [BebopSDK] 17:21:41:179 | Cleanup:326 - Bebop Cleanup() [FATAL] [1509578501.179780735]: Init failed: Waiting for device failed: No error [ INFO] [1509578501.180082726]: Bebop Nodelet Dstr: 0 [ INFO] [1509578501.180145729]: Killing Camera Thread ... [ INFO] [1509578501.180200970]: Killing Aux Thread ... [ INFO] [1509578501.182444926]: [Decoder] 17:21:41:182 | CleanupBuffers:181 - Buffer cleanup! [ INFO] [1509578501.182552435]: [Decoder] 17:21:41:182 | Reset:200 - Reset! [ INFO] [1509578501.182659093]: [Decoder] 17:21:41:182 | ~VideoDecoder:206 - Dstr! [FATAL] [1509578501.182894839]: bebop_driver nodelet failed to load. [Thread 0x7fffe77fe700 (LWP 7674) exited] [Thread 0x7fffe7fff700 (LWP 7673) exited] [Thread 0x7fffecd25700 (LWP 7672) exited] [Thread 0x7fffed526700 (LWP 7671) exited] [Thread 0x7fffe6ffd700 (LWP 7675) exited] [Thread 0x7fffe67fc700 (LWP 7679) exited] [Thread 0x7fffedd27700 (LWP 7669) exited] [Thread 0x7fffef52a700 (LWP 7662) exited] [Thread 0x7fffeed29700 (LWP 7663) exited] [Thread 0x7ffff7fa0780 (LWP 7657) exited] [Inferior 1 (process 7657) exited with code 01]

thomas-bamford commented 6 years ago

From what I can tell from the error log, it seems that the drone was not able to connect. The latest version of bebop autonomy has not been tested on the Bebop 1, so the issue may be with the upgrade. We just got access to a Bebop 1 in our lab, so we will be able to test this soon.

TOTON95 commented 6 years ago

@thomas-bamford Thanks for replying. Indeed, it couldn't connect with the Bebop, but even with the Computer connected to the Bebop AP and I made a ping to it successfully, it appeared the same code, I got a friend's computer which it had not been updated any ROS packages and I could run it without a problem, please tell me if you need more information or help, I will try to join you to fix it once I can finish my scholar duties.

TOTON95 commented 6 years ago

After updating the ROS and Ubuntu dependencies, the driver could run again as expected, I could not find any specific reason to malfunction. Closing issue...

Ceepert commented 4 years ago

After updating the ROS and Ubuntu dependencies, the driver could run again as expected, I could not find any specific reason to malfunction. Closing issue...

what commands do I have to use to do that?