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

interrupt trajectory visualization on arrival of new display trajectory #612

Merged
merged 7 commits into from
Nov 18, 2015
Merged

interrupt trajectory visualization on arrival of new display trajectory #612

merged 7 commits into from
Nov 18, 2015

Conversation

rhaschke
Copy link
Contributor

A failed planning request often results in a rather long display trajectory. However, the next trajectory was only displayed, when the current one has finished.
The first patch immediately displays this trajectory when the planner was invoked from rviz - for responsive user interaction.
The second patch introduces a new display property to allow the user to switch on/off this interruption behavior in all other cases too.

@rethink-imcmahon
Copy link

I'm thrilled you've addressed this issue, @rhaschke! Failed planning attempts meant wasting 20 seconds while the robot flails wildly in RViz...

Not having worked on the internals of RViz or MoveIt before, I will defer making a technical review to others that have more experience with them. But with just a cursory glance, I think these changes look good. I very much want to see this merged.

simplified code to switch to new trajectory / start over animation in loop mode
- TrajectoryVisualization::update() switches to new trajectory
  automatically when it has finished displaying the old one
- TrajectoryVisualization::interruptCurrentDisplay() might interrupt
  this newly started trajectory

consequences:
- protect switching of trajectory with mutex
- interrupt only if trajectory display progressed past first waypoint
- removed obsolete signal timeToShowNewTrail:
  update() automatically switches and updates trail in sync
only enter visualization loop when displaying_trajectory_message_ is defined
@sachinchitta
Copy link
Contributor

Tested this - nice change!

sachinchitta added a commit that referenced this pull request Nov 18, 2015
interrupt trajectory visualization on arrival of new display trajectory
@sachinchitta sachinchitta merged commit e6f9852 into moveit:indigo-devel Nov 18, 2015
@rhaschke rhaschke deleted the interrupt-traj-vis branch November 19, 2015 20:35
@davetcoleman
Copy link
Member

this is great, thanks @rhaschke

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

Successfully merging this pull request may close these issues.

None yet

4 participants