Skip to content

Commit

Permalink
Merge pull request #96 from bit-pirate/hydro-devel
Browse files Browse the repository at this point in the history
prevents dynamic_reconfigure from overwritting update rate param on start-up
  • Loading branch information
davetcoleman committed Aug 1, 2013
2 parents 9d9e143 + 3bf7a82 commit 584c307
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 584c307

Please sign in to comment.