Fix Duration:sleeps that should have been WallDuration::sleeps in sim_time_test

This commit is contained in:
Josh Faust 2009-10-01 20:01:05 +00:00
parent 17f548365b
commit b67232995b
1 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ protected:
pub_ = nh_.advertise<roslib::Time>("/time", 1);
while (pub_.getNumSubscribers() == 0)
{
ros::Duration(0.01).sleep();
ros::WallDuration(0.01).sleep();
}
}
@ -109,7 +109,7 @@ protected:
pub_ = nh_.advertise<roslib::Clock>("/clock", 1);
while (pub_.getNumSubscribers() == 0)
{
ros::Duration(0.01).sleep();
ros::WallDuration(0.01).sleep();
}
}