Skip to content

[Mirobot Init] [ERROR] Could not parse status message #3

@theS3b

Description

@theS3b

Hello,

My code performs multiple operations that are very similar to the following:

from wlkata_mirobot import WlkataMirobot
api = WlkataMirobot()

api.home()
api.set_door_lift_distance(50)
api.GRIPPER_OPEN_PWM_VALUE = 30

def open_gripper():
    api.gripper_open()

def close_gripper():
    api.gripper_close()

while ... :
    open_gripper()
    api.p2p_interpolation(go_to[0], go_to[1], go_to[2] + delta, 0, j5_angle, last_angle, speed= 3000)
            
    api.p2p_interpolation(go_to[0], go_to[1], go_to[2], 0, j5_angle, last_angle, speed= 2000)

    close_gripper()
    api.door_interpolation(-10, -225, 70, 0, 0, 0, speed= 3000)
                
    open_gripper()

    # Error happens between these lines

    api.p2p_interpolation(200, 0, 180, 0, 0, 0, speed= 3000)   
    time.sleep(...)

Please note that some parts of the code that are not necessary to understand the issue are not shown here and the code has been simplified a bit.

After a while, I get the following error (after a random number of loops):

[Mirobot Init] [ERROR] Could not parse status message "<Run,Angle(ABCDXYZ):-5.391,-10.307,44.885,0.000,6.478,-0.847,20.891,Cartesian coordinate(XYZ RxRyRz):187.354,22.275,120.947,3.343,10.523esian coordinate(XYZ RxRyRz):187.354,22.275,120.947,3.343,10.523,53.089,Pump PWM:60,Valve PWM:0,Motion_MODE:1>"
An exception has occurred, use %tb to see the full traceback.

SystemExit: -1

I have the latest version of wlkata-mirobot-python (via pip install).
I have Python 3.8.18.
I have the firmware v20230920-mirobot.hex.

Do you have any idea on how to solve this issue? Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions