MUJOCO loadMJCF actuator control

Official Python bindings with a focus on reinforcement learning and robotics.
Post Reply
yashs2810
Posts: 1
Joined: Wed Apr 15, 2020 1:43 am

MUJOCO loadMJCF actuator control

Post by yashs2810 »

SnakeThree.xml
(2.27 KiB) Downloaded 412 times
I am trying to use the loadMJCF functionality of the PyBullet engine to load a 3 link snake robot in the pybullet environment.

The actuators are just the joint rot_2 and rot_3. The slide joints are not actuated. This is causing the snake robot to not move ahead in the simulation. But this does not happen when I use gym environment. Even though the slide joints are not actuated, the robot moves ahead. What changes do I need to do to make it run in pybullet?

I am attaching the XML file.

Thanks !
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA
Contact:

Re: MUJOCO loadMJCF actuator control

Post by Erwin Coumans »

Please share a minimal script you use to move your robot. Note that by default, all joints have joint motors with a velocity target of 0.
You may need to disable them:

Code: Select all

for j in range (p.getNumJoints(robot)):
  p.setJointMotorControl2(robot,j, p.VELOCITY_CONTROL, force=0)
Post Reply