+ r).streamline() p_ControllerStateMessage.setParseAction(lambda x: messaging.ControllerStateMessage(*x[0])) p_MotorStateMessage = pp.Group(l \ + p_MotorID + c \ + p_int \ + r).streamline() p_MotorStateMessage.setParseAction(lambda x: messaging.MotorStateMessage(*x[0])) p_ScriptResponseMessage = pp.Group(l \ + p_ScriptResponse \ + r).streamline() p_ScriptResponseMessage.setParseAction(lambda x: messaging.ScriptResponseMessage(*x[0])) p_GraphableMessage = pp.Group(l \ + p_str + c \ + p_float \ + r).streamline() p_GraphableMessage.setParseAction(lambda x: messaging.GraphableMessage(*x[0])) p_NodeAddedMessage = pp.Group(l \ + p_str + c \ + p_int + c \ + p_NodeType + c \ + p_LocalNodeInputNodeOutputMap + c \ + p_LocalNodeOutputNodeInputVecMap + c \ + p_LocalNodeInputParamValueMap \ + r).streamline() p_NodeAddedMessage.setParseAction(lambda x: messaging.NodeAddedMessage(*x[0])) p_NodeRemovedMessage = pp.Group(l \ + p_str + c \ + p_int \ + r).streamline() p_NodeRemovedMessage.setParseAction(lambda x: messaging.NodeRemovedMessage(*x[0])) p_NodeParametersMessage = pp.Group(l \
def telemetry(self, name, value): self.node.send(msg.GraphableMessage(name, value))