class documentation

class ROS2GatedMethod(BaseMethod):

View In Hierarchy

A Method that can answer without the Lock.

opensmi checks a callable's level and the Lock in one condition and offers no bypass, so this class overrides that condition. A subclass that leaves bypasses_the_lock alone behaves like BaseMethod.

Class Variable bypasses_the_lock Whether the Machine's Lock is skipped. True only on the read-only introspection listings: nothing they expose changes the robot, the address space or the server state.
Async Method _condition_access_allowed Check the level, and the Lock unless this Method bypasses it.
bypasses_the_lock: ClassVar[bool] =

Whether the Machine's Lock is skipped. True only on the read-only introspection listings: nothing they expose changes the robot, the address space or the server state.

@override
async def _condition_access_allowed(self, user: UserAuthorization) -> bool:

Check the level, and the Lock unless this Method bypasses it.

Raises
UaStatusCodeErrorBadUserAccessDenied when the level is too low, and, where the Lock is not bypassed, BadRequiresLock when the caller does not hold it.