robotology / gym-ignition-models

Collection of robot models compatible with gym-ignition
https://github.com/robotology/gym-ignition
GNU Lesser General Public License v3.0
24 stars 7 forks source link

Configure environment variables with a helper method #17

Closed diegoferigo closed 4 years ago

diegoferigo commented 4 years ago

As an alternative of manually exporting the environment variables, this PR introduces a new method:

import gym_ignition_models
gym_ignition_models.setup_environment()

Exporting the IGN_FILE_PATH variable is still necessary waiting for https://github.com/osrf/sdformat/issues/227.

traversaro commented 4 years ago

Should README be updated?

raffaello-camoriano commented 4 years ago

OK for me

diegoferigo commented 4 years ago

Updated the README with the usage of the new function. Merging.