|
@@ -32,7 +32,7 @@ public class GripperGripNodeView implements SwingProgramNodeView<GripperGripNode
|
|
inputBox.add(new JLabel("Action:"));
|
|
inputBox.add(new JLabel("Action:"));
|
|
inputBox.add(createHorizontalSpacing());
|
|
inputBox.add(createHorizontalSpacing());
|
|
gripButton = new JRadioButton("Grip");
|
|
gripButton = new JRadioButton("Grip");
|
|
- ungripButton = new JRadioButton("Ungrip");
|
|
|
|
|
|
+ ungripButton = new JRadioButton("Release");
|
|
ButtonGroup group = new ButtonGroup();
|
|
ButtonGroup group = new ButtonGroup();
|
|
group.add(gripButton);
|
|
group.add(gripButton);
|
|
group.add(ungripButton);
|
|
group.add(ungripButton);
|
|
@@ -50,7 +50,7 @@ public class GripperGripNodeView implements SwingProgramNodeView<GripperGripNode
|
|
}
|
|
}
|
|
|
|
|
|
public void setAction(String which) {
|
|
public void setAction(String which) {
|
|
- if(which.equals("COUPLE"))
|
|
|
|
|
|
+ if(which.equals("GRIP"))
|
|
gripButton.setSelected(true);
|
|
gripButton.setSelected(true);
|
|
else
|
|
else
|
|
ungripButton.setSelected(true);
|
|
ungripButton.setSelected(true);
|
|
@@ -59,6 +59,6 @@ public class GripperGripNodeView implements SwingProgramNodeView<GripperGripNode
|
|
|
|
|
|
public String getAction() {
|
|
public String getAction() {
|
|
if(gripButton.isSelected()) return "GRIP";
|
|
if(gripButton.isSelected()) return "GRIP";
|
|
- return "UNGRIP";
|
|
|
|
|
|
+ return "RELEASE";
|
|
}
|
|
}
|
|
}
|
|
}
|