mirror of
https://github.com/moveit/moveit_task_constructor.git
synced 2025-11-04 14:49:57 +08:00
Wrapper::compute: return true if new solutions are found
This commit is contained in:
parent
38f7696acf
commit
57cd11e3a9
@ -593,7 +593,9 @@ bool Wrapper::canCompute() const
|
|||||||
|
|
||||||
bool Wrapper::compute()
|
bool Wrapper::compute()
|
||||||
{
|
{
|
||||||
return wrapped()->pimpl()->compute();
|
size_t num_before = numSolutions();
|
||||||
|
wrapped()->pimpl()->compute();
|
||||||
|
return numSolutions() > num_before;
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t Wrapper::numSolutions() const
|
size_t Wrapper::numSolutions() const
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user