Skip to content

Commit

Permalink
Fix staubli coord origin
Browse files Browse the repository at this point in the history
  • Loading branch information
visose committed Jan 9, 2023
1 parent da3fcef commit cc04df4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Robots/PostProcessors/VAL3PostProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,10 @@ string Frame(Frame frame)
}

Plane plane = frame.Plane;
plane.InverseOrient(ref _system.BasePlane);
var basePlane = _system.BasePlane;
var offset = _system.MechanicalGroups[0].Joints[0].D;
plane.Origin += basePlane.Normal * offset;
plane.InverseOrient(ref basePlane);
var values = _system.PlaneToNumbers(plane);

string frameName = frame.Name.NotNull();
Expand Down

0 comments on commit cc04df4

Please sign in to comment.