mirror of
https://github.com/moveit/moveit_task_constructor.git
synced 2025-11-04 14:49:57 +08:00
Introspection: start solution id at index 1
... allowing 0 to have special meaning "invalid"
This commit is contained in:
parent
46af6a28da
commit
e52dc8db11
@ -146,7 +146,7 @@ uint32_t Introspection::stageId(const Stage* const s) const
|
||||
|
||||
uint32_t Introspection::solutionId(const SolutionBase& s)
|
||||
{
|
||||
auto result = impl->id_solution_bimap_.left.insert(std::make_pair(impl->id_solution_bimap_.size(), &s));
|
||||
auto result = impl->id_solution_bimap_.left.insert(std::make_pair(1 + impl->id_solution_bimap_.size(), &s));
|
||||
return result.first->first;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user