mirror of
https://github.com/moveit/moveit_task_constructor.git
synced 2025-11-04 14:49:57 +08:00
Explicitly instantiate PropagatingEitherWay::send<> templates (#246)
Otherwise compiler was optimizing (inlining) them away.
This commit is contained in:
parent
f59e5170fb
commit
f2958a4a0b
@ -578,6 +578,11 @@ template <Interface::Direction dir>
|
||||
void PropagatingEitherWay::send(const InterfaceState& start, InterfaceState&& end, SubTrajectory&& trajectory) {
|
||||
pimpl()->send<dir>(start, std::move(end), std::make_shared<SubTrajectory>(std::move(trajectory)));
|
||||
}
|
||||
// Explicit template instantiation is required. The compiler, otherwise, might just inline them.
|
||||
template void PropagatingEitherWay::send<Interface::FORWARD>(const InterfaceState& start, InterfaceState&& end,
|
||||
SubTrajectory&& trajectory);
|
||||
template void PropagatingEitherWay::send<Interface::BACKWARD>(const InterfaceState& start, InterfaceState&& end,
|
||||
SubTrajectory&& trajectory);
|
||||
|
||||
template <Interface::Direction dir>
|
||||
void PropagatingEitherWay::computeGeneric(const InterfaceState& start) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user