class documentation

class ROS2ArgumentVariable(UaVariable[Any]):

View In Hierarchy

An argument of a Lock-bypassing Method, writable at its own level and without the Lock.

Arguments are Parameters, so using a listing is a write and then a call. Without this class the write would go through opensmi's variable check, which asks for the Lock, and a visitor could not use the listings. An Admin always passes, anyone else needs this variable's own minimum level. Writing a scratch input on a read-only Method changes nothing about the robot or the server.

Two clients using one listing at once overwrite each other's arguments and read each other's answers. That holds for every opensmi Method, which has one ParameterSet and one FinalResultData, not one per session.

Method access_allowed Let an Admin through always, and anyone else at this variable's own level.
@override
def access_allowed(self, user: UserAuthorization, *, lock_required: bool | None = None) -> bool: ΒΆ

Let an Admin through always, and anyone else at this variable's own level.