Skip to content

Commit 9e47b10

Browse files
committed
add swift simulation
1 parent d91c159 commit 9e47b10

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

tests/fkineTestPybullet.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def pause(self, second):
5151
p.stepSimulation()
5252
time.sleep(0.01)
5353

54+
5455
physicsClient = p.connect(p.GUI)#or p.DIRECT for non-graphical version
5556
p.resetSimulation()
5657
p.setAdditionalSearchPath(pybullet_data.getDataPath()) #optionally

tests/fkineTestPybulletLite6.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ def pause(self, second):
6464

6565
planeId = p.loadURDF("plane.urdf")
6666
startPos = [0,0,0]
67-
robotPos = [0.5,1,0.63]
68-
duckPos = [0.5,0.2,0.68]
67+
robotPos = [0,0,0.63]
68+
duckPos = [0.15,-0.2,0.68]
6969
startOrientation = p.getQuaternionFromEuler([0,0,0])
7070
robotId = p.loadURDF("../rtb-data/rtbdata/xacro/ufactory_description/lite6/urdf/lite6.urdf",robotPos, startOrientation, useFixedBase = True)
7171
tableId = p.loadURDF("../urdf-object/table.urdf",startPos, startOrientation, useFixedBase = True)
@@ -87,18 +87,21 @@ def pause(self, second):
8787
position = np.zeros(p.getNumJoints(robotId))
8888
motors = range(p.getNumJoints(robotId))
8989

90-
"""positionX = [0.5, 0.2, 0.2]
91-
positionY = [0.2, 0.2, -0.2]
92-
positionZ = [0.5, 0.5, 0.5]"""
90+
positionX = [0.15, 0.15, 0.35]
91+
positionY = [-0.2, -0.2, 0.2]
92+
positionZ = [0.05, 0.4, 0.2]
93+
step = [500, 500, 500]
9394

94-
"""positionX = [0.1, 0.1, 0.1, 0.3, 0.5]
95+
"""
96+
positionX = [0.1, 0.1, 0.1, 0.3, 0.5]
9597
positionY = [0.1, 0.1, 0.3, 0.5, 0.5]
9698
positionZ = [0.1, 0.4, 0.4, 0.4, 0.4]"""
9799

100+
"""
98101
positionX = [0.1, 0.1, 0.1, 0.1, 0.1]
99102
positionY = [0.1, 0.1, 0.1, 0.1, 0.1]
100103
positionZ = [0.1, 0.25, 0.40, 0.55, 0.65]
101-
step = [500, 500, 500, 500, 500]
104+
step = [500, 500, 500, 500, 500]"""
102105

103106
control = RobotControl(0.01)
104107

0 commit comments

Comments
 (0)