Hi,
I’m new to aerial robotics, so please correct me if I use the wrong terms anywhere.
I am trying to get PX4 to connect to airsim. So, I first changed the settings accordingly.
"SeeDocsAt": "https://github.com/Microsoft/AirSim/blob/master/docs/settings.md",
"SettingsVersion": 1.2,
"SimMode": "Multirotor",
"Vehicles": {
"PX4": {
"VehicleType": "PX4Multirotor",
"UseSerial": false,
"UseTcp": true,
"TcpPort": 4560,
"ControlPort": 14580,
"params": {
"NAV_RCL_ACT": 0,
"NAV_DLL_ACT": 0,
"LPE_LAT": 47.641468,
"LPE_LON": -122.140165,
"COM_OBL_ACT": 1
}
}
}
}
To run the docker container I used the following command:
docker run -it --privileged \
-v ~/src/Firmware:/src/firmware:rw \
-p 127.0.0.1:4560:4560/tcp \
--name=px px4io/px4-dev-ros-melodic
Once in the container, I did
cd /src/firmware
make px4_sitl none_iris
Everything worked smoothly to the point where PX4 is waiting for airsim to accept the connection on TCP port 4560.
Upon running airsim, encountered the following error:
Waiting for TCP connection on port 4560, local IP 127.0.0.1
Accepting TCP socket failed, is another instance running?
TcpClientPort socket bind failed with error:10048
How can I fix this?