hello the PX4 gurus
I still wondering to have a dev environnement and it looks not so easy
I folowed 2 or 3 times the documentation
-
setting the user to dialout group
-
removing modemmanager
-
sourcing ubuntu_sim.sh and ubuntu_sim_nuttx.sh
all on a fresh ubuntu 16.04
I tried on 2 differents computer one with a virtualbox ubuntu and the other with an ubuntu alongside a windows
on both I get the same issue when trying the make posix jmavsim$ make posix jmavsim
– PX4 VERSION: v1.8.0-beta1-52-g11f4631
– CONFIG: posix_sitl_default
– Build Type: RelWithDebInfo
– The CXX compiler identification is GNU 5.4.0
– The C compiler identification is GNU 5.4.0
– The ASM compiler identification is GNU
– Found assembler: /usr/bin/cc
– Check for working CXX compiler using: Ninja
– Check for working CXX compiler using: Ninja – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Detecting CXX compile features
– Detecting CXX compile features - done
– Check for working C compiler using: Ninja
– Check for working C compiler using: Ninja – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Detecting C compile features
– Detecting C compile features - done
– Found PythonInterp: /usr/bin/python (found version “2.7.12”)
– Found PY_jinja2: /usr/local/lib/python2.7/dist-packages/jinja2
– C compiler: cc (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609
– C++ compiler: c++ (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609
Submodule ‘msg/tools/gencpp’ (GitHub - ros/gencpp: ROS C++ message definition and serialization generators) registered for path ‘tools/gencpp’
Cloning into ‘msg/tools/gencpp’…
Submodule path ‘tools/gencpp’: checked out ‘b41ee3060badd660662e21cd9d4f81971c87a420’
Submodule ‘msg/tools/genmsg’ (GitHub - ros/genmsg: Standalone Python library for generating ROS message and service data structures for various languages) registered for path ‘tools/genmsg’
Cloning into ‘msg/tools/genmsg’…
Submodule path ‘tools/genmsg’: checked out ‘a189fc78558e7276df59d2961cfe4f8b4de08a8b’
Submodule ‘src/lib/DriverFramework’ (GitHub - PX4/DriverFramework: Operating system and flight stack agnostic driver framework for POSIX (Linux, NuttX, Mac OS, QNX, VxWorks).) registered for path ‘src/lib/DriverFramework’
Cloning into ‘src/lib/DriverFramework’…
Submodule path ‘src/lib/DriverFramework’: checked out ‘e06222dd151e2f92476762e483915df5bd67929d’
Submodule ‘dspal’ (GitHub - ATLFlight/dspal: DSP Abstraction Layer for QuRT OS on Hexagon DSP) registered for path ‘dspal’
Cloning into ‘dspal’…
Submodule path ‘src/lib/DriverFramework/dspal’: checked out ‘9b46b4a57f230672ee0806a523963af70bc44f1c’
Submodule ‘cmake_hexagon’ (GitHub - ATLFlight/cmake_hexagon: CMake toolchain and rules for building apps for Hexagon DSP and apps processor on Qualcomm SoCs) registered for path ‘cmake_hexagon’
Cloning into ‘cmake_hexagon’…
Submodule path ‘src/lib/DriverFramework/dspal/cmake_hexagon’: checked out ‘07168bd5715818802b78f674816ec851307998a7’
Submodule ‘src/lib/ecl’ (GitHub - PX4/PX4-ECL: Estimation & Control Library for Guidance, Navigation and Control Applications) registered for path ‘ecl’
Cloning into ‘src/lib/ecl’…
Submodule path ‘ecl’: checked out ‘bae4b8a5e7786304e33deaf33bbbcbb256fdda1e’
Submodule ‘src/lib/matrix’ (GitHub - PX4/PX4-Matrix: Lightweight, dependency free Matrix library (BSD)) registered for path ‘matrix’
Cloning into ‘src/lib/matrix’…
Submodule path ‘matrix’: checked out ‘21d47424c6050bb94da5de3f7580a8df66b6fcc7’
– PX4 ECL: Very lightweight Estimation & Control Library v0.9.0-518-gbae4b8a
Submodule ‘src/drivers/gps/devices’ (GitHub - PX4/PX4-GPSDrivers: Platform independent GPS drivers) registered for path ‘devices’
Cloning into ‘src/drivers/gps/devices’…
Submodule path ‘devices’: checked out ‘a5cf54a2e14e1c6f3ff443f7f13eba31782c0460’
Submodule ‘mavlink/include/mavlink/v2.0’ (GitHub - mavlink/c_library_v2: Official reference C / C++ library for the v2 protocol) registered for path ‘…/…/…/mavlink/include/mavlink/v2.0’
Cloning into ‘mavlink/include/mavlink/v2.0’…
Submodule path ‘…/…/…/mavlink/include/mavlink/v2.0’: checked out ‘748192f661d0df3763501cfc432861d981952921’
Submodule ‘Tools/sitl_gazebo’ (GitHub - PX4/PX4-SITL_gazebo: Set of plugins, models and worlds to use with OSRF Gazebo Simulator in SITL and HITL.) registered for path ‘…/…/Tools/sitl_gazebo’
Cloning into ‘Tools/sitl_gazebo’…
Submodule path ‘…/…/Tools/sitl_gazebo’: checked out ‘cd91ef411aff947f234eb829479e6242d9fabcf7’
Submodule ‘external/OpticalFlow’ (GitHub - PX4/PX4-OpticalFlow: This repository contains different algorithms to calculate the optical flow. It can be used as input for a position estimator) registered for path ‘…/…/external/OpticalFlow’
Cloning into ‘external/OpticalFlow’…
Submodule path ‘…/…/Tools/sitl_gazebo/external/OpticalFlow’: checked out ‘549cc7cacb01bb71b2386586305c889d3651cfcc’
Submodule ‘external/klt_feature_tracker’ (GitHub - ethz-ait/klt_feature_tracker: Track a number of features in a series of (stereo) images for machine vision applications) registered for path ‘…/…/external/klt_feature_tracker’
Cloning into ‘external/klt_feature_tracker’…
Submodule path ‘…/…/Tools/sitl_gazebo/external/OpticalFlow/external/klt_feature_tracker’: checked out ‘a0d242294ef638d8fa422ab43f0d476ba37a15a6’
Submodule ‘Tools/jMAVSim’ (GitHub - PX4/jMAVSim: Simple multirotor simulator with MAVLink protocol support) registered for path ‘…/…/Tools/jMAVSim’
Cloning into ‘Tools/jMAVSim’…
Submodule path ‘…/…/Tools/jMAVSim’: checked out ‘e0e8b6ca473a6eecc3ee2984ea414e321f6808c6’
Submodule ‘jMAVlib’ (GitHub - PX4/jMAVlib: Java library for MAV applications (MAVLink, PX4)) registered for path ‘…/…/jMAVlib’
Cloning into ‘jMAVlib’…
Submodule path ‘…/…/Tools/jMAVSim/jMAVlib’: checked out ‘afa488d166813038c28572907eacf6eaa54f3c7c’
– Configuring done
– Generating done
– Build files have been written to: /home/osboxes/Firmware/build/posix_sitl_default
[619/619] cd /home/osboxes/Firmware/build/posix_sitl_default/tmp && /home/osboxes/F…jmavsim none /home/osboxes/Firmware /home/osboxes/Firmware/build/posix_sitl_default
args: /home/osboxes/Firmware/build/posix_sitl_default/px4 posix-configs/SITL/init/ekf2 none jmavsim none /home/osboxes/Firmware /home/osboxes/Firmware/build/posix_sitl_default
SITL ARGS
sitl_bin: /home/osboxes/Firmware/build/posix_sitl_default/px4
rcS_dir: posix-configs/SITL/init/ekf2
debugger: none
program: jmavsim
model: none
src_path: /home/osboxes/Firmware
build_path: /home/osboxes/Firmware/build/posix_sitl_default
empty model, setting iris as default
SITL COMMAND: /home/osboxes/Firmware/build/posix_sitl_default/px4 /home/osboxes/Firmware /home/osboxes/Firmware/posix-configs/SITL/init/ekf2/iris
data path: /home/osboxes/Firmware
commands file: /home/osboxes/Firmware/posix-configs/SITL/init/ekf2/iris
creating new parameters file
creating new dataman file
| ___ \ \ \ / / / |
| |/ / \ V / / /| |
| __/ / \ / /| |
| | / /^\ \ ___ |
_| / / |_/px4 starting.
ERROR [Unknown] decoder init failed
ERROR [param] importing from ‘rootfs/eeprom/parameters’ failed (-61)
Command ‘param’ failed, returned 1
8785 WARNING: setRealtimeSched failed (not run as root?)
INFO [dataman] Unknown restart, data manager file ‘rootfs/fs/microsd/dataman’ size is 11405132 bytes
BAT_N_CELLS: curr: 0 → new: 3
CAL_ACC0_ID: curr: 0 → new: 1376264
CAL_ACC0_XOFF: curr: 0.0000 → new: 0.0100
CAL_ACC0_XSCALE: curr: 1.0000 → new: 1.0100
CAL_ACC0_YOFF: curr: 0.0000 → new: -0.0100
CAL_ACC0_YSCALE: curr: 1.0000 → new: 1.0100
CAL_ACC0_ZOFF: curr: 0.0000 → new: 0.0100
CAL_ACC0_ZSCALE: curr: 1.0000 → new: 1.0100
CAL_ACC1_ID: curr: 0 → new: 1310728
CAL_ACC1_XOFF: curr: 0.0000 → new: 0.0100
CAL_GYRO0_ID: curr: 0 → new: 2293768
CAL_GYRO0_XOFF: curr: 0.0000 → new: 0.0100
CAL_MAG0_ID: curr: 0 → new: 196616
CAL_MAG0_XOFF: curr: 0.0000 → new: 0.0100
COM_DISARM_LAND: curr: 0 → new: 3
COM_OBL_ACT: curr: 0 → new: 2
COM_OF_LOSS_T: curr: 0.0000 → new: 5.0000
COM_RC_IN_MODE: curr: 0 → new: 1
EKF2_ANGERR_INIT: curr: 0.1000 → new: 0.0100
EKF2_GBIAS_INIT: curr: 0.1000 → new: 0.0100
EKF2_MAG_TYPE: curr: 0 → new: 1
MC_PITCH_P: curr: 6.5000 → new: 6.0000
MC_PITCHRATE_P: curr: 0.1500 → new: 0.2000
MC_ROLL_P: curr: 6.5000 → new: 6.0000
MC_ROLLRATE_P: curr: 0.1500 → new: 0.2000
MPC_HOLD_MAX_Z: curr: 0.6000 → new: 2.0000
MPC_Z_VEL_I: curr: 0.0200 → new: 0.1500
MPC_Z_VEL_P: curr: 0.2000 → new: 0.6000
NAV_ACC_RAD: curr: 10.0000 → new: 2.0000
NAV_DLL_ACT: curr: 0 → new: 2
RTL_DESCEND_ALT: curr: 30.0000 → new: 5.0000
RTL_LAND_DELAY: curr: -1.0000 → new: 5.0000
RTL_RETURN_ALT: curr: 60.0000 → new: 30.0000
SDLOG_DIRS_MAX: curr: 0 → new: 7
SENS_BOARD_X_OFF: curr: 0.0000 → new: 0.0000
SYS_AUTOSTART: curr: 0 → new: 4010
INFO [simulator] Waiting for initial data on UDP port 14560. Please start the flight simulator to proceed…
Buildfile: /home/osboxes/Firmware/Tools/jMAVSim/build.xmlmake_dirs:
[mkdir] Created dir: /home/osboxes/Firmware/Tools/jMAVSim/out/production/jMAVSimcompile:
[javac] Compiling 73 source files to /home/osboxes/Firmware/Tools/jMAVSim/out/production/jMAVSim
[javac] Note: /home/osboxes/Firmware/Tools/jMAVSim/src/me/drton/jmavsim/PeripherialBuzzer.java uses unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.create_run_jar:
[jar] Building jar: /home/osboxes/Firmware/Tools/jMAVSim/out/production/jmavsim_run.jarcopy_res:
[copy] Copying 17 files to /home/osboxes/Firmware/Tools/jMAVSim/out/productionBUILD SUCCESSFUL
Total time: 6 seconds
Options parsed, starting Sim.
Starting GUI…
3D [dev] 1.6.0-pre12-daily-experimental dailycom.jogamp.opengl.GLException: J3D-Renderer-1: createImpl ARB n/a but required, profile > GL2 requested (OpenGL >= 3.1). Requested: GLProfile[GL3bc/GL3bc.sw], current: 3.0 (Compat profile, compat[ES2], FBO, software) - 3.0 Mesa 17.2.8
at jogamp.opengl.x11.glx.X11GLXContext.createImpl(X11GLXContext.java:418)
at jogamp.opengl.GLContextImpl.makeCurrentWithinLock(GLContextImpl.java:759)
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:642)
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:580)
at javax.media.j3d.JoglPipeline$QueryCanvas.doQuery(JoglPipeline.java:8615)
at javax.media.j3d.JoglPipeline$QueryCanvas.access$100(JoglPipeline.java:8566)
at javax.media.j3d.JoglPipeline.createQueryContext(JoglPipeline.java:6562)
at javax.media.j3d.Canvas3D.createQueryContext(Canvas3D.java:4609)
at javax.media.j3d.Canvas3D.createQueryContext(Canvas3D.java:3606)
at javax.media.j3d.Renderer.doWork(Renderer.java:461)
at javax.media.j3d.J3dThread.run(J3dThread.java:271)DefaultRenderingErrorListener.errorOccurred:
CONTEXT_CREATION_ERROR: Renderer: Error creating Canvas3D graphics context for queryProperties()
graphicsDevice = X11GraphicsDevice[screen=0]
canvas = me.drton.jmavsim.Visualizer3D$CustomCanvas3D[canvas0,0,0,0x0,invalid]
X11Util.Display: Shutdown (JVM shutdown: true, open (no close attempt): 1/1, reusable (open, marked uncloseable): 0, pending (open in creation order): 1)
X11Util: Open X11 Display Connections: 1
X11Util: Open[0]: NamedX11Display[:0, 0x7f51a403f760, refCount 1, unCloseable false]
Exception in thread “main” java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.IllegalStateException: Canvas3D: Non-recoverable graphics configuration error
at javax.media.j3d.Canvas3D.queryProperties(Canvas3D.java:3595)
at me.drton.jmavsim.Visualizer3D.createEnvironment(Visualizer3D.java:214)
at me.drton.jmavsim.Visualizer3D.(Visualizer3D.java:175)
at me.drton.jmavsim.Simulator.(Simulator.java:157)
at me.drton.jmavsim.Simulator.main(Simulator.java:678)
… 5 more
Options parsed, starting Sim.
Starting GUI…
3D [dev] 1.6.0-pre12-daily-experimental dailycom.jogamp.opengl.GLException: J3D-Renderer-1: createImpl ARB n/a but required, profile > GL2 requested (OpenGL >= 3.1). Requested: GLProfile[GL3bc/GL3bc.sw], current: 3.0 (Compat profile, compat[ES2], FBO, software) - 3.0 Mesa 17.2.8
at jogamp.opengl.x11.glx.X11GLXContext.createImpl(X11GLXContext.java:418)
at jogamp.opengl.GLContextImpl.makeCurrentWithinLock(GLContextImpl.java:759)
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:642)
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:580)
at javax.media.j3d.JoglPipeline$QueryCanvas.doQuery(JoglPipeline.java:8615)
at javax.media.j3d.JoglPipeline$QueryCanvas.access$100(JoglPipeline.java:8566)
at javax.media.j3d.JoglPipeline.createQueryContext(JoglPipeline.java:6562)
at javax.media.j3d.Canvas3D.createQueryContext(Canvas3D.java:4609)
at javax.media.j3d.Canvas3D.createQueryContext(Canvas3D.java:3606)
at javax.media.j3d.Renderer.doWork(Renderer.java:461)
at javax.media.j3d.J3dThread.run(J3dThread.java:271)DefaultRenderingErrorListener.errorOccurred:
CONTEXT_CREATION_ERROR: Renderer: Error creating Canvas3D graphics context for queryProperties()
graphicsDevice = X11GraphicsDevice[screen=0]
canvas = me.drton.jmavsim.Visualizer3D$CustomCanvas3D[canvas0,0,0,0x0,invalid]
Exception in thread “main” java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.IllegalStateException: Canvas3D: Non-recoverable graphics configuration error
at javax.media.j3d.Canvas3D.queryProperties(Canvas3D.java:3595)
at me.drton.jmavsim.Visualizer3D.createEnvironment(Visualizer3D.java:214)
at me.drton.jmavsim.Visualizer3D.(Visualizer3D.java:175)
at me.drton.jmavsim.Simulator.(Simulator.java:157)
at me.drton.jmavsim.Simulator.main(Simulator.java:678)
… 5 more
X11Util.Display: Shutdown (JVM shutdown: true, open (no close attempt): 1/1, reusable (open, marked uncloseable): 0, pending (open in creation order): 1)
X11Util: Open X11 Display Connections: 1
X11Util: Open[0]: NamedX11Display[:0, 0x7f613c030cc0, refCount 1, unCloseable false]
^C
Exiting…
pxh> Shutting down
Restoring terminal
/home/osboxes/Firmware/Tools/sitl_run.sh: line 167: kill: (6826) - No such process
ninja: build stopped: interrupted by user.
Makefile:147: recipe for target ‘posix_sitl_default’ failed
make: *** [posix_sitl_default] Interrupt
does any one get this too?
the git update and the compile part looks ok but sommthing looks missing when launching the PX4 and the jmavsim env
I seen somthing that could looks similar at first sight here running JMAVSim in vmware fails · Issue #42 · DrTon/jMAVSim · GitHub but solution look’s not applicable I didnt find the same files and or dir structure …
thank’s for any help