Skip to content

Commit

Permalink
Safety controller fixed (#119)
Browse files Browse the repository at this point in the history
* Attribute suffix fixed

* Attribute Suffix Update
  • Loading branch information
sachinkum0009 authored Sep 16, 2021
1 parent 0e02126 commit 7f85cfe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions SW2URDF/URDF/SafetyController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ public double KVelocity

public SafetyController() : base("safety_controller", false)
{
SoftUpperAttribute = new URDFAttribute("soft_upper", false, null);
SoftLowerAttribute = new URDFAttribute("soft_lower", false, null);
SoftUpperAttribute = new URDFAttribute("soft_upper_limit", false, null);
SoftLowerAttribute = new URDFAttribute("soft_lower_limit", false, null);
KPositionAttribute = new URDFAttribute("k_position", false, null);
KVelocityAttribute = new URDFAttribute("k_velocity", true, null);

Expand Down Expand Up @@ -74,4 +74,4 @@ public void SetValues(TextBox boxLower, TextBox boxUpper,
KVelocityAttribute.SetDoubleValueFromString(boxVelocity.Text);
}
}
}
}
6 changes: 3 additions & 3 deletions SW2URDF/URDFExport/CSV/ContextToColumns.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ public static class ContextToColumns
{ "Link.Joint.Calibration.falling", "Calibration falling" },
{ "Link.Joint.Dynamics.damping", "Dynamics Damping" },
{ "Link.Joint.Dynamics.friction", "Dynamics Friction" },
{ "Link.Joint.SafetyController.soft_upper" ,"Safety Soft Upper"},
{ "Link.Joint.SafetyController.soft_lower", "Safety Soft Lower" },
{ "Link.Joint.SafetyController.soft_upper_limit" ,"Safety Soft Upper"},
{ "Link.Joint.SafetyController.soft_lower_limit", "Safety Soft Lower" },
{ "Link.Joint.SafetyController.k_position","Safety K Position"},
{ "Link.Joint.SafetyController.k_velocity","Safety K Velocity"},
};
}
}
}

0 comments on commit 7f85cfe

Please sign in to comment.