def __init__(self, subsystemName, replyHandler): self._subsysName = subsystemName self._subsysHandle = CCS.attachSubsystem(subsystemName) CCS.addStatusBusListener(replyHandler, replyHandler.getMessageFilter())
def startListener(ll): CCS.addStatusBusListener( ll, lambda msg: msg.getOrigin() == "bot-motorplatform" and msg. getClassName() == "org.lsst.ccs.bus.messages.StatusSubsystemData" and msg.getBusMessage().getDataKey() == "LampStatus")