Skip to content

Commit

Permalink
Add planner info to comments (moveit#523)
Browse files Browse the repository at this point in the history
  • Loading branch information
Abishalini authored and rhaschke committed Mar 7, 2024
1 parent c41eb56 commit 3f2d24e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion core/src/storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,13 @@ void SolutionBase::toMsg(moveit_task_constructor_msgs::msg::Solution& msg, Intro
void SolutionBase::fillInfo(moveit_task_constructor_msgs::msg::SolutionInfo& info, Introspection* introspection) const {
info.id = introspection ? introspection->solutionId(*this) : 0;
info.cost = this->cost();
info.comment = this->comment();
if (!this->plannerId().empty() && !this->comment().empty()) {
info.comment = this->plannerId() + " : " + this->comment();
} else if (!this->plannerId().empty() && this->comment().empty()) {
info.comment = "Solution generated by " + this->plannerId();
} else {
info.comment = this->comment();
}
info.planner_id = this->plannerId();
const Introspection* ci = introspection;
info.stage_id = ci ? ci->stageId(this->creator()) : 0;
Expand Down

0 comments on commit 3f2d24e

Please sign in to comment.