missed a spot

This commit is contained in:
Josh Faust 2010-02-09 06:35:16 +00:00
parent ff404880a3
commit e89715c3fb
1 changed files with 1 additions and 2 deletions

View File

@ -394,8 +394,7 @@ void LatencyTest::sendCallback(const LatencyMessageConstPtr& msg, ros::Publisher
thread_result_->latencies.push_back(msg->receipt_time - msg->publish_time);
++thread_result_->message_count;
LatencyMessagePtr reply(new LatencyMessage);
*reply = *msg;
LatencyMessagePtr reply = boost::const_pointer_cast<LatencyMessage>(msg);
reply->publish_time = ros::WallTime::now().toSec();
++reply->count;