klowrey / mujoco.jl Goto Github PK
View Code? Open in Web Editor NEWJulia wrapper for the MuJoCo Physics Engine
License: Apache License 2.0
Julia wrapper for the MuJoCo Physics Engine
License: Apache License 2.0
Hi, I am using MuJoCo in OSX with Julia-v0.6.4. Before it worked well but today after I update the packages with "Pkg.update()", it first has an error with not finding the "Libdl" module. Then I fix it by changing the "using Libdl" to "using Base.Libdl" in the MuJoCo.jl. However, now it has another bug as followed:
The convenience is nice as the values in mjData aren't value until mj_forward is called (and reset as an extra precaution), but that mutates the data the Ptr argument refers to.
Options:
There is no example on this but is there any easy way to visualize a simulation
I am on a Mac and MuJoCo by itself and every other part of the demo code in the readme works except these lines of code and their following errors:
mj.set(m, :opt, :timestep, -0.002)
ERROR: MethodError: no method matching update_ptr(::Base.RefValue{mjModel}, ::UInt64, ::Float64)
Closest candidates are:
update_ptr(::Ptr, ::Integer, ::Float64) at /Users/powers/.julia/packages/MuJoCo/GRTFJ/src/mjextra.jl:152
update_ptr(::Ptr, ::Integer, ::Integer) at /Users/powers/.julia/packages/MuJoCo/GRTFJ/src/mjextra.jl:149
update_ptr(::Ptr, ::Integer, ::StaticArrays.SArray{Tuple{S},T,1,S} where T where S) at /Users/powers/.julia/packages/MuJoCo/GRTFJ/src/mjextra.jl:155
Stacktrace:
[1] set(::jlModel, ::Symbol, ::Symbol, ::Float64) at /Users/powers/.julia/packages/MuJoCo/GRTFJ/src/mjextra.jl:204
[2] top-level scope at none:0
m.m[].opt.timestep = 0.002
ERROR: setfield! immutable struct of type mjOption cannot be changed
Stacktrace:
[1] setproperty!(::mjOption, ::Symbol, ::Float64) at ./sysimg.jl:19
[2] top-level scope at none:0
d.qpos[:] = rand(nq)
ERROR: UndefVarError: nq not defined
Stacktrace:
[1] top-level scope at none:0
Hi. If one was to render the output to a screen what would they have to do?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.