dji-sdk / RoboMaster-SDK

DJI RoboMaster Python SDK and Sample Code for RoboMaster EP.
Apache License 2.0
311 stars 142 forks source link

issues with robot arm #37

Open aszlam opened 3 years ago

aszlam commented 3 years ago

I can consistently connect to the robot through the SDK, and successfully issue commands to move the chassis e.g. .chassis.move(x=1, y=0, z=0), or change the led lights. However, every time I try to either query the state of the arm or the servos, or move the arm through the SDK, I get a message like

2021-01-29 23:05:35,866 ERROR client.py:164 Client: send_sync_msg wait msg receiver:2702, cmdset:0x00, cmdid:0x01 timeout!

and then the robot hangs: after this, no other commands (to chassis, etc.) can be sent, because this one is blocking.

The arm consistently functions properly in the app; and I have done multiple iterations of connecting to robot in the app, trying the arm (and it working), then disconnecting, connecting via wifi to python SDK, moving the robot arround with chassis commands, and then getting a hang when I query the arm.

Any advice?

More generally, as a feature request (or maybe the feature is there, I just haven't seen it?) it would be great to be able to send a "stop and reset" command to the robot that would clear any tasks on its stack

thanks!