Hi Johannes
I have done the changes you had suggested and subsequently had to change the PRC_UDP.java. So the present changes alongwith your suggestions look like this
public void CORE_UDP(LBR robot, Controller kuka_Sunrise_Cabinet_1, SpatialObject tool, String tcpname, ObjectFrame baseFrame, boolean enablelogging, ITaskLogger logger, IApplicationData AppData, MediaFlangeIOGroup ioGroup, String ip, int port) throws SocketException, UnknownHostException {
//movement parameters
double ptpacc = 1.0;
double ptpint = 4.0;
double linacc = 1000;
double linint = 4.0;
UDPInput = new LinkedBlockingQueue<PRC_CommandData>();
if (ioGroup != null){
digiogroup = new PRC_IOGroupExtended(ioGroup, kuka_Sunrise_Cabinet_1, PRC_Enums.DIGOUT);
aniogroup = new PRC_IOGroupExtended(ioGroup, kuka_Sunrise_Cabinet_1, PRC_Enums.ANOUT);
}
tool.attachTo(robot.getFlange());
actTCP = tool.getFrame(tcpname);
udprec = new UDPReceiver(UDPInput);
// modified line
udpsend = new UDPSender(InetAddress.getByName(ip), port, UDPInput, ioGroup);
So far the code runs flawlessly and does not give any error. I can move, change digiIOs and read data back into GH. Now I need to pass the IO states through CollectPayload in order to read in GH.
Can you suggest what to do next here ?
Thanks
Avishek