Skip to content

Commit e011ef2

Browse files
authored
Merge pull request #239 from compas-dev/fix-tool-acm
Fix bug in add_attached_tool
2 parents 58be573 + f75a3a4 commit e011ef2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Unreleased
1616

1717
**Fixed**
1818

19+
* Fixed bug in ``add_attached_tool`` of ``PlanningScene``
20+
1921
**Deprecated**
2022

2123
**Removed**

src/compas_fab/robots/planning_scene.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,8 @@ def add_attached_tool(self):
366366
"""Add the robot's attached tool to the planning scene if tool is set."""
367367
self.ensure_client()
368368
if self.robot.attached_tool:
369-
self.add_attached_collision_mesh(self.robot.attached_tool.attached_collision_mesh)
369+
for acm in self.robot.attached_tool.attached_collision_meshes:
370+
self.add_attached_collision_mesh(acm)
370371

371372
def remove_attached_tool(self):
372373
"""Remove the robot's attached tool from the planning scene."""

0 commit comments

Comments
 (0)