def METHOD_NAME(self,jointState):
    if len(jointState.names) > self.robot.numLinks():
        raise RuntimeError("Invalid number of links")
    for n in jointState.names:
        if n not in self.link_dict:
            raise RuntimeError("Invalid link "+n+", must match Klamp't model")
    self.last_joint_state = jointState