PX4 / PX4-Autopilot

PX4 Autopilot Software
https://px4.io
BSD 3-Clause "New" or "Revised" License
8.32k stars 13.43k forks source link

How can I get the right GUI after run:make px4_sitl jmavsim ? #17472

Open 1556260456 opened 3 years ago

1556260456 commented 3 years ago

my computer is:NVIDIA AGX Xavier ,and the system is ubuntu18.04(ros-melodic) I run :git clone https://github.com/PX4/PX4-Autopilot.git --recursive to download the firmware,and then run:bash ./PX4-Autopilot/Tools/setup/ubuntu.sh to install other tools. finally,after I run: make px4_sitl jmavsim I did not get the right GUI but this

[0/1] cd /home/yr/Data/PX4/Firmware/bu...ta/PX4/Firmware/build/px4_sitl_default
SITL ARGS
sitl_bin: /home/yr/Data/PX4/Firmware/build/px4_sitl_default/bin/px4
debugger: none
program: jmavsim
model: none
world: none
src_path: /home/yr/Data/PX4/Firmware
build_path: /home/yr/Data/PX4/Firmware/build/px4_sitl_default
empty model, setting iris as default
SITL COMMAND: "/home/yr/Data/PX4/Firmware/build/px4_sitl_default/bin/px4" "/home/yr/Data/PX4/Firmware/build/px4_sitl_default"/etc -s etc/init.d-posix/rcS -t "/home/yr/Data/PX4/Firmware"/test_data
INFO  [px4] Creating symlink /home/yr/Data/PX4/Firmware/build/px4_sitl_default/etc -> /home/yr/Data/PX4/Firmware/build/px4_sitl_default/tmp/rootfs/etc

______  __   __    ___ 
| ___ \ \ \ / /   /   |
| |_/ /  \ V /   / /| |
|  __/   /   \  / /_| |
| |     / /^\ \ \___  |
\_|     \/   \/     |_/

px4 starting.

INFO  [px4] Calling startup script: /bin/sh etc/init.d-posix/rcS 0
Info: found model autostart file as SYS_AUTOSTART=10016
INFO  [param] selected parameter default file eeprom/parameters_10016
[param] parameter file not found, creating eeprom/parameters_10016
  SYS_AUTOCONFIG: curr: 0 -> new: 1
  SYS_AUTOSTART: curr: 0 -> new: 10016
  CAL_ACC0_ID: curr: 0 -> new: 1310988
  CAL_GYRO0_ID: curr: 0 -> new: 1310988
  CAL_ACC1_ID: curr: 0 -> new: 1310996
  CAL_GYRO1_ID: curr: 0 -> new: 1310996
  CAL_ACC2_ID: curr: 0 -> new: 1311004
  CAL_GYRO2_ID: curr: 0 -> new: 1311004
  CAL_MAG0_ID: curr: 0 -> new: 197388
  CAL_MAG1_ID: curr: 0 -> new: 197644
  SENS_BOARD_X_OFF: curr: 0.0000 -> new: 0.0000
  SENS_DPRES_OFF: curr: 0.0000 -> new: 0.0010
* SYS_AUTOCONFIG: curr: 1 -> new: 0
  IMU_INTEG_RATE: curr: 200 -> new: 250
INFO  [dataman] Unknown restart, data manager file './dataman' size is 11798680 bytes
PX4 SIM HOST: localhost
INFO  [simulator] Waiting for simulator to accept connection on TCP port 4560
Buildfile: /home/yr/Data/PX4/Firmware/Tools/jMAVSim/build.xml

make_dirs:

compile:

create_run_jar:

copy_res:

BUILD SUCCESSFUL
Total time: 1 second
Options parsed, starting Sim.
Starting GUI...
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by javax.media.j3d.JoglPipeline (rsrc:j3dcore.jar) to method sun.awt.AppContext.getAppContext()
WARNING: Please consider reporting this to the maintainers of javax.media.j3d.JoglPipeline
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Exception in thread "main" java.lang.reflect.InvocationTargetException
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:61)
Caused by: java.lang.UnsatisfiedLinkError: Can't load library: /home/yr/Data/PX4/Firmware/Tools/jMAVSim/out/production/natives/linux-aarch64//libgluegen_rt.so
    at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2630)
    at java.base/java.lang.Runtime.load0(Runtime.java:768)
    at java.base/java.lang.System.load(System.java:1837)
    at com.jogamp.common.jvm.JNILibLoaderBase.loadLibraryInternal(JNILibLoaderBase.java:625)
    at com.jogamp.common.jvm.JNILibLoaderBase.access$000(JNILibLoaderBase.java:64)
    at com.jogamp.common.jvm.JNILibLoaderBase$DefaultAction.loadLibrary(JNILibLoaderBase.java:107)
    at com.jogamp.common.jvm.JNILibLoaderBase.loadLibrary(JNILibLoaderBase.java:488)
    at com.jogamp.common.os.DynamicLibraryBundle$GlueJNILibLoader.loadLibrary(DynamicLibraryBundle.java:427)
    at com.jogamp.common.os.Platform$1.run(Platform.java:321)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at com.jogamp.common.os.Platform.<clinit>(Platform.java:290)
    at com.jogamp.opengl.GLProfile.<clinit>(GLProfile.java:154)
    at jogamp.opengl.ThreadingImpl$1.run(ThreadingImpl.java:83)
    at jogamp.opengl.ThreadingImpl$1.run(ThreadingImpl.java:66)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at jogamp.opengl.ThreadingImpl.<clinit>(ThreadingImpl.java:66)
    at com.jogamp.opengl.Threading.disableSingleThreading(Threading.java:164)
    at javax.media.j3d.JoglPipeline.initialize(JoglPipeline.java:129)
    at javax.media.j3d.Pipeline.createPipeline(Pipeline.java:92)
    at javax.media.j3d.MasterControl.loadLibraries(MasterControl.java:858)
    at javax.media.j3d.VirtualUniverse.<clinit>(VirtualUniverse.java:267)
    at me.drton.jmavsim.Visualizer3D.<init>(Visualizer3D.java:194)
    at me.drton.jmavsim.Simulator.<init>(Simulator.java:189)
    at me.drton.jmavsim.Simulator.main(Simulator.java:939)
    ... 5 more

So,how can I get the right GUI to run:cammander takeoff or commander land

julianoes commented 3 years ago

Try Java 11: https://docs.px4.io/master/en/simulation/jmavsim.html#java-long-noclassdeffounderror