Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trajectory slider plays for the previous goal when a plan for the new goal is unavailable #526

Closed
130s opened this issue Jun 13, 2017 · 4 comments

Comments

@130s
Copy link
Contributor

130s commented Jun 13, 2017

Thanks for the nice feature @Jntzko @v4hn #491!

Description

Pressing Play button on Trajectory Slider panel shows older trajectory, when a plan for the current goal is not available.

Without knowing if this behavior is intended, this can be simply confusing.

Your environment

  • ROS Distro: [Indigo]
  • OS Version: Ubuntu 14.04
  • Build
$ dpkg -p ros-indigo-moveit-ros-visualization |grep Ver                                                 
Version: 0.7.10-0trusty-20170607-162519-0800

Steps to reproduce

roslaunch pr2_moveit_config demo.launch

Using right hand eef,

  1. Move it anywhere, then Plan and Execute.
  2. Move eef anywhere. Don't run Plan.
  3. "Play" on Trajectory Slider.

Expected behaviour

Show waypoints along the trajectory for the current goal.
UPDATE 20170617 Do not play any trajectory when a planning with the goal currently set failed.

Actual behaviour

Explained in Description section.

@v4hn
Copy link
Contributor

v4hn commented Jun 13, 2017

Weeeell... I can see how this can be confusing.
Our MoveIt Motion Planning Panel only imports the Trajectory visualization display and uses it "as is".
This display caches the trajectory it received most recently and presents it to the user.
So as long as no new trajectory - produced by successful planning - was received the old one is still there.
I believe the behavior you noticed was the same with the "loop animation" mode before the panel, so this is not actually something new.

Knowing the internal structure of the plugins, the current behavior makes sense to me.
But maybe we want to adjust this?

@130s
Copy link
Contributor Author

130s commented Jun 13, 2017

Would there be any issue when Play on Trajectory Slider panel gets pressed then planning internally runs? Assumption: I can't think of any situations where you want to see a trajectory from the goal previously set while a new goal is already set.

@v4hn
Copy link
Contributor

v4hn commented Jun 14, 2017 via email

@130s
Copy link
Contributor Author

130s commented Jun 14, 2017

We wanted the user to be able to re"Play" the current trajectory over and over again (as a more controlled version of "loop animation"), so the play should not trigger planning.

That makes sense.

I suppose we could remove the current trajectory whenever the user pressed "Plan" or "Plan&Execute", so that there is no plan anymore when planning fails. Would that help?

+1
Is this something that someone on your end can work on (hopefully very quickly more quickly than others since it's you guys that added this feature)? Otherwise we'll see if someone incl. me in the community will have time to tackle.

v4hn added a commit to v4hn/moveit that referenced this issue Jun 16, 2017
It can be confusing to see the old trajectory even though
the user already requested a new plan.

This is especially annoying in case the second planning request fails!

Fixes moveit#526
v4hn added a commit to v4hn/moveit that referenced this issue Jun 16, 2017
It can be confusing to see the old trajectory even though
the user already requested a new plan.

This is especially annoying in case the second planning request fails!

Fixes moveit#526
@130s 130s closed this as completed in 46b0ef0 Jun 20, 2017
130s pushed a commit that referenced this issue Jun 20, 2017
…://github.com/ros-planning/moveit/pull/531>`_)

It can be confusing to see the old trajectory even though
the user already requested a new plan.

This is especially annoying in case the second planning request fails!

Fixes #526

disable slider panel state appropriately on 0 waypoint update

[moveit_ros/visualization] C++ format glitch (see https://travis-ci.org/ros-planning/moveit/jobs/244899864#L163).
JafarAbdi pushed a commit to JafarAbdi/moveit that referenced this issue Mar 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants