Skip to content

Commit

Permalink
remove frequent call of param; this slows down the simulation greatly!!
Browse files Browse the repository at this point in the history
  • Loading branch information
weijia-yao committed Aug 24, 2016
1 parent fe20c7e commit 29b8132
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/nubot_simulation/nubot_gazebo/plugins/nubot_gazebo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,6 @@ void NubotGazebo::model_states_CB(const gazebo_msgs::ModelStates::ConstPtr& _msg

bool NubotGazebo::update_model_info(void)
{
rosnode_->param("/nubot/distance_thres", dribble_distance_thres_, 0.50);
rosnode_->param("/nubot/angle_thres", dribble_angle_thres_, 30.0);

if(ModelStatesCB_flag_)
{
receive_sim_time_ = world_->GetSimTime();
Expand Down

0 comments on commit 29b8132

Please sign in to comment.