Skip to content
This repository has been archived by the owner on Nov 13, 2017. It is now read-only.

Set the start planning state as "current" after finish the execution of a trajectory #646

Open
beatrizleon opened this issue Feb 15, 2016 · 6 comments

Comments

@beatrizleon
Copy link

After executing a trajectory, if the user wants to plan a new trajectory, he needs to click on the GUI start planning state set as current, otherwise it takes the start state as the one for the previous trajectory.

Is this the desired behaviour or can it be improved so the start state state gets updated to the current state (or goal state) when a trajectory finish its execution?

@davetcoleman
Copy link
Member

I'm not sure, but it has advantages when you are trying to benchmark the same particular motion over and over

@alainsanguinetti
Copy link
Contributor

I think it is a desired behaviour.
If you look at move_action_capability.cpp in move_group package, you can see two different behaviour for plan and plan and execute.

@v4hn
Copy link
Contributor

v4hn commented Jul 8, 2016 via email

@rhaschke
Copy link
Contributor

rhaschke commented Jul 8, 2016

I suggest to disable the execution button, when the start state of a planned trajectory doesn't match the current state (anymore).

@v4hn
Copy link
Contributor

v4hn commented Jul 8, 2016

On Fri, Jul 08, 2016 at 04:23:03AM -0700, Robert Haschke wrote:

I suggest to disable the execution button, when the start state of a planned trajectory doesn't match the current state (anymore).

This is quite a confusing interface, unless you also add a notice on why execution is disabled.
+1 though, this is nice to have.

The more fundamental issue is that the option "" in the start-state menu is not always the current state (which is clearly what every user expects).
I'll try to look into this over the weekend.

@davetcoleman
Copy link
Member

There is already a check here in move_action_capability that replaces an outdated start state with the current start state when running "Plan And Execute". It also displays the message "Execution of motions should always start at the robot's current state. Ignoring the state supplied as start state in the motion planning request".

I think that, perhaps in addition to disabling the Execute GUI button, we implement that failsafe check properly on the move_group side for the execute button.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants