mirror of
https://github.com/moveit/moveit_task_constructor.git
synced 2025-11-04 14:49:57 +08:00
allow wrappers to use CostTerm
This commit is contained in:
parent
56268cb6cc
commit
a15204b40b
@ -81,7 +81,7 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
ContainerBase(ContainerBasePrivate* impl);
|
ContainerBase(ContainerBasePrivate* impl);
|
||||||
|
|
||||||
private:
|
/// most containers should only use setCostTransform and leave the costs to their children
|
||||||
using Stage::setCostTerm;
|
using Stage::setCostTerm;
|
||||||
};
|
};
|
||||||
std::ostream& operator<<(std::ostream& os, const ContainerBase& stage);
|
std::ostream& operator<<(std::ostream& os, const ContainerBase& stage);
|
||||||
@ -227,6 +227,9 @@ public:
|
|||||||
bool canCompute() const override;
|
bool canCompute() const override;
|
||||||
void compute() override;
|
void compute() override;
|
||||||
|
|
||||||
|
// Wrappers sometimes do the real work (e.g., IK), so they can specify costs
|
||||||
|
using Stage::setCostTerm;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
WrapperBase(WrapperBasePrivate* impl, Stage::pointer&& child = Stage::pointer());
|
WrapperBase(WrapperBasePrivate* impl, Stage::pointer&& child = Stage::pointer());
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user