Skip to content

Commit

Permalink
Use trajectory execution info from parent only if controller list is …
Browse files Browse the repository at this point in the history
…empty (moveit#11)
  • Loading branch information
sea-bass authored Dec 7, 2022
1 parent 74ba680 commit d044f8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,9 @@ void ContainerBase::insert(Stage::pointer&& stage, int before) {
if (!stage)
throw std::runtime_error(name() + ": received invalid stage pointer");

stage->setTrajectoryExecutionInfo(this->trajectoryExecutionInfo());
if (stage->trajectoryExecutionInfo().controller_names.empty()) {
stage->setTrajectoryExecutionInfo(this->trajectoryExecutionInfo());
}

StagePrivate* impl = stage->pimpl();
impl->setParent(this);
Expand Down

0 comments on commit d044f8b

Please sign in to comment.