@@ -80,13 +80,6 @@ def __init__(self, robot_name=None):
80
80
self .smoother = self .retimer
81
81
self .affine_retimer = OpenRAVEAffineRetimer ()
82
82
83
- # Since we don't want to endlessly create postprocessing environments,
84
- # we maintain a map that uniquely associates each OpenRAVE environment
85
- # with a given postprocessing environment. This way, if we re-clone
86
- # into a previously used environment, we will not create a new one.
87
- self ._postprocess_env = Robot ._postprocess_envs [
88
- openravepy .RaveGetEnvironmentId (self .GetEnv ())]
89
-
90
83
def __dir__ (self ):
91
84
# We have to manually perform a lookup in InstanceDeduplicator because
92
85
# __methods__ bypass __getattribute__.
@@ -300,8 +293,15 @@ def PostProcessPath(self, path,
300
293
logger .debug ('Detected "%s" tag on trajectory: Setting smooth'
301
294
' = True' , Tags .SMOOTH )
302
295
296
+ # Since we don't want to endlessly create postprocessing environments,
297
+ # we maintain a map that uniquely associates each OpenRAVE environment
298
+ # with a given postprocessing environment. This way, if we re-clone
299
+ # into a previously used environment, we will not create a new one.
300
+ postprocess_env = Robot ._postprocess_envs [
301
+ openravepy .RaveGetEnvironmentId (self .GetEnv ())]
302
+
303
303
with Clone (self .GetEnv (),
304
- clone_env = self . _postprocess_env ) as cloned_env :
304
+ clone_env = postprocess_env ) as cloned_env :
305
305
cloned_robot = cloned_env .Cloned (self )
306
306
307
307
# Planners only operate on the active DOFs. We'll set any DOFs
0 commit comments