27#include <geometry_msgs/msg/pose_stamped.hpp>
34 geometry_msgs::msg::PoseStamped
pose;
56 RCLCPP_INFO(
getLogger(),
"[CbMoveToPose] no pose given: idle");
61 RCLCPP_ERROR(
getLogger(),
"[CbMoveToPose] the client has no CpMotionPlanner");
70 const std::optional<std::string> tipLink =
71 params_->tipLink.empty() ? std::nullopt : std::optional<std::string>(
params_->tipLink);
76 RCLCPP_WARN(
getLogger(),
"[CbMoveToPose] no plan: %s", planned.errorMessage.c_str());
81 bool executed =
false;
91 moveit::core::MoveItErrorCode::SUCCESS;
100 RCLCPP_WARN(
getLogger(),
"[CbMoveToPose] the execution failed");
CbMoveToPose(const MoveToPoseParams ¶ms)
void setParams(const MoveToPoseParams ¶ms)
std::optional< MoveToPoseParams > params_
CpTrajectoryExecutor * cpTrajectoryExecutor_
CpMotionPlanner * cpMotionPlanner_
CpMoveGroupInterface * cpMoveGroup_
PlanningResult planToPose(const geometry_msgs::msg::PoseStamped &target, const std::optional< std::string > &tipLink=std::nullopt, const PlanningOptions &options={})
Plan to a Cartesian pose.
std::shared_ptr< moveit::planning_interface::MoveGroupInterface > moveGroupClientInterface
ExecutionResult executePlan(const moveit::planning_interface::MoveGroupInterface::Plan &plan, const ExecutionOptions &options={})
Execute a motion plan synchronously.
std::string getName() const
virtual rclcpp::Logger getLogger() const
Configuration options for trajectory execution.
std::optional< std::string > trajectoryName
double accelerationScaling
geometry_msgs::msg::PoseStamped pose
Configuration options for motion planning.
std::optional< double > maxVelocityScaling
std::optional< double > maxAccelerationScaling
std::optional< double > planningTime