Skip to content

Commit 2030a93

Browse files
committed
load a dhlink from another config
1 parent ddfadef commit 2030a93

File tree

2 files changed

+446
-396
lines changed

2 files changed

+446
-396
lines changed

src/main/java/com/neuronrobotics/sdk/addons/kinematics/DHLink.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,13 @@ public DHLink(Element nNode, LinkConfiguration newLinkConf) {
101101

102102
}
103103

104+
public DHLink(DHLink dhl) {
105+
setDelta(dhl.getDelta());
106+
setTheta(dhl.getTheta());
107+
setRadius(dhl.getRadius());
108+
setAlpha(dhl.getAlpha());
109+
}
110+
104111
/**
105112
* Fire on link global position change.
106113
*

0 commit comments

Comments
 (0)