MuJoCo MuJoCo is a physics engine aimed at promoting research and development in the field of robotics. Fun demo A license is required to use MuJoCo. In this article, we will introduce you from license acquisition to simple code execution.
Access MuJoCo and register the user information. The fee structure is as follows, and students can use it for free! The license is for one year, but you can use it again if you reapply, so you can use it as much as you want among students!
Enter user information Enter information such as your name and period of affiliation. If you press the Request license button and "Success" is displayed, it is successful. You will receive an email from MuJoCo within 3 days. When you receive the email, the next step is.
Register Account number and Computer id The email should include your Account number. The Computer id is obtained using the get id file that is downloaded by clicking the blue letters in the image above. Example)
$ chmod +x getid_linux $ ./getid_linux ``` You can get the Computer id by executing the getid file, so copy and paste it and click Register computer. Then you will receive an email again. An activation key will be attached to this email, so put it in .mujoco. The procedure for updating is exactly the same.
[test.py]
1 import gym
2 import mujoco_py
3
4 env = gym.make('Humanoid-v2')
5 env.reset()
6 for _ in range(1000):
7 env.render()
8 env.step(env.action_space.sample())
When executed, the following screen will appear.
Now you can see if you can use mujoco!
Recommended Posts