Skip to content

Commit 13bcc9b

Browse files
committed
Cleanup
1 parent 985969e commit 13bcc9b

22 files changed

+9
-75642
lines changed

examples/bookshelf.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
)
112112

113113
s00 = rp.Shape.Sphere(
114-
radius=0.05
114+
radius=0.0001
115115
)
116116

117117
se = rp.Shape.Sphere(
@@ -235,7 +235,7 @@ def link_calc(link, col, ob, q):
235235
dp = nh @ ob.v
236236
l_Ain = np.zeros((1, 13))
237237
l_Ain[0, :n] = nh @ Je
238-
l_bin = (5 * (d - ds) / (di - ds)) + dp
238+
l_bin = (1 * (d - ds) / (di - ds)) + dp
239239
else:
240240
l_Ain = None
241241
l_bin = None
@@ -265,7 +265,7 @@ def servo(q0, q1, it):
265265

266266
while not arrived and i < it:
267267
q = r.q[i0:i1]
268-
v, arrived = rp.p_servo(r.fkine_graph(q, l0, l1), Tep, 1, 0.25)
268+
v, arrived = rp.p_servo(r.fkine_graph(q, l0, l1), Tep, 1, 0.05)
269269
se._wT = l1._fk
270270

271271
eTep = r.fkine_graph(q, l0, l1).inv() * Tep
@@ -348,7 +348,7 @@ def servo(q0, q1, it):
348348
it_max = 20000
349349

350350
probs = 45
351-
j = 20
351+
j = 0
352352

353353
for i in range(j, probs):
354354
print(problems[i, 0], problems[i, 1])
@@ -359,6 +359,8 @@ def servo(q0, q1, it):
359359
j += 1
360360
print(j)
361361

362+
time.sleep(2)
363+
362364
print(j)
363365

364366

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy