Skip to content

Commit b69c1d2

Browse files
committed
stderr fix
1 parent 8fcb457 commit b69c1d2

File tree

5 files changed

+51
-20
lines changed

5 files changed

+51
-20
lines changed

examples/robots.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@
4747
wx250s = rp.models.wx250s()
4848
wx250s.base = sm.SE3.Tx(0.7) * sm.SE3.Ty(2.4)
4949

50-
# Kinova robots
51-
j2n4s300 = rp.models.j2n4s300()
52-
j2n4s300.base = sm.SE3.Tx(1.2) * sm.SE3.Ty(0)
53-
j2n4s300.q = j2n4s300.qr
50+
# # Kinova robots
51+
# j2n4s300 = rp.models.j2n4s300()
52+
# j2n4s300.base = sm.SE3.Tx(1.2) * sm.SE3.Ty(0)
53+
# j2n4s300.q = j2n4s300.qr
5454

5555
# Launch Sim
5656
env = rp.backend.Swift()
@@ -60,17 +60,17 @@
6060
env.add(ur3)
6161
env.add(ur5)
6262
env.add(ur10)
63-
# env.add(puma560)
64-
# env.add(panda)
63+
env.add(puma560)
64+
env.add(panda)
6565

66-
# env.add(px100)
67-
# env.add(px150)
68-
# env.add(rx150)
69-
# env.add(rx200)
70-
# env.add(vx300)
71-
# env.add(vx300s)
72-
# env.add(wx200)
73-
# env.add(wx250)
74-
# env.add(wx250s)
66+
env.add(px100)
67+
env.add(px150)
68+
env.add(rx150)
69+
env.add(rx200)
70+
env.add(vx300)
71+
env.add(vx300s)
72+
env.add(wx200)
73+
env.add(wx250)
74+
env.add(wx250s)
7575

7676
# env.add(j2n4s300)

examples/test.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,20 @@
2121

2222
# Add the puma to the simulator
2323
env.add(puma)
24+
25+
# Tep = puma.fkine() * sm.SE3.Tz(0.1)
26+
27+
# arrived = False
28+
29+
# dt = 0.05
30+
31+
# while not arrived:
32+
33+
# start = time.time()
34+
# v, arrived = rtb.p_servo(puma.fkine(), Tep, 0.1)
35+
# puma.qd = np.linalg.pinv(puma.jacobe()) @ v
36+
# env.step(50)
37+
# stop = time.time()
38+
39+
# if stop - start < dt:
40+
# time.sleep(dt - (stop - start))

roboticstoolbox/backend/VPython/stl.py

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,24 @@
55

66
from vpython import vec, vertex, color, triangle, compound
77
from roboticstoolbox.backend.VPython.common_functions import *
8-
# from roboticstoolbox.tools.stdout_supress import stdout_supress
9-
# with stdout_supress():
10-
from stl import mesh
8+
from io import StringIO
9+
10+
try:
11+
from roboticstoolbox.tools.stdout_supress import pipes
12+
except BaseException: # pragma nocover
13+
from contextlib import contextmanager
14+
15+
@contextmanager
16+
def pipes(stdout=None, stderr=None):
17+
pass
18+
19+
_out = StringIO()
20+
_err = StringIO()
21+
try:
22+
with pipes(stdout=_out, stderr=_err):
23+
from stl import mesh
24+
except BaseException: # pragma nocover
25+
from stl import mesh
1126

1227

1328
def import_object_from_numpy_stl(filename, scene):

roboticstoolbox/models/xacro/franka_description/robots/hand.xacro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
</link>
6262
<link name="${ns}_rightfinger">
6363
<visual>
64-
<origin xyz="0 0 0" rpy="0 0 ${pi}"/>
6564
<geometry>
6665
<mesh filename="package://franka_description/meshes/visual/finger.dae"/>
6766
</geometry>

roboticstoolbox/robot/Shape.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def __init__(
5959
self._wT = SE3()
6060
self.co = None
6161
self.base = base
62-
self.wT = None
62+
# self.wT = None
6363
self.scale = scale
6464
self.radius = radius
6565
self.length = length

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