Achieving the desired dynamic behavior in multi-robot systems interacting with the environment