Robert,
Since I am writing this as a node application I have converted the config file to a JSON object as it will not reside locally once I get all of the methods working correctly. The weird part is I can send the output set-up just fine, I am negotiating the protocol version fine, getting the controller version back (another issue, the build version that is returned does not match the “About” version on the simulator but this is with my code or the python example). The other strange thing is if I limit the number of inputs that I send it works just fine, 5 or less no issue, 6 or more I have an issue.
All sends and receives from the RTDE server are using the same methods so not willing to say there is definitely not an issue with the methods but they seem to work fine for all of the other data.
Here is the raw data that I am reading in:
> {“rtde_config”:{
"state":[
{"name":"target_q", "type":"VECTOR6D", "title":"Target Joint Position"},
{"name":"target_qd", "type":"VECTOR6D", "title":"Target Joint Velocities"},
{"name":"actual_q", "type":"VECTOR6D", "title":"Actual Joint Positions"},
{"name":"actual_qd", "type":"VECTOR6D", "title":"Actual Joint Velocities"},
{"name":"actual_TCP_pose", "type":"VECTOR6D", "title":"Actual Tool Position Pose"},
{"name":"target_TCP_pose", "type":"VECTOR6D", "title":"Target Tool Position Pose"},
{"name":"robot_status_bits", "type":"UINT32", "title":"Digital Output Status Bits"},
{"name":"output_int_register_0", "type":"INT32"}
],
"setp":[
{"name":"input_double_register_0", "type":"DOUBLE"},
{"name":"input_double_register_1", "type":"DOUBLE"},
{"name":"input_double_register_2", "type":"DOUBLE"},
{"name":"input_double_register_3", "type":"DOUBLE"},
{"name":"input_double_register_4", "type":"DOUBLE"}
],
"watchdog":[{
"name":"input_int_register_0", "type":"INT32"
}]
}
}
Here is an example of the buffer (converted to string) that I am successfully sending for the inputs
zIinput_double_register_0,input_double_register_1,input_double_register_2,input_double_register_3,input_double_register_4
Here is the buffer when I am having an issue by adding another input…
�Iinput_double_register_0,input_double_register_1,input_double_register_2,input_double_register_3,input_double_register_4,input_double_register_5
The size of the total buffer sent (header and payload) is 146 bytes per the length calculation. My concern is that leading character, looks wrong.
I will keep looking at it as well and hope to get this working by the end of the weekend.
Matt