Closed dnovischi closed 2 years ago
These warning are generated when the content of the entity component manager (ECM), that is the "database" containing all the simulation data, is serialized to be sent from the server to the GUI. In order to make ScenarIO work, we store custom components in the ECM, and some of them cannot be serialized. Serializing them would give no real benefit, it would just increase the communication overhead to the GUI.
This being said, in upstream there is an ongoing activity to run the server and the GUI in the same process. It will prevent us to run the GUI in a different process. It will also mean that the ECM will no longer be duplicated in both server and GUI, and there won't be any need to serialize data through network.
The warnings you read are just informative. I'm not sure that the Warning verbosity is what I would personally chose for this type of logging (maybe Info would be more appropriate). Though, this is something that we do not have control, it's a upstream policy. If they bother you, you can restrict the verbosity of the whole application to Error with:
Thanks for the fast response and detailed explanation.
Description:
Whenever I use
from gym_ignition.scenario import model_with_file, model_wrapper
to define a model class, e.g.I get the following warnings from ignition-gazebo:
Steps to reproduce
sudo apt install ignition-fortress
pip install --pre scenario gym-ignition
export IGN_GAZEBO_PHYSICS_ENGINE_PATH=/lib/x86_64-linux-gnu/ign-physics-5/engine-plugins
class CartPole(model_wrapper.ModelWrapper, model_with_file.ModelWithFile): def init( self, world: scenario.World, position: List[float] = (0.0, 0.0, 0.0), orientation: List[float] = (1.0, 0, 0, 0), model_file: str = None, ): pass