42 moveit_msgs::msg::CollisionObject targetCollisionObject;
48 targetCollisionObject.operation = moveit_msgs::msg::CollisionObject::ADD;
49 targetCollisionObject.header.stamp =
getNode()->now();
58 RCLCPP_INFO_STREAM(
getLogger(),
"[" <<
getName() <<
"] Grasping objectfound. attach request.");
65 getLogger(),
"[" <<
getName() <<
"] Grasping object was not found. Ignoring attach request.");
virtual void onEntry() override
std::string targetObjectName_
virtual void onExit() override
std::shared_ptr< moveit::planning_interface::MoveGroupInterface > moveGroupClientInterface
std::shared_ptr< moveit::planning_interface::PlanningSceneInterface > planningSceneInterface
std::optional< std::string > currentAttachedObjectName
bool getGraspingObject(std::string name, moveit_msgs::msg::CollisionObject &object)
std::vector< std::string > fingerTipNames
std::string getName() const
virtual rclcpp::Logger getLogger() const
virtual rclcpp::Node::SharedPtr getNode() const
void requiresClient(SmaccClientType *&storage)
void requiresComponent(SmaccComponentType *&storage, bool throwExceptionIfNotExist=false)