From a555fee4f6fd17e981069e9baaf989749684fb21 Mon Sep 17 00:00:00 2001 From: NiranthS <44475481+NiranthS@users.noreply.github.com> Date: Thu, 23 Apr 2020 23:07:26 +0530 Subject: [PATCH] Update forcetorquesensor.py --- examples/pybullet/examples/forcetorquesensor.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/pybullet/examples/forcetorquesensor.py b/examples/pybullet/examples/forcetorquesensor.py index 5293ab1e1..5b7e3987e 100644 --- a/examples/pybullet/examples/forcetorquesensor.py +++ b/examples/pybullet/examples/forcetorquesensor.py @@ -1,5 +1,8 @@ import pybullet as p -p.connect(p.DIRECT) +import pybullet_data + +p.connect(p.GUI) +p.setAdditionalSearchPath(pybullet_data.getDataPath()) hinge = p.loadURDF("hinge.urdf") print("mass of linkA = 1kg, linkB = 1kg, total mass = 2kg")