eager-dev / eager

[deprecated] Engine Agnostic Gym Environment for Robotics
https://eager-control.readthedocs.io/
Apache License 2.0
16 stars 0 forks source link

Produce error if object, defined outside of environment, is used in two environments. #114

Closed bheijden closed 3 years ago

bheijden commented 3 years ago

If an object is defined outside of an environment, and first provided to env_1 and then used to initialize env_2, the services/buffers for env_1 are overwritten with env_2 as the buffers/srvs etc... are attributes of the object instead of the environment it is used in.

Either produce an error if used multiple times, or have the buffers/srvs etc.. be attributes of the environment instead. Perhaps making a deepcopy of the object is an option?