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

add utility to build kinematics functions that don't require full state #69

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

baggepinnen
Copy link
Contributor

Currently a draft since the current implementation is dangerous, it does not check whether all variables that actually matter are provided.

Better would be to make use of

joint_coordinates = [
    robot.mechanics.r1.phi
    robot.mechanics.r2.phi
    robot.mechanics.r3.phi
    robot.mechanics.r4.phi
    robot.mechanics.r5.phi
    robot.mechanics.r6.phi
]

# joint_coordinates = ModelingToolkit.unknowns(ssys.state.sys)[end-5:end] |> reverse # This gives Vector{JuliaSimCompiler.ADT.IRElement} but doesn't work either
fkine = JuliaSimCompiler.build_explicit_observed_function(ssys, output, unknowns=joint_coordinates)
q = rand(6)
fkine(q, prob.p, 0)

as mentioned in #68, but this appears buggy

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