Update quadruped.py

This commit is contained in:
NiranthS
2020-04-23 23:25:26 +05:30
committed by GitHub
parent 598bb20674
commit c702f5ac4a
+4
View File
@@ -1,6 +1,9 @@
import pybullet as p
import time
import math
import pybullet_data
def drawInertiaBox(parentUid, parentLinkIndex, color):
@@ -128,6 +131,7 @@ if (physId < 0):
p.connect(p.GUI)
#p.resetSimulation()
p.setAdditionalSearchPath(pybullet_data.getDataPath())
angle = 0 # pick in range 0..0.2 radians
orn = p.getQuaternionFromEuler([0, angle, 0])
p.loadURDF("plane.urdf", [0, 0, 0], orn)