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
  • Loading branch information
sjahr authored Oct 18, 2023
1 parent 65f264e commit 883b49a
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 @@ -283,7 +283,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 883b49a

Please sign in to comment.