def cb_forceReadout(self, data): ''' Collects the raw data from the multiple_fsr script and puts it into a list ''' #Defining the parts of the list forces = [] forces.append(data.heel) forces.append(data.inner) forces.append(data.outer) #Check to see if the user was calibrated; if not calibrated, calibrate; if calibrated, be prepared to provide feedback if not self.calibrated: # print('here') self.calibrate(forces) else: self.feedback(forces)
def cb_forceReadout(self, data): ''' Collects the raw data from the multiple_fsr script and puts it into a list ''' #Defining the parts of the list forces = [] forces.append(data.heel) forces.append(data.inner) forces.append(data.outer) forces.append(data.heelR) forces.append(data.innerR) forces.append(data.outerR) #Check to see if the user was calibrated; if not calibrated, calibrate; if calibrated, be prepared to provide feedback if self.calibrate_button_pressed: if not self.calibrated: # print('here') self.calibrate(forces) else: self.feedback(forces) else: self.instructions_topic.publish( "Step onto mat and stand straight with equal weight distribution; then press calibrate." )