fix realtime rviz display

In realtime mode, rviz display stopped with the last waypoint and didn't
show the final scene.
This commit is contained in:
Robert Haschke 2018-06-10 22:49:25 +02:00
parent ba88c59201
commit be314905a9

View File

@ -99,7 +99,7 @@ public:
float getWayPointDurationFromPrevious(const IndexPair& idx_pair) const;
float getWayPointDurationFromPrevious(size_t index) const {
if (index >= steps_) return 0.0;
if (index >= steps_) return 0.1; // display time of last waypoint before switching to final scene
return getWayPointDurationFromPrevious(indexPair(index));
}
const moveit::core::RobotStatePtr& getWayPointPtr(const IndexPair& idx_pair) const;