45 tf2_ros::Buffer tfBuffer(
getNode()->get_clock());
46 tf2_ros::TransformListener tfListener(tfBuffer);
48 tf2::Stamped<tf2::Transform> endEffectorInPivotFrame;
58 "[" <<
getName() <<
"] tip unspecified, using default end effector: " << *
tipLink_);
68 tf2::Stamped<tf2::Transform> endEffectorInPivotFrame;
71 tfBuffer.lookupTransform(pivotFrameName, *
tipLink_, rclcpp::Time(), rclcpp::Duration(10s)),
72 endEffectorInPivotFrame);
75 this->
planePivotPose_.header.frame_id = endEffectorInPivotFrame.frame_id_;
77 rclcpp::Time(endEffectorInPivotFrame.stamp_.time_since_epoch().count());
80 catch (
const std::exception & e)
82 RCLCPP_ERROR_STREAM(
getLogger(), e.what() <<
". Attempt countdown: " << attempts);
83 rclcpp::Duration(500ms);
91 getLogger(),
"[" <<
getName() <<
"] calling base CbCircularPivotMotion::onEntry");