Skip to content

Require that Robots have supervisor privileges #25

Description

@brettle

This will make it possible to configure Devices without having to do name mangling. When the controller starts, create a Supervisor instead of a Robot and then immediately check the return value supervisor.getSupervisor(). If it is false, exit with an error message telling the user that they need to set their robot's supervisor field to true, save, and reload the world.

We could eventually lift this restriction if a future version of Webots allows non-supervising robots to access configuration fields on Devices, or if we feel it is worth it to work around the current limitation by mangling names as described in #22.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions