单架飞机换三维模型
{
"SettingsVersion": 1.2,
"SimMode": "Multirotor",
"ClockType": "SteppableClock",
"PawnPaths":{
"DefultQuadrotor":{"PawnBP":"Class'/Game/customdrone/BP_FlyingPawn.BP_FlyingPawn_C'"}
},
"Vehicles": {
"UAV1":{
"VehicleType": "SimpleFlight",
"PawnPath":"DefultQuadrotor",
"X": 0, "Y": 0, "Z": 0,
"Yaw": 0
}
}
}
常规API控制
{
"SeeDocsAt": "https://github.com/Microsoft/AirSim/blob/master/docs/settings_json.md",
"SettingsVersion": 1.2,
"SimMode": "Multirotor",
"ClockSpeed": 1.0,
"Vehicles": {
"SimpleFlight": {
"VehicleType": "SimpleFlight",
"DefaultVehicleState": "Armed",
"EnableCollisionPassthrogh": false,
"EnableCollisions": true,
"AllowAPIAlways": true,
"RC": {
"RemoteControlID": 0,
"AllowAPIWhenDisconnected": false
}
}
}
}
本地PX4配置
{
"SettingsVersion": 1.2,
"SimMode": "Multirotor",
"ClockType": "SteppableClock",
"Vehicles": {
"PX4": {
"VehicleType": "PX4Multirotor",
"UseSerial": false,
"LockStep": true,
"UseTcp": true,
"TcpPort": 4560,
"ControlPortLocal": 14540,
"ControlPortRemote": 14580,
"LocalHostIp": "127.0.0.1",
"LogViewerHostIp": "127.0.0.1",
"LogViewerPort": 14388
}
}
}
MAVROS_虚拟机PX4
{
"SettingsVersion": 1.2,
"SimMode": "Multirotor",
"ClockType": "SteppableClock",
"Vehicles": {
"PX4": {
"VehicleType": "PX4Multirotor",
"UseSerial": false,
"LockStep": true,
"UseTcp": true,
"TcpPort": 4560,
"ControlPortLocal": 14540,
"ControlPortRemote": 14580,
"LocalHostIp": "192.168.178.1",
"LogViewerHostIp": "127.0.0.1",
"LogViewerPort": 14388
}
}
}
五个无人机
{
"SettingsVersion": 1.2,
"SimMode": "Multirotor",
"ClockType": "SteppableClock",
"PawnPaths":{
"DefultQuadrotor":{"PawnBP":"Class'/Game/customdrone/BP_FlyingPawn.BP_FlyingPawn_C'"}
},
"Vehicles": {
"UAV1":{
"VehicleType": "SimpleFlight",
"PawnPath":"DefultQuadrotor",
"X": 0, "Y": 0, "Z": 0,
"Yaw": 0
},
"UAV2": {
"VehicleType": "SimpleFlight",
"PawnPath":"DefultQuadrotor",
"X": 2, "Y": 0, "Z": 0,
"Yaw": 0
},
"UAV3": {
"VehicleType": "SimpleFlight",
"PawnPath":"DefultQuadrotor",
"X": 4, "Y": 0, "Z": 0,
"Yaw": 0
},
"UAV4": {
"VehicleType": "SimpleFlight",
"PawnPath":"DefultQuadrotor",
"X": 2, "Y": 2, "Z": 0,
"Yaw": 0
},
"UAV5": {
"VehicleType": "SimpleFlight",
"PawnPath":"DefultQuadrotor",
"X": 2, "Y": -2, "Z": 0,
"Yaw": 0
}
}
}