Skip to content

Commit

Permalink
Added definition of getStateUpdateFrequency. (#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbbg authored and davetcoleman committed Mar 12, 2017
1 parent eac013b commit d18fc72
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -304,7 +304,13 @@ class PlanningSceneMonitor : private boost::noncopyable
void setStateUpdateFrequency(double hz);

/** @brief Get the maximum frequency (Hz) at which the current state of the planning scene is updated.*/
double getStateUpdateFrequency();
double getStateUpdateFrequency() const
{
if (!dt_state_update_.isZero())
return 1.0 / dt_state_update_.toSec();
else
return 0.0;
}

/** @brief Start the scene monitor
* @param scene_topic The name of the planning scene topic
Expand Down

0 comments on commit d18fc72

Please sign in to comment.