robotology / gym-ignition

Framework for developing OpenAI Gym robotics environments simulated with Ignition Gazebo
https://robotology.github.io/gym-ignition
GNU Lesser General Public License v3.0
227 stars 26 forks source link

Fix Ignition distribution check in case multiple versions are found #408

Closed diegoferigo closed 2 years ago

diegoferigo commented 2 years ago

Take three after #399 and #405. This PR fixes the check in the case ign gazebo --versions returns multiple lines, that can happen if multiple Ignition distributions are installed side-by-side in the system.

Related to https://github.com/robotology/gym-ignition/issues/403#issuecomment-946540675.