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

Implementation of 6DOF robot #29

Merged
merged 28 commits into from
Sep 28, 2023
Merged

Implementation of 6DOF robot #29

merged 28 commits into from
Sep 28, 2023

Conversation

baggepinnen
Copy link
Contributor

@baggepinnen baggepinnen commented Apr 26, 2023

Refs:

Todo

  • Implement KinematicPTP in MTKstdlib
  • Boolean inputs and pass-through

Notes

  • Our EMF component does not have an option for useSupport=false which the modelica robot uses, will this lead to an unbalanced model?
  • Several TODO and NOTE in the source code

@baggepinnen baggepinnen mentioned this pull request Apr 26, 2023
14 tasks
import ModelingToolkitStandardLibrary.Blocks
using ModelingToolkitStandardLibrary.Electrical
t = Multibody.t
D = Differential(t)

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?

Copy link
Contributor Author

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)])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
collect([D(x) for x in collect(x)])
[D(x) for x in collect(x)]

@baggepinnen baggepinnen marked this pull request as ready for review September 28, 2023 07:18
@baggepinnen baggepinnen merged commit d6d4445 into main Sep 28, 2023
@baggepinnen baggepinnen deleted the robot branch September 28, 2023 07:18
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.

3 participants