56 msg.trajectory.clear();
57 msg.description.clear();
58 msg.processing_time.clear();
62 for (std::size_t i = 0; i <
trajectory_.size(); ++i)
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]);
robot_trajectory::RobotTrajectoryPtr trajectory_
void getMessage(moveit_msgs::MotionPlanDetailedResponse &msg) const
moveit_msgs::MoveItErrorCodes error_code_
void getMessage(moveit_msgs::MotionPlanResponse &msg) const
void robotStateToRobotStateMsg(const RobotState &state, moveit_msgs::RobotState &robot_state, bool copy_attached_bodies=true)
Convert a MoveIt! robot state to a robot state message.