Author Topic: KUKA_IIWA_Digital_IO_Error  (Read 1119 times)

avishek

  • Forum User
  • *
  • Posts: 21
    • View Profile
Re: KUKA_IIWA_Digital_IO_Error
« Reply #15 on: August 17, 2021, 09:20:49 AM »
Hi,

I have not tried this bit. Let me try and get back to you.

Thanks
Avishek

avishek

  • Forum User
  • *
  • Posts: 21
    • View Profile
Re: KUKA_IIWA_Digital_IO_Error
« Reply #16 on: August 17, 2021, 10:37:43 AM »
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
Code: [Select]
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

avishek

  • Forum User
  • *
  • Posts: 21
    • View Profile
Re: KUKA_IIWA_Digital_IO_Error
« Reply #17 on: August 17, 2021, 11:57:15 AM »
Hey

Done!

Thanks a lot. We should send a box of chocolate to Linz actually

Avishek

Johannes @ Robots in Architecture

  • Lead Developer
  • Administrator
  • Forum User
  • *****
  • Posts: 1214
    • View Profile
    • Robots in Architecture
Re: KUKA_IIWA_Digital_IO_Error
« Reply #18 on: August 17, 2021, 10:15:46 PM »
Sorry for the delay, today was a busy day!
Great to hear that it worked out, no chocolates necessary :)

Best,
Johannes