SMACC
Loading...
Searching...
No Matches
Public Member Functions | List of all members
cl_move_group_interface::CbDetachObject Class Reference

#include <cb_detach_object.h>

Inheritance diagram for cl_move_group_interface::CbDetachObject:
Inheritance graph
Collaboration diagram for cl_move_group_interface::CbDetachObject:
Collaboration graph

Public Member Functions

virtual void onEntry () override
 
virtual void onExit () override
 
virtual void onEntry () override
 
virtual void onExit () override
 
- Public Member Functions inherited from smacc::ISmaccClientBehavior
 ISmaccClientBehavior ()
 
virtual ~ISmaccClientBehavior ()
 
ISmaccStateMachinegetStateMachine ()
 
std::string getName () const
 
template<typename SmaccClientType >
void requiresClient (SmaccClientType *&storage)
 
template<typename SmaccComponentType >
void requiresComponent (SmaccComponentType *&storage)
 
ros::NodeHandle getNode ()
 

Additional Inherited Members

- Protected Member Functions inherited from smacc::ISmaccClientBehavior
virtual void runtimeConfigure ()
 
virtual void onEntry ()
 
virtual void onExit ()
 
template<typename EventType >
void postEvent (const EventType &ev)
 
template<typename EventType >
void postEvent ()
 
ISmaccStategetCurrentState ()
 
virtual void executeOnEntry ()
 
virtual void executeOnExit ()
 
virtual void dispose ()
 

Detailed Description

Definition at line 15 of file cb_detach_object.h.

Member Function Documentation

◆ onEntry()

void cl_move_group_interface::CbDetachObject::onEntry ( )
overridevirtual

Reimplemented from smacc::SmaccClientBehavior.

Definition at line 12 of file cb_detach_object.cpp.

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 }
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)

References cl_move_group_interface::GraspingComponent::currentAttachedObjectName, cl_move_group_interface::ClMoveGroup::moveGroupClientInterface, cl_move_group_interface::ClMoveGroup::planningSceneInterface, smacc::ISmaccClientBehavior::requiresClient(), and smacc::ISmaccClientBehavior::requiresComponent().

Here is the call graph for this function:

◆ onExit()

void cl_move_group_interface::CbDetachObject::onExit ( )
overridevirtual

Reimplemented from smacc::SmaccClientBehavior.

Definition at line 26 of file cb_detach_object.cpp.

27 {
28 }

The documentation for this class was generated from the following files: