Skip to content
This repository has been archived by the owner. It is now read-only.

interrupt trajectory visualization on arrival of new display trajectory #612

merged 7 commits into from Nov 18, 2015


None yet
4 participants
Copy link

commented Sep 16, 2015

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.


This comment has been minimized.

Copy link

commented Sep 16, 2015

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.

rhaschke added some commits Sep 23, 2015

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

- 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
fixup! cleanup TrajectoryVisualization::update
only enter visualization loop when displaying_trajectory_message_ is defined

This comment has been minimized.

Copy link

commented Nov 18, 2015

Tested this - nice change!

sachinchitta added a commit that referenced this pull request Nov 18, 2015

Merge pull request #612 from ubi-agni/interrupt-traj-vis
interrupt trajectory visualization on arrival of new display trajectory

@sachinchitta sachinchitta merged commit e6f9852 into ros-planning:indigo-devel Nov 18, 2015

@rhaschke rhaschke deleted the ubi-agni:interrupt-traj-vis branch Nov 19, 2015


This comment has been minimized.

Copy link

commented Dec 3, 2015

this is great, thanks @rhaschke

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.