mirror of
https://github.com/moveit/moveit_task_constructor.git
synced 2025-09-27 00:29:13 +08:00
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:
parent
ba88c59201
commit
be314905a9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user