-
Notifications
You must be signed in to change notification settings - Fork 4.9k
ArduCopter SITL + MAVROS: Instability while moving towards goal #2267
Description
Hello,
I have been using ArduCopter SITL connected to AirSim and controlled over MAVROS with correct UDP ports for some basic experimentation. There are not any particular problems with arming/disarming or mode change; however, when I set a goal (sending takeoff with /mavros/cmd/takeoff service, publishing setpoint with /mavros/setpoint_position/local topic at 10 Hz and 20 Hz), I observed some sort of indecisiveness. At the goal, in both simulations, the overshoot or the effort to stay at the goal is similar. However, in Gazebo, when I set a goal, copter would not lose time and get there quickly, but in AirSim, it seemed like my setpoints (or the goals that are internally generated for stable flight, unknown to the user, if applicable) are taken by copter with a delay; hence, leading the copter to do the overshoots in the middle of the flight towards the goal I set for it. It reaches its goal eventually, but takes time to do that.
-
Is it something to be expected because AirSim is quite large in resource use compared to Gazebo, but it gets help from GPU, I guess?
-
OR is there any threshold for setpoint publish rate that I can adjust so that the so-called indecisiveness would decrease?
Experimental Setup
Software
- Ubuntu 16.04 LTS
- Unreal Engine 4.18
- AirSim >= 1.2.0 (built last Thursday)
- Python 2.7.12
- Gazebo 7.14 (I used SwiftGust for MAVROS and ArduCopter SITL connection)
Hardware (don't know if it matters)
- Intel Core i7 - 5820K, 3.3 GHz with 6 cores & 12 Threads
- NVIDIA GeForce GTX 970, 4 GB
- 32 GB RAM
Kind regards,
Burak