SMACC
Loading...
Searching...
No Matches
cb_detach_object.cpp
Go to the documentation of this file.
1/*****************************************************************************************************************
2 * ReelRobotix Inc. - Software License Agreement Copyright (c) 2018-2020
3 * Authors: Pablo Inigo Blasco, Brett Aldrich
4 *
5 ******************************************************************************************************************/
6
9
11{
13 {
15 this->requiresComponent(graspingComponent);
16
18 this->requiresClient(moveGroupClient);
19
20 auto &planningSceneInterface = moveGroupClient->planningSceneInterface;
21
22 moveGroupClient->moveGroupClientInterface.detachObject(*(graspingComponent->currentAttachedObjectName));
23 planningSceneInterface.removeCollisionObjects({*(graspingComponent->currentAttachedObjectName)});
24 }
25
27 {
28 }
29} // namespace cl_move_group_interface
moveit::planning_interface::PlanningSceneInterface planningSceneInterface
Definition: cl_movegroup.h:76
moveit::planning_interface::MoveGroupInterface moveGroupClientInterface
Definition: cl_movegroup.h:74
boost::optional< std::string > currentAttachedObjectName
void requiresComponent(SmaccComponentType *&storage)
void requiresClient(SmaccClientType *&storage)