Skip to content

Commit

Permalink
add licenses for derived code
Browse files Browse the repository at this point in the history
  • Loading branch information
baggepinnen committed Sep 12, 2024
1 parent 7e11e7e commit 5bbab89
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 10 deletions.
70 changes: 69 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1 +1,69 @@
(C) JuliaHub Inc. 2022-2023. All rights reserved.
(C) JuliaHub Inc. 2022-2023. All rights reserved.

===============================================================================

Parts of the code in the PlanarMechanics submodule have been adapted from the PlanarMechanics modelica library, which is licensed under the 3-Clause BSD License. The original license text is included below.

BSD 3-Clause License

Copyright (c) 2010-2023, Deutsches Zentrum fuer Luft- und Raumfahrt e.V.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

===============================================================================

Parts of the code in Multibody.jl have been adapted from the Modelica Standard Library, which is licensed under the 3-Clause BSD License. The original license text is included below.

BSD 3-Clause License

Copyright (c) 1998-2024, Modelica Association and contributors
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4 changes: 0 additions & 4 deletions src/PlanarMechanics/joints.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ A revolute joint
- `fixed` [Fixed](@ref) if `axisflange == false`
- `flange_a` [Flange](@ref) if `axisflange == true`
- `support` [Support](@ref) if `axisflange == true`
https://github.com/dzimmer/PlanarMechanics/blob/743462f58858a808202be93b708391461cbe2523/PlanarMechanics/Joints/Revolute.mo
"""
@component function Revolute(;
name,
Expand Down Expand Up @@ -102,8 +100,6 @@ A prismatic joint
- `fixed` [Fixed](@ref) if `axisflange == false`
- `flange_a` [Flange](@ref) if `axisflange == true`
- `support` [Support](@ref) if `axisflange == true`
https://github.com/dzimmer/PlanarMechanics/blob/743462f58858a808202be93b708391461cbe2523/PlanarMechanics/Joints/Prismatic.mo
"""
@component function Prismatic(;
name,
Expand Down
8 changes: 3 additions & 5 deletions src/PlanarMechanics/sensors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Partial absolute sensor model for sensors defined by components
frame_a = Frame()
end
# TODO: assert the number of connections
# https://github.com/dzimmer/PlanarMechanics/blob/443b007bcc1522bb172f13012e2d7a8ecc3f7a9b/PlanarMechanics/Sensors/Internal/PartialAbsoluteSensor.mo#L11
end

"""
Expand All @@ -28,7 +27,6 @@ Partial relative sensor model for sensors defined by components
frame_b = Frame()
end
# TODO: assert the number of connections
# https://github.com/dzimmer/PlanarMechanics/blob/443b007bcc1522bb172f13012e2d7a8ecc3f7a9b/PlanarMechanics/Sensors/Internal/PartialRelativeSensor.mo#L12-L13
end

"""
Expand All @@ -47,7 +45,7 @@ Partial absolute sensor models for sensors defined by equations (frame_resolve m

@equations begin
# TODO: assert the number of connections
# https://github.com/dzimmer/PlanarMechanics/blob/443b007bcc1522bb172f13012e2d7a8ecc3f7a9b/PlanarMechanics/Sensors/Internal/PartialAbsoluteBaseSensor.mo#L20-L21

frame_a.fx ~ 0
frame_a.fy ~ 0
frame_a.tau ~ 0
Expand Down Expand Up @@ -75,7 +73,7 @@ Partial relative sensor models for sensors defined by equations (frame_resolve m

@equations begin
# TODO: assert the number of connections
# https://github.com/dzimmer/PlanarMechanics/blob/443b007bcc1522bb172f13012e2d7a8ecc3f7a9b/PlanarMechanics/Sensors/Internal/PartialRelativeBaseSensor.mo#L19-L21


frame_a.fx ~ 0
frame_a.fy ~ 0
Expand Down Expand Up @@ -327,7 +325,7 @@ end
systems = [frame_a, frame_b, frame_resolve, x_in, y_in, phi_in, x_out, y_out, phi_out]
eqs = [
# TODO: assert the number of connections
# https://github.com/dzimmer/PlanarMechanics/blob/443b007bcc1522bb172f13012e2d7a8ecc3f7a9b/PlanarMechanics/Sensors/Internal/BasicTransformAbsoluteVector.mo#L42-L43

frame_a.fx ~ 0,
frame_a.fy ~ 0,
frame_a.tau ~ 0,
Expand Down

0 comments on commit 5bbab89

Please sign in to comment.