Exemplo n.º 1
0
    def execute(self, userdata):

        userdata.movement_number_out = 0
        userdata.out_bpm = BPM_TEST
        userdata.init_old_movement_name_path = DUMB_MOVEMENT_XML_NAME2
        # We now write the old move in the /tmp/tmp_mov_file_old.xml
        t = WritingOldMovText()
        t.in_file_name = DUMB_MOVEMENT_XML_NAME2
        writeOldMovSM = WriteOldMovement()
        writeOldMovSM.execute(t)
        # We initialise the counter
        now = rospy.Time.now()
        userdata.init_time_sent_last_movement = now
        return succeeded