Skip to content

Commit 95c7562

Browse files
committed
update IK sample
1 parent 8d4dac0 commit 95c7562

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

UnderAutomation.UniversalRobots.Showcase.Forms/Components/KinematicsControl.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ public KinematicsControl(UR ur)
1919
}
2020
cbModele.SelectedIndex = 0;
2121

22-
gridJointsFK.SelectedObject = new double[] { 0, 0, 0, 0, 0, 0 };
23-
gridDH.SelectedObject = new CustomUrDhParameters(0, 0, 0, 0, 0, 0);
24-
gridCartesianIK.SelectedObject = new Pose(0, 0, 0, 0, 0, 0);
22+
gridJointsFK.SelectedObject = new double[] { 1.57, -1.57, 1.57, 1.57, 1.57, 0 };
23+
gridDH.SelectedObject = new Ur3eDhParameters();
24+
gridCartesianIK.SelectedObject = new Pose(300, 0, 0, 0, 0, 0);
2525

2626
lstIKResults.Items.Clear();
2727
}
@@ -44,7 +44,7 @@ public void PeriodicUpdate()
4444
jointData.Shoulder.Position,
4545
jointData.Elbow.Position,
4646
jointData.Wrist1.Position,
47-
_ur.PrimaryInterface.JointData.Wrist2.Position,
47+
jointData.Wrist2.Position,
4848
jointData.Wrist3.Position,
4949
};
5050

0 commit comments

Comments
 (0)