Skip to content

MTC near-offline planning and online execution without re-planning. #659

Answered by rhaschke
jakobbak asked this question in Q&A
Discussion options

You must be logged in to vote

Indeed, you should instantiate 4 separate MTC tasks and one additional to move from start to home.
A solution's task is intended to be executed entirely, not partially.

Is there a way to pick one of the other solutions by name or number?
I realise my limited experience with STL shines through here, but I tried using *task_.solutions().find("Pick Record from Conveyor") for example, but encounter compilation errors.

task_.solutions() returns a vector-like object, not a map. Hence you can refer to solutions via task_.solutions().front(), task_.solutions()[0], task_.solutions()[1], etc. However, solutions are always sorted by cost and you want to pick the most cost-effective solution, i.e. …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jakobbak
Comment options

Answer selected by jakobbak
# for free to join this conversation on GitHub. Already have an account? # to comment
Category
Q&A
Labels
None yet
2 participants