UPDATE: I have discovered that the problem was very simple: I just don't have the class LEDIOGroup inside the package ioAccess
Probably it is because i have an old version of Sunrise (Sunrise 14)?
Posts by regularRos
-
-
Hello,
In my application I would like to change the color of the LED on the robot flange.
I've found an example on how to do it but i can't get the code to compile. It says that it can't find the LEDIOGroup class.
Am I missing some package or is it something else?Can anyone please advice me on this?
This is a extract of the code:
Code
Display Moreimport javax.inject.Inject; import com.kuka.common.ThreadUtil; import com.kuka.roboticsAPI.applicationModel.RoboticsAPIApplication; import static com.kuka.roboticsAPI.motionModel.BasicMotions.*; import com.kuka.common.ThreadUtil; import com.kuka.generated.ioAccess.LEDIOGroup; import com.kuka.generated.ioAccess.MediaFlangeIOGroup; import com.kuka.roboticsAPI.controllerModel.Controller; import com.kuka.roboticsAPI.deviceModel.LBR; @Inject private LBR lbr; @Inject private Controller controller; @Inject private LEDIOGroup LEDIO; @Override public void initialize() { // initialize your application here lbr = getContext().getDeviceFromType(LBR.class); LEDIO = new LEDIOGroup(controller); // ---> The program won't compile because of this line } @Override public void run() { // do something.. LEDIO.setLEDRed(true); }
Many thanks