Cannot run simulator

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

However, sphinx is not run.
I can not understand the Error.
Could you help me.

This is the log.

$ sphinx /opt/parrot-sphinx/usr/share/sphinx/drones/anafi4k.drone::stolen_interface=ra0:eth0:192.168.42.1/24
Parrot-Sphinx simulator version 1.8

connecting to firmwared version: 1.8
starting Telemetryd to capture true data...
I telemetryd: Creating daemon with rate 50 ms
I libtelemetry: clear logger filter
I telemetryd: Loading plugins from '/opt/parrot-sphinx/usr/bin/../lib/tlm-plugins/'
I telemetryd: Loading '/opt/parrot-sphinx/usr/bin/../lib/tlm-plugins//tlm-blackbox.so'
I tlmblackbox: setEnabled 1
I tlmblackbox: setCompressed 1
I tlmblackbox: setCompressionLevel 6
I tlmblackbox: setCompressionMethod zlib
I tlmblackbox: setLogDir '.'
I tlmblackbox: setLogName 'log.tlmb'
I tlmblackbox: setLogCount 4
I tlmblackbox: setFilter *
I libtelemetry: clear logger filter
I tlmblackbox: setFlushPeriod 10000 ms
I tlmblackbox: setMaxSize -1 bytes
I tlmblackbox: rotate logs: './sphinx-11345-log.tlmb.3' -> './sphinx-11345-log.tlmb.4'
I tlmblackbox: rotate logs: './sphinx-11345-log.tlmb.2' -> './sphinx-11345-log.tlmb.3'
I tlmblackbox: rotate logs: './sphinx-11345-log.tlmb.1' -> './sphinx-11345-log.tlmb.2'
I tlmblackbox: rotate logs: './sphinx-11345-log.tlmb' -> './sphinx-11345-log.tlmb.1'
I tlmblackbox: Creating file './sphinx-11345-log.tlmb'
I telemetryd: Loading '/opt/parrot-sphinx/usr/bin/../lib/tlm-plugins//tlm-web-gndctrl.so'
I telemetryd: Loading '/opt/parrot-sphinx/usr/bin/../lib/tlm-plugins//tlm-gndctrl.so'
I telemetryd: Entering loop
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
Gtk-Message: 13:49:42.082: Failed to load module "canberra-gtk-module"
[Msg] created parameter server on http:8383
[Msg] World params for 'default':
[Msg] 	spawn_points:
[Msg] 		- name: default
[Msg] 		  pose: 0 0 0.2 0 -0 0
[Msg] connected to firmwared
I shd: wind: created: generation=2 sample_count=4000 sample_size=24 sample_rate=1000 metadata_size=125
[Msg] Preparation of firmware         http://plf.parrot.com/sphinx/firmwares/anafi/pc/latest/images/anafi-pc.ext2.zip
I shd: wind: opened: sample_count=4000 sample_size=24 sample_rate=1000 metadata_size=125
[Err] [Machine.cc:1326] Preparation of firmware for machine anafi4k failed:           curl.hook/probe failed.. Check your path or URL to the firmware
[Msg] CleanupInstances
[Msg] CleanupFirmwares
I shd: wind: closed
I telemetryd: sighandler: signo=15(Terminated)
I telemetryd: Exiting loop

Hello,
It looks like sphinx is unable to download the firmware. Do you have an Internet connection on that machine? Can you provide us with more logs with --log-level=dbg? Is “ra” the name of your wifi interface?

Hello,
I have an internet connection use old wired LAN.
“ra” is the wifi interface, GW-450D2 made by PLANEX.

This is the logs with sphinx --log-level-dbg

$ sphinx --log-level-dbg
Parrot-Sphinx simulator version 1.8

connecting to firmwared version: 1.8
starting Telemetryd to capture true data...
I telemetryd: Creating daemon with rate 50 ms
I libtelemetry: clear logger filter
I telemetryd: Loading plugins from '/opt/parrot-sphinx/usr/bin/../lib/tlm-plugins/'
I telemetryd: Loading '/opt/parrot-sphinx/usr/bin/../lib/tlm-plugins//tlm-blackbox.so'
I tlmblackbox: setEnabled 1
I tlmblackbox: setCompressed 1
I tlmblackbox: setCompressionLevel 6
I tlmblackbox: setCompressionMethod zlib
I tlmblackbox: setLogDir '.'
I tlmblackbox: setLogName 'log.tlmb'
I tlmblackbox: setLogCount 4
I tlmblackbox: setFilter *
I libtelemetry: clear logger filter
I tlmblackbox: setFlushPeriod 10000 ms
I tlmblackbox: setMaxSize -1 bytes
I tlmblackbox: rotate logs: './sphinx-11345-log.tlmb.3' -> './sphinx-11345-log.tlmb.4'
I tlmblackbox: rotate logs: './sphinx-11345-log.tlmb.2' -> './sphinx-11345-log.tlmb.3'
I tlmblackbox: rotate logs: './sphinx-11345-log.tlmb.1' -> './sphinx-11345-log.tlmb.2'
I tlmblackbox: rotate logs: './sphinx-11345-log.tlmb' -> './sphinx-11345-log.tlmb.1'
I tlmblackbox: Creating file './sphinx-11345-log.tlmb'
I telemetryd: Loading '/opt/parrot-sphinx/usr/bin/../lib/tlm-plugins//tlm-web-gndctrl.so'
I telemetryd: Loading '/opt/parrot-sphinx/usr/bin/../lib/tlm-plugins//tlm-gndctrl.so'
I telemetryd: Entering loop
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
Gtk-Message: 10:34:41.401: Failed to load module "canberra-gtk-module"

I meant can you run exactly the above command line and send us the logs? With no stolen_interface to make sure that it works well without it first. Then, the same command with ::stolen_interface=ra0:eth0:192.168.42.1/24.
What is your Linux distribution?

sphinx --log-level=dbg /opt/parrot-sphinx/usr/share/sphinx/drones/anafi4k.drone::stolen_interface=

Sorry, I made a mistake.
Linux distribution is Ubuntu18.04.4 LTS.

This is the logs

$ sphinx --log-level=dbg /opt/parrot- sphinx/usr/share/sphinx/drones/anafi4k.drone::stolen_interface=ra0:eth0:192.168.42.1/24
Parrot-Sphinx simulator version 1.8

connecting to firmwared version: 1.8
starting Telemetryd to capture true data...
I telemetryd: Creating daemon with rate 50 ms
I libtelemetry: clear logger filter
I telemetryd: Loading plugins from '/opt/parrot-sphinx/usr/bin/../lib/tlm-plugins/'
I telemetryd: Loading '/opt/parrot-sphinx/usr/bin/../lib/tlm-plugins//tlm-blackbox.so'
I tlmblackbox: setEnabled 1
I tlmblackbox: setCompressed 1
I tlmblackbox: setCompressionLevel 6
I tlmblackbox: setCompressionMethod zlib
I tlmblackbox: setLogDir '.'
I tlmblackbox: setLogName 'log.tlmb'
I tlmblackbox: setLogCount 4
I tlmblackbox: setFilter *
I libtelemetry: clear logger filter
I tlmblackbox: setFlushPeriod 10000 ms
I tlmblackbox: setMaxSize -1 bytes
I tlmblackbox: rotate logs: './sphinx-11345-log.tlmb.3' -> './sphinx-11345-log.tlmb.4'
I tlmblackbox: rotate logs: './sphinx-11345-log.tlmb.2' -> './sphinx-11345-log.tlmb.3'
I tlmblackbox: rotate logs: './sphinx-11345-log.tlmb.1' -> './sphinx-11345-log.tlmb.2'
I tlmblackbox: rotate logs: './sphinx-11345-log.tlmb' -> './sphinx-11345-log.tlmb.1'
I tlmblackbox: Creating file './sphinx-11345-log.tlmb'
I telemetryd: Loading '/opt/parrot-sphinx/usr/bin/../lib/tlm-plugins//tlm-web-gndctrl.so'
I telemetryd: Loading '/opt/parrot-sphinx/usr/bin/../lib/tlm-plugins//tlm-gndctrl.so'
I telemetryd: Entering loop
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
Gtk-Message: 10:32:20.796: Failed to load module "canberra-gtk-module"
[Dbg] [Plugin.hh:177] Registering plugin fwman (libsphinx_fwman.so)
[Dbg] [FwManPlugin.cc:314] Loading plugin firmware manager...
[Msg] created parameter server on http:8383
[Dbg] [Iio.cc:72] Creating IfIio object 'iio_simulator.sock'
[Msg] World params for 'default':
[Msg] 	spawn_points:
[Msg] 		- name: default
[Msg] 		  pose: 0 0 0.2 0 -0 0
[Dbg] [Iio.cc:72] Creating IfIio object 'iio_simulator.sock'
[Dbg] [MachineManager.cc:622] anafi4k: Machine(name = "anafi4k", firmware = 
"http://plf.parrot.com/sphinx/firmwares/anafi/pc/latest/images/anafi-pc.ext2.zip")
property interface = eth1
property stolen_interface = ra0:eth0:192.168.42.1/24

[Dbg] [FwManPlugin.cc:496] Disabling physics
[Dbg] [Plugin.hh:177] Registering plugin wind (libsphinx_wind.so)
[Dbg] [SimpleWind.cc:136] Setting exprtk parameter direction_expr
[Dbg] [SimpleWind.cc:136] Setting exprtk parameter elevation_expr
[Dbg] [SimpleWind.cc:136] Setting exprtk parameter magnitude_expr
[Msg] connected to firmwared
[Dbg] [Firmwared.cc:249] OnPompConnected
I shd: wind: created: generation=2 sample_count=4000 sample_size=24 
sample_rate=1000 metadata_size=125
[Dbg] [Firmwared.cc:259] OnPropertyAdded
[Dbg] [MachineManager.cc:647] PrepareFirmwares
[Msg] Preparation of firmware 
http://plf.parrot.com/sphinx/firmwares/anafi/pc/latest/images/anafi-pc.ext2.zip
I shd: wind: opened: sample_count=4000 sample_size=24 sample_rate=1000         
metadata_size=125
[Err] [Machine.cc:1326] Preparation of firmware for machine anafi4k failed:             
curl.hook/probe failed.. Check your path or URL to the firmware
[Dbg] [FwManPlugin.cc:71] Remove and destroy all drones from the scene
[Msg] CleanupInstances
[Dbg] [FwManPlugin.cc:93] Stopping WebSocketServer
[Msg] CleanupFirmwares
I shd: wind: closed
escalating to SIGKILL on client

I don’t see why it fails. Can you download the file http://plf.parrot.com/sphinx/firmwares/anafi/pc/latest/images/anafi-pc.ext2.zip on that machine?

You can also clean up the firmware cache with fdc drop_all firmwares, make sure that all files are deleted in /usr/share/firmwared/firmwares/ and try again.

If that still does not work, you can download the zip file on your machine and set the firmware value to the path to the file you just downloaded:

sphinx --log-level=dbg /opt/parrot-sphinx/usr/share/sphinx/drones/anafi4k.drone::stolen_interface=::firmware=/path/to/anafi-pc.ext2.zip

I have downloaded the file “anafi-ps.ext2.zip” to my machine.
Do I need to copy this file somewhere? It is now in “Downloads”.

I run that code. However, I can not run with same error.

Can sphinx run without a real drone? I haven’t have real drone (ANAFI).

Hello Kain,

You do not need a real drone to run sphinx.

You can put the zip file anywhere. If it is in ~/Downloads, just launch sphinx like this:

sphinx --log-level=dbg /opt/parrot-sphinx/usr/share/sphinx/drones/anafi4k.drone::stolen_interface=::firmware=$HOME/Downloads/anafi-pc.ext2.zip

Do you have unzip installed on your machine? sphinx requires unzip to extract compressed files in anafi-pc.ext2.zip.

Does the following command succeed?

unzip $HOME/Downloads/anafi-pc.ext2.zip

Hello ocrave.

The command did not succeed.

$ unzip $HOME/Downloads/anafi-pc.ext2.zip
unzip:  cannot find or open /home/mlab/Downloads/anafi-pc.ext2.zip, /home/mlab/Downloads/anafi-pc.ext2.zip.zip or /home/mlab/Downloads/anafi-pc.ext2.zip.ZIP.

Can I solve this problem by installing “unzip” ?

$ sudo apt install unzip

unzip is already installed, you just did not write a valid path in your command line. Where is the zip file located? The path to the firmware should be valid.

Hello.

“anafi-pc.ext2.zip” is located “Downloads”.

When I enter the following code, I was can run the simulator.

$ sphinx --log-level=dbg /opt/parrot-sphinx/usr/share/sphinx/drones/anafi4k.drone::stolen_interface=::firmware=$HOME/ダウンロード/anafi-pc.ext2.zip

It seems that “Download” had to be written in Japanese.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.