Error in Launch your first simulation

Hello everyone, I installed Sphinx on Ubuntu18 64bits and when I execute the instruction:

$ sphinx /opt/parrot-sphinx/usr/share/sphinx/drones/anafi4k.drone

I get the following error that is not resolved:

[Msg] Selected params to build .sdf file for anafi4k:
param low_gpu = 0
param product_pro = 0
param sdcard_serial = __undefined__
param simple_front_cam = 1
param with_external_cams = 0
param with_front_cam = 1
param with_gimbal = 1
param with_kalamos = 0
param with_tof = false
param xmlns = 
[Err] [DynamicLoader.cc:11] dlopen failed: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /tmp/fd_mount_points/instances/2b2e565bf7b9177e8883892ba8c73e5582ea1e86/union//usr/lib/libtelemetry.so)
[Err] [DynamicLoader.cc:12] EXCEPTION: can't load library named "/tmp/fd_mount_points/instances/2b2e565bf7b9177e8883892ba8c73e5582ea1e86/union//usr/lib/libtelemetry.so"

[Wrn] [Telemetry.cc:35] Cannot open libtelemetry from remote firmware

In the process I get to see the ANAFI drone in the Gazebo simulator, but after the error it closes abruptly.

How do I solve this error? I have searched the internet but I have not yet found the solution.

Thanks in advance, I’m new to Parrot.

Hello,

This error can be ignored. Do you have more logs after this?
Is your stolen_interface properly configured? By default, it is configured to search for a wifi interface named wlan0.
Have you tried without the front cam?

Yes, this is the log until closing:

[Msg] Selected params to build .sdf file for anafi4k:
param low_gpu = 0
param product_pro = 0
param sdcard_serial = __undefined__
param simple_front_cam = 1
param with_external_cams = 0
param with_front_cam = 1
param with_gimbal = 1
param with_kalamos = 0
param with_tof = false
param xmlns = 
[Wrn] [ColladaLoader.cc:1503] Polylist input semantic: 'COLOR' is currently not supported
[Wrn] [ColladaLoader.cc:1503] Polylist input semantic: 'COLOR' is currently not supported
[Wrn] [ColladaLoader.cc:1503] Polylist input semantic: 'COLOR' is currently not supported
[Wrn] [ColladaLoader.cc:1503] Polylist input semantic: 'COLOR' is currently not supported
[Wrn] [ColladaLoader.cc:1503] Polylist input semantic: 'COLOR' is currently not supported
[Wrn] [ColladaLoader.cc:1503] Polylist input semantic: 'COLOR' is currently not supported
[Err] [DynamicLoader.cc:11] dlopen failed: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /tmp/fd_mount_points/instances/ce6abb86d75315145e6a6da7a0b287f3d1a3aac7/union//usr/lib/libtelemetry.so)
[Err] [DynamicLoader.cc:12] EXCEPTION: can't load library named "/tmp/fd_mount_points/instances/ce6abb86d75315145e6a6da7a0b287f3d1a3aac7/union//usr/lib/libtelemetry.so"

[Wrn] [ColladaLoader.cc:1503] Polylist input semantic: 'COLOR' is currently not supported
[Wrn] [Telemetry.cc:35] Cannot open libtelemetry from remote firmware
[Wrn] [Telemetry.cc:36] Fallbacking to sphinx's libtelemetry...
[Wrn] [ColladaLoader.cc:1503] Polylist input semantic: 'COLOR' is currently not supported
I shd: omniscient_anafi4k: created: generation=2 sample_count=4000 sample_size=192 sample_rate=1000 metadata_size=1125
I shd: time_anafi4k: created: generation=2 sample_count=4000 sample_size=24 sample_rate=1000 metadata_size=128
I shd: battery_anafi4k: created: generation=2 sample_count=4000 sample_size=8 sample_rate=1000 metadata_size=48
I shd: gps_anafi4k: created: generation=2 sample_count=4000 sample_size=48 sample_rate=1000 metadata_size=245
[Wrn] [GimbalMotor.cc:274] A timeout occurred for gimbal_motor_0
[Wrn] [GimbalMotor.cc:274] A timeout occurred for gimbal_motor_1
I shd: gps_anafi4k: opened: sample_count=4000 sample_size=48 sample_rate=1000 metadata_size=245
I shd: battery_anafi4k: opened: sample_count=4000 sample_size=8 sample_rate=1000 metadata_size=48
I shd: time_anafi4k: opened: sample_count=4000 sample_size=24 sample_rate=1000 metadata_size=128
I shd: omniscient_anafi4k: opened: sample_count=4000 sample_size=192 sample_rate=1000 metadata_size=1125
[Wrn] [ColladaLoader.cc:1503] Polylist input semantic: 'COLOR' is currently not supported
[Wrn] [ColladaLoader.cc:1503] Polylist input semantic: 'COLOR' is currently not supported
[Wrn] [ColladaLoader.cc:1503] Polylist input semantic: 'COLOR' is currently not supported
[Wrn] [ColladaLoader.cc:1503] Polylist input semantic: 'COLOR' is currently not supported
[Wrn] [ColladaLoader.cc:1503] Polylist input semantic: 'COLOR' is currently not supported
[Wrn] [ColladaLoader.cc:1503] Polylist input semantic: 'COLOR' is currently not supported
[Wrn] [ColladaLoader.cc:1503] Polylist input semantic: 'COLOR' is currently not supported
[Wrn] [ColladaLoader.cc:1503] Polylist input semantic: 'COLOR' is currently not supported
[Msg] Drone anafi4k[ce6abb86d75315145e6a6da7a0b287f3d1a3aac7] loaded
[Msg] WEB DASHBOARD IS ACCESSIBLE at http://localhost:9002
[Err] [Machine.cc:959] Failed to start anafi4k : net.hook/assign failed.
[Err] [Machine.cc:966] Probable cause for this error: the requested stolen interface (wlan0:eth0:192.168.42.1/24) does not exist
[Msg] CleanupInstances
[Msg] Instance anafi4k[ce6abb86d75315145e6a6da7a0b287f3d1a3aac7] dropped
I shd: omniscient_anafi4k: closed
I shd: time_anafi4k: closed
I shd: battery_anafi4k: closed
I shd: gps_anafi4k: closed
I : [2019-11-06 20:02:02] [info] Error getting remote endpoint: system:9 (Bad file descriptor)
I : [2019-11-06 20:02:02] [info] asio async_shutdown error: system:9 (Bad file descriptor)
I : [2019-11-06 20:02:02] [info] handle_accept error: Operation canceled
I : [2019-11-06 20:02:02] [info] Stopping acceptance of new connections because the underlying transport is no longer listening.
[Msg] CleanupFirmwares
[Msg] Firmware risible_bellatrix[46aca0a022dfa84d3e31bed6a4a2fc7bb29d484b] unprepared (unmounted)
I shd: wind: closed
I telemetryd: sighandler: signo=15(Terminated)
I telemetryd: Exiting loop
I tlmblackbox: Closing file './sphinx-11345-log.tlmb'
I telemetryd: Unloading '/opt/parrot-sphinx/usr/bin/../lib/tlm-plugins//tlm-blackbox.so'
I telemetryd: Unloading '/opt/parrot-sphinx/usr/bin/../lib/tlm-plugins//tlm-gndctrl.so'
I : [2019-11-06 20:02:02] [info] asio handle_accept error: asio.system:125 (Operation aborted.)
I : [2019-11-06 20:02:02] [info] Error getting remote endpoint: asio.system:9 (Bad file descriptor)
I : [2019-11-06 20:02:02] [info] asio async_shutdown error: asio.system:9 (Bad file descriptor)
I : [2019-11-06 20:02:02] [error] handle_accept error: Underlying Transport Error
I : [2019-11-06 20:02:02] [info] Stopping acceptance of new connections because the underlying transport is no longer listening.
I telemetryd: Unloading '/opt/parrot-sphinx/usr/bin/../lib/tlm-plugins//tlm-web-gndctrl.so'
I shd: wind: closed
I shd: gps_anafi4k: closed
I shd: battery_anafi4k: closed
I shd: time_anafi4k: closed
I shd: omniscient_anafi4k: closed

Solved

You must know the name of the connection interface with the command:

$ iwconfig

and then simulate our drone with stolen_interface

$ sphinx /opt/parrot-sphinx/usr/share/sphinx/drones/anafi4k.drone::stolen_interface=<your_interface_name>:eth0:192.168.42.1/24

The problem with this is that if you are using a computer and you don’t have a Wi-Fi USB stick or something, you run out of internet!

You need Internet to download a firmware when you first launch sphinx with the default .drone file. Once you have downloaded a firmware, you can just set the firmware parameter to the path where the firmware is located in firmwared’s cache. For example:

sphinx /opt/parrot-sphinx/usr/share/sphinx/drones/anafi4k.drone::firmware=/usr/share/firmwared/firmwares/anafi-pc.ext2.zip.5814956a-d036-97fd-5166-afaa390974ac.firmware

This way, firmwared will not query the server and use the firmware you already have on your disk.