20 tf::TransformListener tfListener;
22 tf::StampedTransform endEffectorInPivotFrame;
38 tf::StampedTransform endEffectorInPivotFrame;
40 tfListener.waitForTransform(pivotFrame, *
tipLink_, ros::Time(0), ros::Duration(10));
41 tfListener.lookupTransform(pivotFrame, *
tipLink_, ros::Time(0), endEffectorInPivotFrame);
44 this->
planePivotPose_.header.frame_id = endEffectorInPivotFrame.frame_id_;
48 catch (
const std::exception &e)
50 ROS_ERROR_STREAM(e.what() <<
". Attempt countdown: " << attempts);
geometry_msgs::PoseStamped planePivotPose_
virtual ~CbEndEffectorRotate()
virtual void onEntry() override
CbEndEffectorRotate(double deltaRadians, std::string tipLink="")
boost::optional< std::string > tipLink_
ClMoveGroup * movegroupClient_
moveit::planning_interface::MoveGroupInterface moveGroupClientInterface
void requiresClient(SmaccClientType *&storage)