libstp.robot.service ==================== .. py:module:: libstp.robot.service Classes ------- .. autoapisummary:: libstp.robot.service.RobotService Module Contents --------------- .. py:class:: RobotService(robot: libstp.robot.api.GenericRobot) Bases: :py:obj:`libstp.class_name_logger.ClassNameLogger` Base class for robot services. Services encapsulate reusable business logic (e.g. drum navigation, arm control) and are lazily instantiated and cached per robot via ``robot.get_service(ServiceClass)``. Subclasses receive the robot instance in ``__init__`` and can access hardware through ``self.robot.defs``. .. py:attribute:: robot