SetCollisionLevel does not work via pythonAPI


#1

I added to the python API a command to set the collision level. Below you can see the communication between PC and robot:

Send to 192.168.1.6:29999: SetCollisionLevel(3)
Receive from 192.168.1.6:29999: 0,{},SetCollisionLevel(3);

It looks like that the “SetCollisionLevel()” command is correctly applied and acknowledged by the robot. However, the collision level is not updated in the Dobot Studio Pro and I think that the collision level is not changed at all.

Could it be that the current firmware (1.5.6.0) does not support to use “SetCollisionLevel()” via python or any other API yet?


#2

Yes, the interface used to change CollisionLevel in TCP/IP is different from the interface used in DobotStudio, so it doesn’t change in the input command software, but it actually works. You can run the Python script to try it out


#3

Thanks, I will test it.