Skip to content

Commit

Permalink
prevents dynamic_reconfigure from overwritting update rate param on s…
Browse files Browse the repository at this point in the history
…tart-up
  • Loading branch information
bit-pirate committed Aug 1, 2013
1 parent 9d9e143 commit 3bf7a82
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions gazebo_plugins/src/gazebo_ros_camera_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,12 @@ GazeboRosCameraUtils::GazeboRosCameraUtils()
void GazeboRosCameraUtils::configCallback(
gazebo_plugins::GazeboRosCameraConfig &config, uint32_t level)
{
ROS_INFO("Reconfigure request for the gazebo ros camera_: %s. New rate: %.2f",
this->camera_name_.c_str(), config.imager_rate);
this->parentSensor_->SetUpdateRate(config.imager_rate);
if (this->initialized_)
{
ROS_INFO("Reconfigure request for the gazebo ros camera_: %s. New rate: %.2f",
this->camera_name_.c_str(), config.imager_rate);
this->parentSensor_->SetUpdateRate(config.imager_rate);
}
}

////////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 3bf7a82

Please sign in to comment.