Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve corner cases and error messages #106

Merged
merged 6 commits into from
Mar 26, 2022
Merged

Conversation

MartinOtter
Copy link
Member

  • Model3D(..) with no degrees of freedom is now supported (previously, an error was triggered).

  • Massless solid is now supported (previously, an error was triggered if Solid(..) had zero mass).

  • SolidMaterial, MassProperties, VisualMaterial in Solid(..) and VisualMaterial in Visual(..) improved to handle corner cases:

    • SolidMaterial=="" is treated as SolidMaterial = nothing
    • VisualMaterial=="" is treated as Shapes.VisualMaterial(), that is the default VisualMaterial.
    • massProperties==nothing && solidMaterial==nothing is treated as MassProperties(), that is as massless solid.
  • Error message improved, if closed kinematic loop is detected. Especially, the names of all Object3Ds in the kinematic loop are printed.

  • Error message improved, if no Scene is defined.

  • solid(..., contactSphereRadius::Union{Nothing,FloatType}=xxx) improved:

    • changed to contactSphereRadius::Union{Nothing,Number} (e.g. Int is also allowed).
    • contactSphereRadius <= 0 is the same as contactSphereRadius = nothing.
  • Removed keyword "path" from the docu of Prismatic, Revolute, FreeMotion, since not to be set by the user (path is set when calling Model3D(..) to store the absolute path name in the joint).

- changed to contactSphereRadius::Uniion{Nothing,Number} (e.g. Int is also allowed).
- contactSphereRadius <= 0 is the same as contactSphereRadius = nothing.
…Material in Visual(..) improved to handle corner cases:

- SolidMaterial=="" is treated as SolidMaterial = nothing
- VisualMaterial=="" is treated as Shapes.VisualMaterial()
- massProperties==nothing && solidMaterial==nothing is treated as MassProperties(), that is massless.
@MartinOtter MartinOtter merged commit 4f32004 into main Mar 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant