@@ -82,7 +82,7 @@ def __init__(self, model):
8282 def attached_tool_model (self ):
8383 """
8484 For backwards compatibility. Returns the tool attached to the first end effector link or,
85- if not availabel , the first tool from the dictionary.
85+ if not available , the first tool from the dictionary.
8686 Returns None if no tool are attached.
8787
8888 Returns
@@ -134,6 +134,8 @@ def attach_tool_model(self, tool_model):
134134
135135 def detach_tool_model (self , tool_model = None ):
136136 """
137+ Detach tool_model from this robot model.
138+ If tool_model is None, all attached tools are detached.
137139
138140 Parameters
139141 ----------
@@ -143,9 +145,7 @@ def detach_tool_model(self, tool_model=None):
143145 """
144146 if tool_model :
145147 del self .attached_tool_models [tool_model .link_name ]
146- print ("DEBUG! removed tool: {}" .format (tool_model ))
147148 else :
148- print ("DEBUG!" )
149149 self .attached_tool_models .clear ()
150150
151151 def attach_mesh (self , mesh , name , link = None , frame = None ):
@@ -332,7 +332,7 @@ def scale_link(self, link, transformation):
332332 self ._scale_link_helper (link , transformation )
333333
334334 for tool in self .attached_tool_models .values ():
335- self ._scale_link_helper (tool , transformation )
335+ self ._scale_link_helper (tool . root , transformation )
336336
337337 def _scale_link_helper (self , link , transformation ):
338338 for item in itertools .chain (link .visual , link .collision ):
0 commit comments