61 if (graspingComponent->currentAttachedObjectName)
65 "[CbDetachObject] Detaching object: " << *(graspingComponent->currentAttachedObjectName));
67 auto & planningSceneInterface = cpMoveGroup->planningSceneInterface;
68 auto res = cpMoveGroup->moveGroupClientInterface->detachObject(
69 *(graspingComponent->currentAttachedObjectName));
71 planningSceneInterface->removeCollisionObjects(
72 {*(graspingComponent->currentAttachedObjectName)});
76 RCLCPP_INFO(
getLogger(),
"[CbDetachObject] Detach succeeded");
81 RCLCPP_ERROR(
getLogger(),
"[CbDetachObject] Detach failed");
87 RCLCPP_ERROR(
getLogger(),
"[CbDetachObject] No object currently attached");