Skip to content

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


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.

4 participants