Paparazzi Center tools
These are the tools of the Add tool menu of the Paparazzi Center, one per file in conf/tools.
Most of them can also be started from a terminal with the options listed below.
The description and options of each tool come from its --help text, stored in the <doc> block
of its xml file. After changing the options of a tool, update that block with
tests/tools/test_tools.py --update (make test_tools checks that they match).
A <description> written by hand in the <doc> block is kept.
Paparazzi tools
| Tool | Description |
|---|---|
| Attitude Visualizer | Shows the attitude of an aircraft as a rotating cube (OpenGL). |
| Crazyradio/IVY bridge | Bridge between a Crazyflie connected to a Crazyradio and the Ivy bus, with PPRZLINK messages. |
| Data Link | Connects a hardware modem (usually USB/serial) or a UDP link with the Ivy bus: telemetry from the aircraft to the ground tools, and the uplink messages back. |
| Display Objects from Natnet | Receives marker sets from an OptiTrack system (NatNet) and shows a convex hull of each selected object in the GCS (SHAPE message). |
| Environment Simulator | World environment for the simulation of one or more aircraft: time scale, wind speed and direction, updraft and GPS on/off, set with sliders and sent on the Ivy bus (WORLD_ENV message) on every change and every 5 s. |
| Environment Simulator (Legacy) | World environment (time, wind, ...) for multi-aircraft simulation (OCaml version). |
| FC Rotorcraft | Formation Control for Rotorcrafts |
| Gazebo | Starts the Gazebo GUI with the Paparazzi model paths (gzclient for Gazebo Classic, otherwise the gz-sim GUI). |
| GPSd position display | Reads the position of a GPS receiver through gpsd and moves a waypoint of an aircraft to it (MOVE_WP). |
| Hardware in the Loop | Hardware in the loop simulation: the simulator (pprzsim-launch -t hitl) runs the flight model on the computer, the autopilot runs on the real board connected to it. |
| HydrogenStatus | Plots the hydrogen tank pressure from the PAYLOAD messages of the fuel cell. |
| IridiumDialer | Iridium Link Controller: call the air modem and bridge the call data to the Paparazzi UDP link. |
| Ivy2Nmea | Sends the position of an aircraft from the Ivy bus as NMEA GPRMC and GPGGA sentences on a serial port. |
| Ivy2Udp | Forwards telemetry messages from the Ivy bus to a UDP connection. |
| Joystick | Forwards the events of a USB input device (joystick, gamepad) to the Ivy bus, as described in an xml file of actions. |
| Link Combiner | Link_Combiner listens to the ivy messages received from multiple Link agents (set each of their -id options to a unique number), and sends a combined stream of messages to the other agents. |
| Log File Player | Replays a recorded log on the Ivy bus, or as binary messages on a serial port. |
| Log Plotter | Plots the messages of recorded log files. |
| Matlab/PPRZ/Natnet bridge | Forwards rigid body positions and orientations from NatNet to Matlab/Simulink over UDP, and forwards the commands received from Simulink over Ivy. |
| Messages | Shows the messages on the Ivy bus with their fields and values. |
| Messages (Legacy) | Shows the last value of every message on the Ivy bus (OCaml version). |
| Messages (Python) | Show the last value of every message on the Ivy bus |
| Module Creator | Graphical helper to create a new module: its xml file and C source and header. |
| Moving Base Sim | Moving base simulator |
| NatNet3 | Forwards the rigid bodies of an OptiTrack motion capture system (NatNet 3) to the aircraft over Ivy, as ENU position and attitude. |
| NederdroneStatus | Nederdrone fuel cell, battery and ESC status |
| NTRIP2ivy | Forwards RTCM3 corrections from an NTRIP caster or from a mixed UBX/RTCM serial input to the aircraft over Ivy. |
| OpenSky-Network Intruders | Gets the air traffic around the aircraft from the OpenSky Network and sends INTRUDER messages to the Ivy bus for display in the GCS. |
| Optitrack Distance Counter | Distance counter: distance flown (INS messages) and elapsed time (ROTORCRAFT_STATUS) shown from the Ivy bus. |
| PprzLink Proxy | Lets several simulated aircraft talk to each other and to the GCS with PPRZLINK v2 over UDP: maps the ports of each agent to its aircraft id. |
| Real-time Plotter | Plots message fields from the Ivy bus in real time. |
| Real-time Plotter (Python) | Plots message fields from the Ivy bus in real time (Python version). |
| RotWing3D | 3D view (Open3D) of a rotating wing aircraft from its attitude, controller and actuator telemetry. |
| RotWingStatus | Rotwing Status Monitor |
| rtcm2ivy | Reads RTCM3 messages from a GPS base station receiver (e.g. |
| RtpViewer | Shows the RTP/JPEG video stream of an aircraft (module video_rtp_stream) in a window. |
| Server | Receives the telemetry of all aircraft from the links, writes the log files and sends the state of each aircraft to the GCS and the other tools. |
| Simulator | Starts the simulation of an aircraft: nps, or sim (basic fixed-wing simulator). |
| UnifiedMoCap | Routes the data of a motion capture system (OptiTrack) to the aircraft over Ivy, or to the console. |
| Video to GCS | Show the RTP/JPEG video of an aircraft (module video_rtp_stream) in the PprzGCS video panel, or in a GStreamer window of its own. |
| Weather Station | Reads a Davis VantagePro weather station on a serial port and sends ambient pressure, temperature, wind speed and direction to the Ivy bus. |
| Wind | Wind Tool: estimate the wind from ground speed and airspeed |
Attitude Visualizer
Command: sw/tools/attitude_viz.py (conf/tools/attitude_visualizer.xml)
Shows the attitude of an aircraft as a rotating cube (OpenGL).
usage: attitude_viz.py [-t title] [-r rotate_theta] [-h]| Option | Description |
|---|---|
-t, --title | set window title |
-r, --rotate_theta | rotate the quaternion by n degrees over the pitch axis (default: 0) |
Crazyradio/IVY bridge
Command: sw/ground_segment/python/bitcraze/crazyradio2ivy.py (conf/tools/crazyradio2ivy.xml)
Bridge between a Crazyflie connected to a Crazyradio and the Ivy bus, with PPRZLINK messages.
Needs cflib (pip3 install cflib) and the Crazyflie firmware 2019.09; firmwares from 2024 on do not work.
usage: crazyradio2ivy.py [-h] [-a ADDRESS] [-c CHANEL] [-u URI] [-b BUS] [-s] [-v]| Option | Description |
|---|---|
-a ADDRESS, --address ADDRESS | URI address of Crazyflie |
-c CHANEL, --chanel CHANEL | URI chanel of Crazyflie (full URI will be 'radio://0/80/2M' |
-u URI, --uri URI | URI of Crazyflie (chanel option will not be effective) |
-b BUS, --bus BUS | Ivy bus [default to system IVY bus] |
-s, --scan | Scan available Crazyflie at startup |
-v, --verbose | display debug messages |
Data Link
Command: sw/ground_segment/tmtc/link (conf/tools/data_link.xml)
Started by the Center with: -d /dev/ttyUSB0
Connects a hardware modem (usually USB/serial) or a UDP link with the Ivy bus: telemetry from the aircraft to the ground tools, and the uplink messages back.
| Option | Description |
|---|---|
-b <ivy bus> | Default is 127.255.255.255:2010 |
-d <port> | Default is /dev/ttyUSB0 |
-fg | Enable trafic statistics on standard output |
-noac_info | Disables AC traffic info (uplink). |
-nouplink | Disables the uplink (from the ground to the aircraft). |
-s <baudrate> | Default is 9600 |
-ch <channel> | Default does not change configuration. |
-hfc | Enable UART hardware flow control (CTS/RTS) |
-local_timestamp | Add local timestamp to messages sent over ivy |
-transport <transport> | Available protocols are modem,pprz,pprz2 and xbee. Default is pprz |
-udp | Listen a UDP connection on <udp_port> |
-udp_port <UDP port> | Default is 4242 |
-udp_uplink_port <UDP uplink port> | Default is 4243 |
-udp_broadcast | Broadcast on <udp_broadcast_addr>, e.g. for multiple simulated aircrafts |
-udp_broadcast_addr <addr> | Broadcast address. Default is 127.255.255.255 |
-uplink | Deprecated (now default) |
-xbee_addr <my_addr> | (256) |
-xbee_retries <nb retries> | (10) |
-xbee_868 | Enables the 868 protocol |
-redlink | Sets whether the link is a redundant link. Set this flag and the id flag to use multiple links |
-id <id> | Sets the link id. If multiple links are used, each must have a unique id. Default is -1 |
-status_period <period> | Sets the period (in ms) of the LINK_REPORT status message. Default is 1000 |
-ping_period <period> | Sets the period (in ms) of the PING message sent to aircrafs. Default is 5000 |
-ac_timeout <time> | Sets the time (in ms) after which an aircraft is regarded as dead/off if no messages are received. Default is 5000ms, set to zero to disable. |
Display Objects from Natnet
Command: sw/ground_segment/python/natnet3.x/display_objects.py (conf/tools/display_objects.xml)
Receives marker sets from an OptiTrack system (NatNet) and shows a convex hull of each selected object in the GCS (SHAPE message).
usage: display_objects.py [-h] -n NAME -r REF [-c COLOR] [-sn] [-t TIMEOUT] [-th THRESHOLD] [-b IVY_BUS] [-s SERVER] [-m MULTICAST] [-dp DATA_PORT] [-cp COMMAND_PORT] [-v] [-vv] [-f FREQ] [-rp REFRESH_PERIOD] [-up {y_up,z_up}] [-o]| Option | Description |
|---|---|
-n NAME, --name NAME | Regular expression of the names of the object to display |
-r REF, --ref REF | Reference position in lat,long format in degrees |
-c COLOR, --color COLOR | Display color |
-sn, --show_name | Display the name of the object |
-t TIMEOUT, --timeout TIMEOUT | Timeout for removing object from scene |
-th THRESHOLD, --threshold THRESHOLD | Threshold distance to consider a moving object in meter |
-b IVY_BUS, --ivy_bus IVY_BUS | Ivy bus address and port |
-s SERVER, --server SERVER | NatNet server IP address |
-m MULTICAST, --multicast_addr MULTICAST | NatNet server multicast address |
-dp DATA_PORT, --data_port DATA_PORT | NatNet server data socket UDP port |
-cp COMMAND_PORT, --command_port COMMAND_PORT | NatNet server command socket UDP port |
-v, --verbose | display debug messages |
-vv, --very_verbose | display debug messages and optitrack debug messages |
-f FREQ, --freq FREQ | transmit frequency |
-rp REFRESH_PERIOD, --refresh_period REFRESH_PERIOD | refresh period at which message is sent event if the object is not moving |
-up {y_up,z_up}, --up_axis {y_up,z_up} | Optitrack Up axis: y_up or z_up. |
-o, --old_natnet | Change the NatNet version to 2.9 |
Environment Simulator
Command: sw/simulator/gaia.py (conf/tools/environment_simulator.xml)
World environment for the simulation of one or more aircraft: time scale, wind speed and direction, updraft and GPS on/off, set with sliders and sent on the Ivy bus (WORLD_ENV message) on every change and every 5 s.
usage: gaia.py [-h]Environment Simulator (Legacy)
Command: sw/simulator/gaia (conf/tools/environment_simulator__legacy_.xml)
World environment (time, wind, ...) for multi-aircraft simulation (OCaml version).
| Option | Description |
|---|---|
-b Bus | Default is 127.255.255.255:2010 |
-t | Set time scale (default: 1.0) |
-w | Set wind speed (0-30m/s) |
-d | Set wind direction 0-359 deg |
-u | Set wind updraft (-10 to 10m/s) |
-g | Turn off GPS |
FC Rotorcraft
Command: sw/ground_segment/python/multi/fc_rotor/fc_rotor.py (conf/tools/fc_rotor.xml)
Formation Control for Rotorcrafts
usage: fc_rotor.py [-h] [-f FREQ] [-gr] [-igf] [-v] config_file| Option | Description |
|---|---|
-f FREQ, --freq FREQ | control frequency |
-gr, --use_ground_ref | use GROUND_REF messages instead of INS messages |
-igf, --ignore_geo_fence | ignore the geo fence limits |
-v, --verbose | display debug messages |
Gazebo
Command: sw/tools/gzclient_launcher.sh (conf/tools/gazebo.xml)
Starts the Gazebo GUI with the Paparazzi model paths (gzclient for Gazebo Classic, otherwise the gz-sim GUI). It connects to the Gazebo server running in the NPS simulator.
usage: gzclient_launcher.shGPSd position display
Command: sw/ground_segment/tmtc/gpsd2ivy (conf/tools/gpsd_position_display.xml)
Reads the position of a GPS receiver through gpsd and moves a waypoint of an aircraft to it (MOVE_WP).
Usage: gpsd2ivy [options]| Option | Description |
|---|---|
-v --verbose | Print verbose information |
--server <gpsd server> | e.g. localhost |
--port <gpsd port> | e.g. 2947 |
--ivy_bus <ivy bus> | e.g. 127.255.255.255 |
--ac <ac_id> | e.g. 17 |
--wp <wp_id> | e.g. 2 |
Hardware in the Loop
Command: sw/simulator/pprzsim-launch (conf/tools/hardware_in_the_loop.xml)
Started by the Center with: -t hitl -a @AIRCRAFT
Hardware in the loop simulation: the simulator (pprzsim-launch -t hitl) runs the flight model on the computer, the autopilot runs on the real board connected to it. Same options as the Simulator.
Usage: pprzsim-launch -a <ac_name> -t <sim_type> [sim arguments]| Option | Description |
|---|---|
-a NAME, --aircraft=NAME | Aircraft name to use |
-t SIMTYPE, --type=SIMTYPE | Simulator type to start: sim or nps |
-b BUS, --ivy_bus=BUS | Ivy Bus broadcast address (127.255.255.255) |
-f HOST, --fg_host=HOST | Host for FlightGear visualization (e.g. 127.0.0.1) |
-v, | --verbose |
--norc | Hide the simulated RC |
-p PORT, --fg_port=PORT | Port on FlightGear host to connect to (Default: 5501) |
-P PORT_IN, --fg_port_in=PORT_IN | Port to receive from FlightGear host (Default: 5502) |
--fg_time_offset=SEC | FlightGear time offset in seconds (e.g. 21600 for 6h) |
-j IDX, --js_dev=IDX | Use joystick with specified index (e.g. 0) |
--spektrum_dev=DEV | Spektrum device to use (e.g. /dev/ttyUSB0) |
--rc_script=NO | Number of RC script to use |
--time_factor=factor | Time factor (default 1.0) |
--fg_fdm | Use FlightGear native-fdm protocol instead of native- gui |
--nodisplay | Don't send NPS Ivy messages |
HydrogenStatus
Command: sw/ground_segment/python/fuelcell/fuel_tank_plotter.py (conf/tools/fuelcell.xml)
Plots the hydrogen tank pressure from the PAYLOAD messages of the fuel cell.
usage: fuel_tank_plotter.py [-h]IridiumDialer
Command: sw/tools/iridium/iridium_link.py (conf/tools/iridiumdialer.xml)
Iridium Link Controller: call the air modem and bridge the call data to the Paparazzi UDP link.
usage: iridium_link.py [-h] [-d DEVICE] [-b BAUD] [-n NUMBER] [--pin1 PIN1] [--pin2 PIN2] [--udp_in UDP_IN] [--udp_out UDP_OUT]| Option | Description |
|---|---|
-d DEVICE, --device DEVICE | serial device of the ground modem (default /dev/ttyUSB0) |
-b BAUD, --baud BAUD | baud rate (default 19200) |
-n NUMBER, --number NUMBER | phone number of the air modem (default 00881234567890) |
--pin1 PIN1 | SIM PIN1 code (default 1111) |
--pin2 PIN2 | SIM PIN2 code (default 2222) |
--udp_in UDP_IN | UDP port receiving data for the aircraft (default 4243) |
--udp_out UDP_OUT | UDP port the aircraft data is broadcast to (default 4242) |
Ivy2Nmea
Command: sw/ground_segment/tmtc/ivy2nmea (conf/tools/ivy2nmea.xml)
Started by the Center with: --port /dev/ttyUSB1 --id 1
Sends the position of an aircraft from the Ivy bus as NMEA GPRMC and GPGGA sentences on a serial port.
Usage: ivy2nmea [options]| Option | Description |
|---|---|
-v --verbose | Print verbose information |
--id <ac_id> | e.g. 1 |
--port <gps out port> | e.g. /dev/ttyS0 |
--ivy_bus <ivy bus> | e.g. 127.255.255.255 |
Ivy2Udp
Command: sw/ground_segment/tmtc/ivy2udp (conf/tools/ivy2udp.xml)
Started by the Center with: -h 192.168.0.2
Forwards telemetry messages from the Ivy bus to a UDP connection.
| Option | Description |
|---|---|
-b <ivy bus> | Default is 127.255.255.255:2010 |
-h <remote host> | Default is 85.214.48.162 |
-id <aircraft id> | Default is 7 |
-p <remote port> | Default is 4242 |
-dp <listening port> | Default is 4243 |
-payload_only | Only forward the bytes of PAYLOAD messages; UDP packets received are sent as PAYLOAD_COMMAND |
Joystick
Command: sw/ground_segment/joystick/input2ivy (conf/tools/joystick.xml)
Started by the Center with: -ac @AIRCRAFT xbox_gamepad.xml
Forwards the events of a USB input device (joystick, gamepad) to the Ivy bus, as described in an xml file of actions.
| Option | Description |
|---|---|
-b <ivy bus> | Default is 127.255.255.255:2010 |
-ac <A/C name> | |
-d <device index> | |
-v | Verbose mode (useful to identify the channels of an input device) |
-id Joystick ID, from 0-255. | Each joystick requires a unique ID in a multiple joystick configuration. |
-c Check all axis moved for correct initilization before starting normal behavior | - |
Link Combiner
Command: sw/ground_segment/python/redundant_link/link_combiner.py (conf/tools/link_combiner.xml)
Link_Combiner listens to the ivy messages received from multiple Link agents (set each of their -id options to a unique number), and sends a combined stream of messages to the other agents.
usage: link_combiner.py [-h] [-b BUFFER_SIZE]| Option | Description |
|---|---|
-b BUFFER_SIZE, -buffer_size BUFFER_SIZE, --buffer_size BUFFER_SIZE | The number of elements messages to be stored in the circular buffer for each link |
Log File Player
Command: sw/logalizer/play (conf/tools/log_file_player.xml)
Replays a recorded log on the Ivy bus, or as binary messages on a serial port.
| Option | Description |
|---|---|
-b <ivy bus> | Default is 127.255.255.255:2010 |
-d <port> | Default is /dev/ttyUSB0 |
-o | Output binary messages on serial port |
-s <baudrate> | Default is 9600 |
-shfc | Enable UART hardware flow control (CTS/RTS) |
Log Plotter
Command: sw/logalizer/logplotter (conf/tools/log_plotter.xml)
Plots the messages of recorded log files.
Usage: logplotter <log files>| Option | Description |
|---|---|
-export_csv | Export in CSV in batch mode according to saved preferences (conf/%gconf.xml) |
-v | Verbose |
Matlab/PPRZ/Natnet bridge
Command: sw/ground_segment/python/matlab2pprz/matlab2pprz.py (conf/tools/matlab2pprz.xml)
Forwards rigid body positions and orientations from NatNet to Matlab/Simulink over UDP, and forwards the commands received from Simulink over Ivy.
usage: matlab2pprz.py [-h] [-ac rigid_id ac_id udp_out] [-b IVY_BUS] [-ns NATNET_SERVER] [-m MULTICAST] [-dp DATA_PORT] [-cp COMMAND_PORT] [-ss SIMULINK_SERVER] [-sp SIMULINK_IN_PORT] [-v]| Option | Description |
|---|---|
-ac rigid_id ac_id udp_out | tuple of rigid body, A/C id and UDP output port to Simulink (multiple possible) (default: None) |
-b IVY_BUS, --ivy_bus IVY_BUS | Ivy bus address and port (default: None) |
-ns NATNET_SERVER, --natnet_server NATNET_SERVER | NatNet server IP address (default: 127.0.0.1) |
-m MULTICAST, --multicast_addr MULTICAST | NatNet server multicast address (default: 239.255.42.99) |
-dp DATA_PORT, --data_port DATA_PORT | NatNet server data socket UDP port (default: 1511) |
-cp COMMAND_PORT, --command_port COMMAND_PORT | NatNet server command socket UDP port (default: 1510) |
-ss SIMULINK_SERVER, --simulink_server SIMULINK_SERVER | Simulink server IP address (default: 127.0.0.1) |
-sp SIMULINK_IN_PORT, --simulink_in_port SIMULINK_IN_PORT | Simulink input port (default: 9090) |
-v, --verbose | display debug messages (default: False) |
Messages
Command: sw/ground_segment/messages-gui/messages.py (conf/tools/messages.xml)
Shows the messages on the Ivy bus with their fields and values.
usage: messages.py [-h]Messages (Legacy)
Command: sw/ground_segment/tmtc/messages (conf/tools/messages_legacy.xml)
Shows the last value of every message on the Ivy bus (OCaml version).
| Option | Description |
|---|---|
-b <ivy bus> | Default is 127.255.255.255:2010 |
-c | class name |
-timestamp | Bind to timestampped messages |
-force | Force waiting on all messages, not only ALIVE for telemetry class (increase network load) |
-g <geometry> | Set the window geometry ( '500x500+100+100' ) |
Messages (Python)
Command: sw/ground_segment/python/messages_app/messagesapp.py (conf/tools/messages__python_.xml)
Show the last value of every message on the Ivy bus
usage: messagesapp.py [-h] [-b IVY_BUS] [-c CLASSES] [-force] [-timestamp] [-g GEOMETRY]| Option | Description |
|---|---|
-b IVY_BUS, --ivy_bus IVY_BUS | Ivy bus address and port [default to system IVY bus] |
-c CLASSES, --class CLASSES | class[:sender] to show, can be repeated (telemetry:* is always shown, sender * = one tab per sender) |
-force, --force | show every telemetry sender, not only those that sent ALIVE |
-timestamp, --timestamp | ignored, for compatibility |
-g GEOMETRY, --geometry GEOMETRY | window geometry, e.g. 500x500+100+100 |
Module Creator
Command: sw/tools/create_module/create_mod_qt.py (conf/tools/module_creator.xml)
Graphical helper to create a new module: its xml file and C source and header.
usage: create_mod_qt.py [-h]Moving Base Sim
Command: sw/ground_segment/python/moving_base/moving_base.py (conf/tools/moving_base.xml)
Moving base simulator
usage: moving_base.py [-h] [-s SPEED] [-he HEADING] [-t TURN_RATE] [-i ID]| Option | Description |
|---|---|
-s SPEED, --speed SPEED | Speed of the ship (m/s). |
-he HEADING, --heading HEADING | Heading of the ship (deg). |
-t TURN_RATE, --turn_rate TURN_RATE | Turn rate of the ship (deg/s). |
-i ID, --id ID | Aircraft ID. |
NatNet3
Command: sw/ground_segment/python/natnet3.x/natnet2ivy.py (conf/tools/natnet3.xml)
Forwards the rigid bodies of an OptiTrack motion capture system (NatNet 3) to the aircraft over Ivy, as ENU position and attitude.
The frame is set by the side of the test area that the long edge of the calibration tool pointed at (--long_edge), the side of the x/east axis (--x_side or --x_angle_from_right) and the side the nose of the drone pointed at when the rigid body was created (--ac_nose).
Examples:
ENAC default: ./natnet2ivy.py --up_axis z_up --long_edge near --x_side right --ac_nose far -ac 0 0
TU Delft: ./natnet2ivy.py --long_edge right --x_side right --ac_nose far -ac 0 0
True ENU at TU Delft: ./natnet2ivy.py --long_edge right --x_angle_from_right -23.0 --ac_nose far -ac 0 0usage: natnet2ivy.py [-h] -le {left,far,right,near} (-xs {left,far,right,near} | -xa X_ANGLE) [-up {y_up,z_up}] -an {left,far,right,near} -ac rigid_id ac_id [-b IVY_BUS] [-s SERVER] [-m MULTICAST] [-dp DATA_PORT] [-cp COMMAND_PORT] [-v] [-f FREQ] [-gr] [-vs VEL_SAMPLES] [-rg] [-sm] [-o]| Option | Description |
|---|---|
-le {left,far,right,near}, --long_edge {left,far,right,near} | Side of the test area that the long edge of the calibration tool was pointing at |
-xs {left,far,right,near}, --x_side {left,far,right,near} | Side that the x/east axis of the resulting ENU frame should point to. |
-xa X_ANGLE, --x_angle_from_right X_ANGLE | Right-hand rotation in degrees of the x/east-axis around the up-axis, where 0.0 means x/east is pointing to the right |
-up {y_up,z_up}, --up_axis {y_up,z_up} | Optitrack Up axis: y_up or z_up. |
-an {left,far,right,near}, --ac_nose {left,far,right,near} | Side of the test area that the nose of the drone was pointing at when definition the rigid body |
-ac rigid_id ac_id | pair of rigid body and A/C id (multiple possible) |
-b IVY_BUS, --ivy_bus IVY_BUS | Ivy bus address and port |
-s SERVER, --server SERVER | NatNet server IP address |
-m MULTICAST, --multicast_addr MULTICAST | NatNet server multicast address |
-dp DATA_PORT, --data_port DATA_PORT | NatNet server data socket UDP port |
-cp COMMAND_PORT, --command_port COMMAND_PORT | NatNet server command socket UDP port |
-v, --verbose | display debug messages |
-f FREQ, --freq FREQ | transmit frequency |
-gr, --ground_ref | also send the GROUND_REF message |
-vs VEL_SAMPLES, --vel_samples VEL_SAMPLES | amount of samples to compute velocity (should be greater than 2) |
-rg, --remote_gps | use the old REMOTE_GPS_LOCAL message |
-sm, --small | enable the EXTERNAL_POSE_SMALL message instead of the full |
-o, --old_natnet | Change the NatNet version to 2.9 |
--up_axis {y_up,z_up} | no parameter is equal to y_up |
--long_edge | {left,far,right,near} |
--x_side | {left,far,right,near} |
--x_angle_from_right | X_ANGLE_DEGREES |
--ac_nose | {left,far,right,near} |
NederdroneStatus
Command: sw/ground_segment/python/fuelcell/fuel_cell.py (conf/tools/nederdrone_status.xml)
Nederdrone fuel cell, battery and ESC status
usage: fuel_cell.py [-h] [-b IVY_BUS]| Option | Description |
|---|---|
-b IVY_BUS, --ivy_bus IVY_BUS | Ivy bus address:port (default: $IVY_BUS or the system default) |
NTRIP2ivy
Command: sw/ground_segment/misc/ntrip2ivy.py (conf/tools/ntrip2ivy.xml)
Forwards RTCM3 corrections from an NTRIP caster or from a mixed UBX/RTCM serial input to the aircraft over Ivy.
usage: ntrip2ivy.py [-h] [-m MOUNTPOINT] [--url URL] [--username USERNAME] [--password PASSWORD] [-d RTK_BASE] [-b RTK_BASE_BAUDRATE] [--no-ivy] [--bus BUS] [--serial-output SERIAL_OUTPUT] [--serial-output-baudrate SERIAL_OUTPUT_BAUDRATE] [-p PACKET_SIZE] [--chunk-size CHUNK_SIZE] [--reconnect-delay RECONNECT_DELAY] [--fragment-delay FRAGMENT_DELAY] [--zero-df393 [MSG_ID ...]] [-v]| Option | Description |
|---|---|
-m MOUNTPOINT, --mountpoint MOUNTPOINT | NTRIP mountpoint (default: ENFA) |
--url URL | NTRIP caster URL (default: https://crtk.net:443) |
--username USERNAME | NTRIP username (default: centipede) |
--password PASSWORD | NTRIP password |
-d RTK_BASE | Read mixed UBX/RTCM input from this RTK base serial port instead of NTRIP |
-b RTK_BASE_BAUDRATE | RTK base baudrate (default: 9600) |
--no-ivy | Do not forward RTCM messages to Ivy |
--bus BUS | Ivy bus address |
--serial-output SERIAL_OUTPUT | Optional serial output receiving raw RTCM frames |
--serial-output-baudrate SERIAL_OUTPUT_BAUDRATE | Serial output baudrate (default: 9600) |
-p PACKET_SIZE, --packet-size PACKET_SIZE | Paparazzi payload size |
--chunk-size CHUNK_SIZE | GNSS parser read buffer size |
--reconnect-delay RECONNECT_DELAY | Delay before reconnecting |
--fragment-delay FRAGMENT_DELAY | Delay between Ivy fragments |
--zero-df393 [MSG_ID ...] | Set the MSM DF393 multiple-message bit to 0 for these message IDs and recompute the RTCM CRC before forwarding (default: 1097; use --zero-df393 with no IDs to disable) |
-v, --verbose | Print forwarded/skipped RTCM messages |
OpenSky-Network Intruders
Command: sw/ground_segment/python/opensky-network/opensky.py (conf/tools/opensky_network_intruders.xml)
Gets the air traffic around the aircraft from the OpenSky Network and sends INTRUDER messages to the Ivy bus for display in the GCS. Needs the opensky_api Python package.
usage: opensky.py [-h] [-p PERIOD] [-m MARGIN] [-t TIMEOUT] [-v]| Option | Description |
|---|---|
-p PERIOD, --period PERIOD | update period |
-m MARGIN, --margin MARGIN | margin in degree to define the bounding box |
-t TIMEOUT, --timeout TIMEOUT | timeout to remove A/C |
-v, --verbose | display debug messages |
Optitrack Distance Counter
Command: sw/ground_segment/python/distance_counter/dist.py (conf/tools/optitrack_distance_counter.xml)
Distance counter: distance flown (INS messages) and elapsed time (ROTORCRAFT_STATUS) shown from the Ivy bus.
dist.py is part of the paparazzi-uav project.
usage: dist.py [-h] [-b IVY_BUS]| Option | Description |
|---|---|
-b IVY_BUS, --ivy_bus IVY_BUS | Ivy bus address and port [default: system Ivy bus] |
PprzLink Proxy
Command: sw/ground_segment/tmtc/pprzlink_proxy.py (conf/tools/pprzlink_proxy.xml)
Lets several simulated aircraft talk to each other and to the GCS with PPRZLINK v2 over UDP: maps the ports of each agent to its aircraft id.
usage: pprzlink_proxy.py [-h] [--gcs GCS_CONF] [--ac ACS_CONF] [--addr ADDRESS] [--script SCRIPT] [-v]| Option | Description |
|---|---|
--gcs GCS_CONF | GCS configuration with format [ID:][IP:][PORT_OUT:PORT_IN] |
--ac ACS_CONF | AC configuration with format ID:[IP:]PORT_OUT:PORT_IN (multiple possible) |
--addr ADDRESS | Set default IP address |
--script | SCRIPT |
-v, --verbose | display debug messages |
Real-time Plotter
Command: sw/logalizer/plotter (conf/tools/real_time_plotter.xml)
Plots message fields from the Ivy bus in real time.
| Option | Description |
|---|---|
-b <ivy bus> | Default is 127.255.255.255:2010 |
-c <curve> | Add a curve (e.g. '*:telemetry:BAT:voltage') or constant (e.g. '1.5'). The curve is inserted into the last open window (cf -n option) |
-t <title> | Set the last opened window title (cf -n option) |
-g <geometry> | Set the last opened window geometry ( '500x500+100+100' ) |
-n | Open another window for the next curves |
-m <size> | Memory size (default 500) |
-u <time> | Update time in s (default 0.50) |
Real-time Plotter (Python)
Command: sw/logalizer/rt_plotter.py (conf/tools/real_time_plotter__python_.xml)
Plots message fields from the Ivy bus in real time (Python version).
usage: rt_plotter.py [-h]RotWing3D
Command: sw/ground_segment/python/rotwing_visualizer/rotwing_vis_o3d_app.py (conf/tools/rotwing_3d.xml)
3D view (Open3D) of a rotating wing aircraft from its attitude, controller and actuator telemetry.
usage: rotwing_vis_o3d_app.py [-h]RotWingStatus
Command: sw/ground_segment/python/rotwing_mon/rotwing_mon.py (conf/tools/rotwing_status.xml)
Rotwing Status Monitor
usage: rotwing_mon.py [-h] [-s SPEECH]| Option | Description |
|---|---|
-s SPEECH, --speech SPEECH | Rotwing status viewer speech |
rtcm2ivy
Command: sw/ground_segment/misc/rtcm2ivy (conf/tools/rtcm2ivy.xml)
Reads RTCM3 messages from a GPS base station receiver (e.g. u-blox M8P) on a serial port and forwards them over Ivy for DGPS and RTK.
Usage: rtcm2ivy [options]| Option | Description |
|---|---|
-v, --verbose | Verbosity enabled |
-l, --logger | Save RTCM3 messages to log |
-d <device> | The GPS device(default: /dev/ttyACM0) |
-b <baud_rate> | The device baud rate(default: B9600) |
-p <packet_size> | The payload size (default:100, max:249)) |
RtpViewer
Command: sw/tools/rtp_viewer/rtp_viewer.py (conf/tools/rtpviewer.xml)
Started by the Center with: -p 5000 -s 0.75 -r 3
Shows the RTP/JPEG video stream of an aircraft (module video_rtp_stream) in a window.
usage: rtp_viewer.py [-h] [-p PORT] [-s SCALE] [-r ROTATE]| Option | Description |
|---|---|
-p PORT, --port PORT | The port number to open for the RTP stream (5000 or 6000) |
-s SCALE, --scale SCALE | The scaling factor to apply to the incoming video stream (default: 1) |
-r ROTATE, --rotate ROTATE | The number of clockwise 90deg rotations to apply to the stream [0-3] (default: 0) |
Server
Command: sw/ground_segment/tmtc/server (conf/tools/server.xml)
Receives the telemetry of all aircraft from the links, writes the log files and sends the state of each aircraft to the GCS and the other tools.
| Option | Description |
|---|---|
-b Bus | Default is 127.255.255.255:2010 |
-http | Send http: URLs (default is file:) |
-hostname <hostname> | Set the address for the http server |
-port <port> | Set http port for serving XML and KML files (default is 8889) |
-kml | Enable KML file updating |
-kml_no_http | KML without web server (local files only) |
-n | Disable log |
-timestamp | Bind on timestampped messages |
-no_md5_check | Disable safety matching of live and current configurations |
-log_name | Name for output log (Time stamp will be |
-udp_json_stream_addr | Address of the server to stream udp JSON telemetry messages (default is localhost) |
-udp_json_stream_port | Port of the server to stream udp JSON telemetry messages (default is 9870) |
-udp_json_stream_disable | Disable udp JSON stream |
-replay_old_log | Enable aircraft registering on PPRZ_MODE messages |
Simulator
Command: sw/simulator/pprzsim-launch (conf/tools/simulator.xml)
Started by the Center with: -a @AIRCRAFT
Starts the simulation of an aircraft: nps, or sim (basic fixed-wing simulator).
Usage: pprzsim-launch -a <ac_name> -t <sim_type> [sim arguments]| Option | Description |
|---|---|
-a NAME, --aircraft=NAME | Aircraft name to use |
-t SIMTYPE, --type=SIMTYPE | Simulator type to start: sim or nps |
-b BUS, --ivy_bus=BUS | Ivy Bus broadcast address (127.255.255.255) |
-f HOST, --fg_host=HOST | Host for FlightGear visualization (e.g. 127.0.0.1) |
-v, | --verbose |
--norc | Hide the simulated RC |
-p PORT, --fg_port=PORT | Port on FlightGear host to connect to (Default: 5501) |
-P PORT_IN, --fg_port_in=PORT_IN | Port to receive from FlightGear host (Default: 5502) |
--fg_time_offset=SEC | FlightGear time offset in seconds (e.g. 21600 for 6h) |
-j IDX, --js_dev=IDX | Use joystick with specified index (e.g. 0) |
--spektrum_dev=DEV | Spektrum device to use (e.g. /dev/ttyUSB0) |
--rc_script=NO | Number of RC script to use |
--time_factor=factor | Time factor (default 1.0) |
--fg_fdm | Use FlightGear native-fdm protocol instead of native- gui |
--nodisplay | Don't send NPS Ivy messages |
UnifiedMoCap
Command: sw/ext/unifiedmocaprouter/build/mocap-router (conf/tools/unifiedmocaprouter.xml)
Started by the Center with: optitrack ivy --publish_frequency 10 --coordinate_system enu --coordinate_north far --craft_noses right --streaming_ids 1 --ac_id @AC_ID
Routes the data of a motion capture system (OptiTrack) to the aircraft over Ivy, or to the console. A general --help is not available: give MOCAP and AGENT (e.g. optitrack ivy) followed by -h for their options.
Usage: mocap-router MOCAP AGENT [-h|--help] [options]Video to GCS
Command: sw/tools/video/video_to_gcs.sh (conf/tools/video_to_gcs.xml)
Started by the Center with: -i 5000 -o 5600
Show the RTP/JPEG video of an aircraft (module video_rtp_stream) in the PprzGCS video panel, or in a GStreamer window of its own.
examples:
video_to_gcs.sh -i 5000 -o 5600 -r counterclockwise front camera of the course Bebop to PprzGCS
video_to_gcs.sh -i 6000 -w bottom camera in a windowusage: video_to_gcs.sh [-i rtp_port] [-o gcs_port] [-r rotation] [-w] [-h]| Option | Description |
|---|---|
-i rtp_port | RTP port of the stream (default 5000; the second camera of video_rtp_stream is 6000) |
-o gcs_port | UDP port of the PprzGCS video panel (default 5600, layout: ) |
-r rotation | none, clockwise, counterclockwise, rotate-180 (default none) |
-w | show the video in a GStreamer window instead of sending it to PprzGCS |
Weather Station
Command: sw/ground_segment/misc/davis2ivy (conf/tools/weather_station.xml)
Started by the Center with: -d /dev/ttyUSB1
Reads a Davis VantagePro weather station on a serial port and sends ambient pressure, temperature, wind speed and direction to the Ivy bus.
Usage: davis2ivy [-a] [-b <bus>] [-d <device>] [-i <aircraft_id>] [-s <delay time in seconds>]Wind
Command: sw/ground_segment/python/wind/wind.py (conf/tools/wind.xml)
Wind Tool: estimate the wind from ground speed and airspeed
usage: wind.py [-h] [-b IVY_BUS]| Option | Description |
|---|---|
-b IVY_BUS, --ivy_bus IVY_BUS | Ivy bus address and port (default: $IVY_BUS or the pprzlink default) |
External programs
| Tool | Description |
|---|---|
| Command line (CMD) | Runs a shell command; the example runs echo. |
| Command line (Python) | Runs Python from the Paparazzi Python environment (pprzEnv); the example prints Hello, World! |
| Flight Plan Editor | PprzGCS in flight plan editor mode. |
| Herelink PprzLink Router | Starts the PprzLink router on a Herelink ground unit through adb, to route the telemetry between the Herelink and the GCS over UDP. |
| Http Server | Serves the files of the current folder over HTTP on port 8889 (python -m http.server). |
| PprzGCS | PprzGCS, the ground control station. |
| VLC | VLC media player, here showing the RTP video stream on port 5000 (sw/tools/rtp_viewer/rtp_5000.sdp). |
Command line (CMD)
Command: echo (conf/tools/cmdline.xml)
Started by the Center with: "Hello world"
Runs a shell command; the example runs echo.
Command line (Python)
Command: pprzEnv/bin/python (conf/tools/cmdline_python.xml)
Started by the Center with: -c "print('Hello, World!')"
Runs Python from the Paparazzi Python environment (pprzEnv); the example prints Hello, World!
Flight Plan Editor
Command: pprzgcs (conf/tools/flight_plan_editor.xml)
Started by the Center with: -f
PprzGCS in flight plan editor mode.
Herelink PprzLink Router
Command: adb shell /oem/bin/pprzlink_router_cc (conf/tools/herelink_pprzlink_router.xml)
Started by the Center with: -e udp://192.168.0.11:5242:192.168.0.10:5243 -e udp://0.0.0.0:4243:192.168.43.255:4242
Starts the PprzLink router on a Herelink ground unit through adb, to route the telemetry between the Herelink and the GCS over UDP.
Http Server
Command: python (conf/tools/http_server.xml)
Started by the Center with: -m http.server 8889
Serves the files of the current folder over HTTP on port 8889 (python -m http.server).
PprzGCS
Command: pprzgcs (conf/tools/pprzgcs.xml)
PprzGCS, the ground control station.
VLC
Command: vlc (conf/tools/vlc.xml)
Started by the Center with: ./sw/tools/rtp_viewer/rtp_5000.sdp
VLC media player, here showing the RTP video stream on port 5000 (sw/tools/rtp_viewer/rtp_5000.sdp).