JamieMair / MuJoCo.jl

Julia bindings and visualiser for the MuJoCo physics engine.
https://jamiemair.github.io/MuJoCo.jl/
MIT License
57 stars 4 forks source link

When a model cannot be loaded, returns a null pointer which is not error handled. #100

Closed JamieMair closed 9 months ago

JamieMair commented 9 months ago

Null pointer returned when executing the following:

using MuJoCo
model = load_model("cartpole.xml");
@show model.internal_pointer

This is when cartpole.xml is in the same folder as the executing file.