andyzeng / visual-pushing-grasping

Train robotic agents to learn to plan pushing and grasping actions for manipulation with deep reinforcement learning.
http://vpg.cs.princeton.edu/
BSD 2-Clause "Simplified" License
898 stars 315 forks source link

change parse_tcp_state_data #44

Open zhouxingqun opened 4 years ago

zhouxingqun commented 4 years ago

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

DafaRen commented 3 years ago

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!

gsbandy24 commented 3 years ago

hi has anyone figured out the answer for this?

MengJIaming12138 commented 2 years ago

help! same error we found

axiaoyi commented 8 months ago

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.