visual-pushing-grasping icon indicating copy to clipboard operation
visual-pushing-grasping copied to clipboard

change parse_tcp_state_data

Open zhouxingqun opened this issue 5 years ago • 4 comments

My UR Software version is 3.5. How to change parse_tcp_state_data? error: assert(robot_message_type == 16)

zhouxingqun avatar Oct 15 '19 14:10 zhouxingqun

Hello, friend,have you solved your problem? I used ur5e, and the same problem occurred. If you solve it, could you tell me about the code modification part,thank you very much!

DafaRen avatar Sep 18 '20 14:09 DafaRen

hi has anyone figured out the answer for this?

gsbandy24 avatar Jul 01 '21 13:07 gsbandy24

help! same error we found

MengJIaming12138 avatar Apr 28 '22 03:04 MengJIaming12138

def parse_tcp_state_data(state_data, subpackage):

    # Read package header
    baseIndex = 79
    data_bytes = bytearray()
    data_bytes.extend(state_data)
    data_length = struct.unpack("!i", data_bytes[baseIndex:baseIndex + 4])[0];
    robot_message_type = data_bytes[baseIndex + 4]

this may be useful for you.

axiaoyi avatar Dec 12 '23 10:12 axiaoyi