Open kanishkanarch opened 1 year ago
Happens also on the other precompiled environments for me.
Hi Calvin, if you look at my error message closely, there's a Error: parameter name 'COM_OBL_ACT' was not found
. If you're also having this error, please remove this parameter from your settings.json file and you're good to go.
Hi Calvin, if you look at my error message closely, there's a
Error: parameter name 'COM_OBL_ACT' was not found
. If you're also having this error, please remove this parameter from your settings.json file and you're good to go.
I am also facing this same situation. This does fixes the problem, as PX4 will land, if the offboard computer doesn't send some messages at the rate of 2Hz. Removing this parameter, isn't really a ideal solution according to me.
The parameter doesn't come with AirSim's binary, apparently. You can try using another parameter that goes by the name COM_OBL_RC_ACT
, but I think it will also produce the same error. The AirSim binaries (all of them) come undefined with the parameter COM_OBL_ACT
and we can't do anything for the moment.
At least on Linux. The AirSim binaries in Windows run perfectly fine with PX4.
My "solution" was to run AirSim on a Windows PC and publish all the PX4-stuff on the local IP Address/Port. Then PX4 running on my Linux machine accesses this data over the network. If anyone needs the configuration for this I can definitely share it tomorrow or so.
That would be super helpful, please share as soon as possible!
Running AirSim on Windows and PX4 on Linux
On your Windows machine you have to set the standard PX4 settings in your Documents/AirSim/settings.json
and then under
"Vehicles": { "PX4": { "ControlIp": "remote", "ControlPortLocal": 14540, "ControlPortRemote": 14580, "LocalHostIp": "192.168.0.100"}}
set your LocalHostIp
to the IP adress of your current Windows machine on the network. It's also described here: PX4 Software-in-Loop with WSL 2 (note that you won't have to use WSL)
In your Linux Machine install PX4 and so on, then export your PX4_SIM_HOST_ADDR
export PX4_SIM_HOST_ADDR=192.168.0.100
and start PX4 by cd to PX4 directory and then make px4_sitl_default none_iris
. A current version of PX4 detects ans uses the PX4_SIM_HOST_ADDR automatically. For older versions there is a tutorial in the PX4 docs.
My full settings.json can be found here: settings.json
Thanks a lot for sharing! Why did you do this, btw? Does this setup have any other advantages?
Thanks a lot for sharing!
Why did you do this, btw? Does this setup have any other advantages?
No, not really. It could have some performance benefits if you perform the simulation on a different machine than the Autopilot. But in my case it's simply to be able to run PX4 and AirSim without crashing. Personally I would prefer running AirSim on Linux too.
Bug report
b874eaf5f90
nvidia-driver-525
(525.116.04-0ubuntu0.20.04.1 amd64)What's the issue you encountered?
AirSimNH.sh file crashes the binary pretty frequently, sometimes without even launching
make px4_sitl_default none_iris
, but more often when the px4 command is run. Some other issues discuss updating vulkan drivers, nvidia drivers, but to no avail.Settings
This is the
settings.json
file that I'm usingHow can the issue be reproduced?
~/AirSimNH/LinuxNoEditor/AirSimNH.sh -ResX=700 -ResY=400 -windowed -settings"~/Documents/AirSim/settings.json"
make px4_sitl_default none_iris
from the autopilot folder (optional, as sometimes the above airsim binary crashes without even this)Include full error message in text form
Full output logs for: airsim binary and for px4
Text output
Relevant part of output according to me: