70 auto currentPoseMsg = p->toPoseMsg();
74 <<
"current pose: " << currentPoseMsg);
83 <<
"Forcing initial straight motion orientation: " << currentPoseMsg.orientation);
86 tf2::Transform currentPose;
87 tf2::fromMsg(currentPoseMsg, currentPose);
89 tf2::Transform targetPose;
92 tf2::fromMsg(
goalPose_->pose, targetPose);
97 tf2::Transform forwardDeltaTransform;
98 forwardDeltaTransform.setIdentity();
101 targetPose = currentPose * forwardDeltaTransform;
108 <<
"No goal Pose or Distance is specified. Aborting. No action request is sent."
109 << currentPoseMsg.orientation);
116 goal.pose.header.frame_id = referenceFrame;
118 tf2::toMsg(targetPose, goal.pose.pose);
121 <<
" TARGET POSE FORWARD: " << goal.pose.pose);
124 geometry_msgs::msg::PoseStamped currentStampedPoseMsg;
125 currentStampedPoseMsg.header.frame_id = referenceFrame;
126 currentStampedPoseMsg.header.stamp =
129 tf2::toMsg(currentPose, currentStampedPoseMsg.pose);