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]);