Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SUMO extern controller and net-convert #6257

Closed
BenjaminDeleze opened this issue Jun 27, 2023 · 2 comments
Closed

SUMO extern controller and net-convert #6257

BenjaminDeleze opened this issue Jun 27, 2023 · 2 comments
Labels
question Further information is requested
Milestone

Comments

@BenjaminDeleze
Copy link

In the snap, we should now use the sumo_supervisor.py as an extern controller.

It works fine if the useNetconvert option of the SumoInterface is set to TRUE, like in sumo_interface_example.wbt.

However it seems like when launching the sumo_supervisor.py as an extern controller, it does not get the options set by the SumoInterface proto such as useNetConvert or gui.

So if you launch city_traffic.wbt with the SumoInterface as an extern controller, it will not work.

You have to manually specifiy:

./webots-controller projects/default/controllers/sumo_supervisor/sumo_supervisor.py --no-netconvert

So, I guess that it is normal that the extern controller do not get the controller args set by Webots.
However, from a user perspective, it seems strange that the parameters are set in the proto, in the world but that is does nothing.

  • Is it the normal behavior?
  • Can we do something about it or not?
  • If not, we shall document it, at least for SUMO because it is not clear for now.
@BenjaminDeleze BenjaminDeleze added the question Further information is requested label Jun 27, 2023
@BenjaminDeleze BenjaminDeleze added this to the R2023b milestone Jun 27, 2023
@stefaniapedrazzi
Copy link
Member

I don't think there is any other solution than documenting this both in the PROTO as JS warning and in the documentation.

@omichel
Copy link
Member

omichel commented Jun 27, 2023

I believe it would also be possible that the sumo_supervisor as a supervisor could get this information (controller args) by querying the scene tree and applying them.

Ideally, on the long term, we should modify the extern controller launcher so that it receives the controller args from Webots and applies them to the controller in addition to the args passed as a command line to the launcher.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Development

No branches or pull requests

3 participants