Cannot start simulator


#1

I tried to running simulator following to https://developer.parrot.com/docs/sphinx/firststep.html.

However, The simulator is closed at once after I run sphinx /opt/parrot-sphinx/usr/share/sphinx/drones/bebop2.drone and simulator is running a moment.

this is the log.

$ sphinx /opt/parrot-sphinx/usr/share/sphinx/drones/bebop2.drone::stolen_interface=wlxbc5c4ce783a6
Sphinx simulator version 0.29.1

connecting to firmwared version: 0.29.1
Gazebo multi-robot simulator, version 7.0.1
Copyright (C) 2012-2015 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

[Msg] Waiting for master.
Gazebo multi-robot simulator, version 7.0.1
Copyright (C) 2012-2015 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

[Msg] Waiting for master.
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 127.0.0.1
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 127.0.0.1
_IceTransSocketUNIXConnect: Cannot connect to non-local host neko
_IceTransSocketUNIXConnect: Cannot connect to non-local host neko
Qt: Session management error: Could not open network socket
[Msg] created parameter server on http:8383
[Msg] connected to firmwared
[Msg] Preparation of firmware http://plf.parrot.com/sphinx/firmwares/ardrone3/milos_pc/latest/images/ardrone3-milos_pc.ext2.zip
[Msg] firmware /usr/share/firmwared/firmwares//ardrone3-milos_pc.ext2.zip.a3223a5b-4bd8-9583-54ad-cb89d0a34087.firmware supported hardwares: 
[Msg]   milosboard
[Msg] Selected params to build .sdf file for bebop2:
        param flir_pos = tilted
        param kalamos_clip_far = 35
        param kalamos_clip_near = 1.5
        param low_gpu = 0
        param with_flir = 0
        param with_front_cam = 1
        param with_hd_battery = 0
        param with_kalamos = false
[Wrn] [BaseCameraSensor.cc:412] vertical_camera: parameter 'num_buffers' is now deprecated.
[Wrn] [BaseCameraSensor.cc:412] horizontal_camera: parameter 'num_buffers' is now deprecated.
I shd: omniscient_bebop2: recreated: generation=6 sample_count=4000 sample_size=184 sample_rate=1000 metadata_size=1083
I shd: time_bebop2: recreated: generation=6 sample_count=4000 sample_size=24 sample_rate=1000 metadata_size=128
I shd: battery_bebop2: recreated: generation=6 sample_count=4000 sample_size=8 sample_rate=1000 metadata_size=48
I shd: gps_bebop2: recreated: generation=6 sample_count=4000 sample_size=48 sample_rate=1000 metadata_size=245
[Msg] Drone bebop2[9c624f2bd09aac94ecb4f44a1deaadc0b1742551] loaded
[Msg] WEB DASHBOARD IS ACCESSIBLE at http://localhost:9002
[Err] [Machine.cc:970] Failed to start bebop2 : net.hook/create failed.
[Msg] CleanupInstances
[Msg] Instance bebop2[9c624f2bd09aac94ecb4f44a1deaadc0b1742551] dropped
I shd: omniscient_bebop2: closed
I shd: time_bebop2: closed
I shd: battery_bebop2: closed
I shd: gps_bebop2: closed
I : [2019-01-02 15:58:19] [info] Error getting remote endpoint: system:9 (Bad file descriptor)
I : [2019-01-02 15:58:19] [info] asio async_shutdown error: system:9 (Bad file descriptor)
I : [2019-01-02 15:58:19] [info] handle_accept error: Operation canceled
I : [2019-01-02 15:58:19] [info] Stopping acceptance of new connections because the underlying transport is no longer listening.
[Msg] CleanupFirmwares
[Msg] Firmware efficacious_adelina[26b4c9adaa72df04d7821f9442cf04112232f549] unprepared (unmounted)

and my environment is below.

item information
OS/distribution Linux kernel-4.18.10/Ubuntu18.04
cpu Intel® Core™ i7-7700K CPU @ 4.20GHz × 8
gpu GeForce GTX 1070
wifi elecom WDC-443DU2HBK

#2

Hello,

The command line is incorrect. Instead of:

sphinx /opt/parrot-sphinx/usr/share/sphinx/drones/bebop2.drone::stolen_interface=wlxbc5c4ce783a6

you should write:

sphinx /opt/parrot-sphinx/usr/share/sphinx/drones/bebop2.drone::stolen_interface=wlxbc5c4ce783a6:eth0:192.168.42.1/24

I would also recommend doing this workaround if you prefer not having to specify the name of the wifi interface:
https://developer.parrot.com/docs/sphinx/troubleshooting.html#my-wifi-interface-got-its-name-changed-after-exiting-the-simulation