lis-epfl / swarmlab

SmarmLab: a versatile Matlab package for drone swarm simulation.
MIT License
211 stars 75 forks source link

Unable to run `example_olfati_saber` with `DRONE_TYPE = "quadcopter"` #13

Open d-marson opened 1 year ago

d-marson commented 1 year ago

Hello,

When running example_olfati_saber with DRONE_TYPE = "quadcopter", an array size mismatch error is thrown by an inequality operation in compute_vel_olfati_saber on line 252. Some details:

For comparison, when running example_olfati_saber with the default DRONE_TYPE = "point_mass", p_swarm.max_a is not empty and contains a scalar previously assigned to it.

Unfortunately, I don't yet know enough about swarm algorithms to propose a specific solution.