-
Notifications
You must be signed in to change notification settings - Fork 3
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
Implementation of 6DOF robot #29
Conversation
import ModelingToolkitStandardLibrary.Blocks | ||
using ModelingToolkitStandardLibrary.Electrical | ||
t = Multibody.t | ||
D = Differential(t) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should these be const
maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it doesn't matter that much since they are part of a top-level example user script to build an MTK model. The performance sensitive parts are all taking place inside of MTK
@@ -26,7 +26,7 @@ function Base.broadcasted(::typeof(~), lhs::Symbolics.Arr{Num, 1}, | |||
end | |||
|
|||
function Base.broadcasted(D::Differential, x::Symbolics.Arr{Num, 1}) | |||
collect([D(x) for x in x]) | |||
collect([D(x) for x in collect(x)]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
collect([D(x) for x in collect(x)]) | |
[D(x) for x in collect(x)] |
due to SymbolicIR tracing through the interpolation
only with MTK, SymbolicIR fails
Refs:
Todo
Notes
EMF
component does not have an option foruseSupport=false
which the modelica robot uses, will this lead to an unbalanced model?TODO
andNOTE
in the source code