ardupilot/libraries/SITL/examples/Webots_Python/worlds/crazyflie.wbt
Ian d358ca1b32 SITL: Add Webots 2023a support and examples
The various C Webots controllers are replaced by a single Python controller
- More readable (in my opinion)
- Does not require compilation
- Easily modifiable to run user code
- Can be blackboxed and configured via arguments when designing a robot model
- Optionally provides the ability to stream camera images over TCP
- Generalizable to copters and rovers (and probably more)
- Supports multi-vehicle simulation (including of multiple types)
- Requires no non-standard libraries (neither does current)

Higher fidelity example worlds
- Iris quadcopter demo world similar to gazebo
- Crazyflie quadcopter demo world (crazyflie models baked into webots)
- Pioneer3at rover demo world (pioneer models baked into webots)
2023-01-22 18:19:38 +11:00

52 lines
1.3 KiB
Plaintext

#VRML_SIM R2023a utf8
EXTERNPROTO "https://raw.githubusercontent.com/cyberbotics/webots/R2023a/projects/robots/bitcraze/crazyflie/protos/Crazyflie.proto"
EXTERNPROTO "https://raw.githubusercontent.com/cyberbotics/webots/R2023a/projects/objects/backgrounds/protos/TexturedBackground.proto"
EXTERNPROTO "https://raw.githubusercontent.com/cyberbotics/webots/R2023a/projects/objects/backgrounds/protos/TexturedBackgroundLight.proto"
EXTERNPROTO "https://raw.githubusercontent.com/cyberbotics/webots/R2023a/projects/objects/floors/protos/Floor.proto"
WorldInfo {
title "Crazyflie Ardupilot"
basicTimeStep 2
FPS 20
}
Viewpoint {
orientation -0.16896949154992233 0.7737576492025086 0.6105312532753491 0.687001624474616
position -0.398945807007221 -0.19824950788611448 0.29284320157231725
follow "Crazyflie"
followSmoothness 0.01
}
TexturedBackground {
}
TexturedBackgroundLight {
}
Floor {
}
Crazyflie {
controller "ardupilot_vehicle_controller"
controllerArgs [
"--motors"
"m1_motor, m3_motor, m4_motor, m2_motor"
"--reversed-motors"
"1, 2"
"--camera-fps"
"10"
"--camera"
"camera"
"--accel"
"accelerometer"
"--imu"
"inertial unit"
"--gyro"
"gyro"
"--gps"
"gps"
"--motor-cap"
"100"
]
extensionSlot [
Accelerometer {
}
]
}