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
function Base.setproperty!(x::Data, f::Symbol, value)
internal_pointer =getfield(x, :internal_pointer)
Should these be the same? I tried manually calling unsafe_store!(Ptr{Float64}(data.internal_pointer + 161616), t) and that seemed to create the expected behavior for data.time = t. This may affect other fields in data and possibly other structs, I haven't checked. Thanks for your help!
I ran into this issue a while ago, but it hit again when trying to see why my visual global option to set the azimuth of the camera wasn't being loaded. Seems like the same thing may exists there as well
Hi @arunleob, thanks for the bug report, it was very helpful! This must have snuck in when updating to MuJoCo 3.
I've added a test for your example and it should be fixed now by #117. I will push the release after the CI is finished and the fix should be available later today.
I ran into an issue trying to set time, i.e. doing the following
Looking at the generated wrapper, the getproperty function
Base.getproperty(x::Data, f::Symbol)
uses the following address to get timeMuJoCo.jl/src/wrappers.jl
Line 4854 in 41df649
but the setproperty function
Base.setproperty!(x::Data, f::Symbol, value)
doesMuJoCo.jl/src/wrappers.jl
Lines 6264 to 6267 in 41df649
Both seem to get the internal_pointer the same way
MuJoCo.jl/src/wrappers.jl
Lines 4824 to 4825 in 41df649
MuJoCo.jl/src/wrappers.jl
Lines 6171 to 6172 in 41df649
Should these be the same? I tried manually calling
unsafe_store!(Ptr{Float64}(data.internal_pointer + 161616), t)
and that seemed to create the expected behavior fordata.time = t
. This may affect other fields in data and possibly other structs, I haven't checked. Thanks for your help!I ran into this issue a while ago, but it hit again when trying to see why my visual global option to set the azimuth of the camera wasn't being loaded. Seems like the same thing may exists there as well
MuJoCo.jl/src/visualiser_wrappers.jl
Line 424 in 41df649
MuJoCo.jl/src/visualiser_wrappers.jl
Lines 451 to 455 in 41df649
The text was updated successfully, but these errors were encountered: