54 msg.error_code = error_code_;
56 msg.trajectory.clear();
57 msg.description.clear();
58 msg.processing_time.clear();
62 for (std::size_t i = 0; i < trajectory_.size(); ++i)
64 if (trajectory_[i]->empty())
70 msg.group_name = trajectory_[i]->getGroupName();
72 msg.trajectory.resize(msg.trajectory.size() + 1);
73 trajectory_[i]->getRobotTrajectoryMsg(msg.trajectory.back());
74 if (description_.size() > i)
75 msg.description.push_back(description_[i]);
76 if (processing_time_.size() > i)
77 msg.processing_time.push_back(processing_time_[i]);
void robotStateToRobotStateMsg(const RobotState &state, moveit_msgs::msg::RobotState &robot_state, bool copy_attached_bodies=true)
Convert a MoveIt robot state to a robot state message.
void getMessage(moveit_msgs::msg::MotionPlanDetailedResponse &msg) const
robot_trajectory::RobotTrajectoryPtr trajectory_
void getMessage(moveit_msgs::msg::MotionPlanResponse &msg) const
moveit_msgs::msg::MoveItErrorCodes error_code_