You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.
I am getting a MethodError: no method matching setindex!(::Cassette.NoMetaMeta, ::Cassette.Meta{Cassette.NoMetaData,Cassette.NoMetaMeta}, ::Int64) when I run the code snippet below.
As pointed out at [17] in the stacktrace, this is the line triggering the error. I do not know if this is an issue with RigidBodyDynamics.jl or with Cassette.jl. I have been trying to fix this myself but I am lost. If someone points me in the right direction, I am happy to continue trying to look for a fix.
using RigidBodyDynamics
using SparsityDetection
mechanism =rand_chain_mechanism(Float64, [Revolute{Float64} for i =1:7]...)
state_cache =StateCache(mechanism)
dynamics_result_cache =DynamicsResultCache(mechanism)
EulerStep(q, q̇, q̈, h=0.01) = [ q + h * q̇
q̇ + h * q̈ ]
functiondynamics_defects!(out, x::AbstractArray{T}) where {T}
q, v, τ = x[1:7], x[8:14], x[15:21]
state = state_cache[T]
set_configuration!(state, q)
set_velocity!(state, v)
result = dynamics_result_cache[T]
dynamics!(result, state, τ)
next_state_integrated =EulerStep(q, v, result.v̇)
next_state_discretised = x[22:35]
defects = next_state_integrated - next_state_discretised
copyto!(out, defects)
end
input =rand(14+7+14)
output =rand(14)
dynamics_defects!(output, input)
sparsity_pattern =jacobian_sparsity(dynamics_defects!, output, input)
I am getting a
MethodError: no method matching setindex!(::Cassette.NoMetaMeta, ::Cassette.Meta{Cassette.NoMetaData,Cassette.NoMetaMeta}, ::Int64)
when I run the code snippet below.As pointed out at [17] in the stacktrace, this is the line triggering the error. I do not know if this is an issue with RigidBodyDynamics.jl or with Cassette.jl. I have been trying to fix this myself but I am lost. If someone points me in the right direction, I am happy to continue trying to look for a fix.
The stacktrace above has been truncated to respect the maximum limits of the GitHub Issue form. Full stacktrace is available here.
The text was updated successfully, but these errors were encountered: