@@ -18,15 +18,15 @@ LatencyWrapper::~LatencyWrapper() {
1818 // TODO Auto-generated destructor stub
1919}
2020
21- void LatencyWrapper::copyStats (const am_utils ::LatencyHeader& header,
21+ void LatencyWrapper::copyStats (const brain_box_msgs ::LatencyHeader& header,
2222 const ros::Time& stamp) {
2323 // first copy string of existing stats
2424 header_ = header;
2525// send_stats_updated_ = false;
2626 setLastMessageStamp (stamp);
2727}
2828
29- void LatencyWrapper::updateRecvStats (const am_utils ::LatencyHeader& header,
29+ void LatencyWrapper::updateRecvStats (const brain_box_msgs ::LatencyHeader& header,
3030 const ros::Time& stamp) {
3131 // first copy string of existing stats
3232 header_ = header;
@@ -37,7 +37,7 @@ void LatencyWrapper::updateRecvStats(const am_utils::LatencyHeader& header,
3737 updateStats (receive_stats_, last_recv_epoch_, stamp);
3838
3939 // Add them to the received header
40- am_utils ::Latency lt;
40+ brain_box_msgs ::Latency lt;
4141 receive_stats_.setLatency (lt);
4242 lt.send = false ;
4343 lt.node_id = node_id_;
@@ -47,7 +47,7 @@ void LatencyWrapper::updateRecvStats(const am_utils::LatencyHeader& header,
4747void LatencyWrapper::printStats (std::string prefix) {
4848 printf (" %s\n " , prefix.c_str ());
4949 int i = 0 ;
50- for (std::vector<am_utils ::Latency>::iterator it = header_.latency .begin ();
50+ for (std::vector<brain_box_msgs ::Latency>::iterator it = header_.latency .begin ();
5151 it != header_.latency .end (); it++)
5252 {
5353 printf (" %d: node_id[%u] send[%s] current[%0.4f] min[%0.4f] max[%0.4f] avg[%0.4f]\n " , i++,
@@ -96,7 +96,7 @@ void LatencyWrapper::updateSendStats(const ros::Time& stamp) {
9696 else
9797 {
9898 // Add a new one to the header_
99- am_utils ::Latency lt;
99+ brain_box_msgs ::Latency lt;
100100 send_stats_.setLatency (lt);
101101 lt.send = true ;
102102 lt.node_id = node_id_;
@@ -110,11 +110,11 @@ void LatencyWrapper::subscribe(std::string topic, PoseStamped_Func callback) {
110110 sub_topic_ = topic + " _latency" ;
111111 ROS_INFO (" LATENCY: SUBSCRIBING TO topic[%s]" , sub_topic_.c_str ());
112112 pose_stamped_cb_ = callback;
113- sub_ = nh_->subscribe <am_utils ::Latency_PoseStamped>(
113+ sub_ = nh_->subscribe <brain_box_msgs ::Latency_PoseStamped>(
114114 sub_topic_, 10 , &LatencyWrapper::poseStamped_CB, this );
115115}
116116void LatencyWrapper::poseStamped_CB (
117- const am_utils ::Latency_PoseStamped::ConstPtr& msg) {
117+ const brain_box_msgs ::Latency_PoseStamped::ConstPtr& msg) {
118118 // update the stats
119119 updateRecvStats (msg->header , msg->msg .header .stamp );
120120
@@ -127,11 +127,11 @@ void LatencyWrapper::subscribe(std::string topic, PoseWithCovarianceStamped_Func
127127 sub_topic_ = topic + " _latency" ;
128128// ROS_INFO("LATENCY: SUBSCRIBING TO topic[%s]", sub_topic_.c_str());
129129 pose_with_covariance_stamped_cb_ = callback;
130- sub_ = nh_->subscribe <am_utils ::Latency_PoseWithCovarianceStamped>(
130+ sub_ = nh_->subscribe <brain_box_msgs ::Latency_PoseWithCovarianceStamped>(
131131 sub_topic_, 10 , &LatencyWrapper::poseWithCovarianceStamped_CB, this );
132132}
133133void LatencyWrapper::poseWithCovarianceStamped_CB (
134- const am_utils ::Latency_PoseWithCovarianceStamped::ConstPtr& msg) {
134+ const brain_box_msgs ::Latency_PoseWithCovarianceStamped::ConstPtr& msg) {
135135 // update the stats
136136 updateRecvStats (msg->header , msg->msg .header .stamp );
137137
@@ -143,11 +143,11 @@ void LatencyWrapper::poseWithCovarianceStamped_CB(
143143void LatencyWrapper::subscribe (std::string topic, TwistStamped_Func callback) {
144144 sub_topic_ = topic + " _latency" ;
145145 twist_stamped_cb_ = callback;
146- sub_ = nh_->subscribe <am_utils ::Latency_TwistStamped>(
146+ sub_ = nh_->subscribe <brain_box_msgs ::Latency_TwistStamped>(
147147 sub_topic_, 10 , &LatencyWrapper::twistStamped_CB, this );
148148}
149149void LatencyWrapper::twistStamped_CB (
150- const am_utils ::Latency_TwistStamped::ConstPtr& msg) {
150+ const brain_box_msgs ::Latency_TwistStamped::ConstPtr& msg) {
151151 // update the stats
152152 updateRecvStats (msg->header , msg->msg .header .stamp );
153153
@@ -159,11 +159,11 @@ void LatencyWrapper::twistStamped_CB(
159159void LatencyWrapper::subscribe (std::string topic, TwistWithCovarianceStamped_Func callback) {
160160 sub_topic_ = topic + " _latency" ;
161161 twist_with_covariance_stamped_cb_ = callback;
162- sub_ = nh_->subscribe <am_utils ::Latency_TwistWithCovarianceStamped>(
162+ sub_ = nh_->subscribe <brain_box_msgs ::Latency_TwistWithCovarianceStamped>(
163163 sub_topic_, 10 , &LatencyWrapper::twistWithCovarianceStamped_CB, this );
164164}
165165void LatencyWrapper::twistWithCovarianceStamped_CB (
166- const am_utils ::Latency_TwistWithCovarianceStamped::ConstPtr& msg) {
166+ const brain_box_msgs ::Latency_TwistWithCovarianceStamped::ConstPtr& msg) {
167167 // update the stats
168168 updateRecvStats (msg->header , msg->msg .header .stamp );
169169
@@ -175,11 +175,11 @@ void LatencyWrapper::twistWithCovarianceStamped_CB(
175175void LatencyWrapper::subscribe (std::string topic, Odometry_Func callback) {
176176 sub_topic_ = topic + " _latency" ;
177177 odometry_cb_ = callback;
178- sub_ = nh_->subscribe <am_utils ::Latency_Odometry>(
178+ sub_ = nh_->subscribe <brain_box_msgs ::Latency_Odometry>(
179179 sub_topic_, 10 , &LatencyWrapper::odometry_CB, this );
180180}
181181void LatencyWrapper::odometry_CB (
182- const am_utils ::Latency_Odometry::ConstPtr& msg) {
182+ const brain_box_msgs ::Latency_Odometry::ConstPtr& msg) {
183183 // update the stats
184184 updateRecvStats (msg->header , msg->msg .header .stamp );
185185
@@ -191,11 +191,11 @@ void LatencyWrapper::odometry_CB(
191191void LatencyWrapper::subscribe (std::string topic, Image_Func callback) {
192192 sub_topic_ = topic + " _latency" ;
193193 image_cb_ = callback;
194- sub_ = nh_->subscribe <am_utils ::Latency_Image>(
194+ sub_ = nh_->subscribe <brain_box_msgs ::Latency_Image>(
195195 sub_topic_, 10 , &LatencyWrapper::image_CB, this );
196196}
197197void LatencyWrapper::image_CB (
198- const am_utils ::Latency_Image::ConstPtr& msg) {
198+ const brain_box_msgs ::Latency_Image::ConstPtr& msg) {
199199 // update the stats
200200 updateRecvStats (msg->header , msg->msg .header .stamp );
201201
@@ -207,11 +207,11 @@ void LatencyWrapper::image_CB(
207207void LatencyWrapper::subscribe (std::string topic, LaserScan_Func callback) {
208208 sub_topic_ = topic + " _latency" ;
209209 laser_scan_cb_ = callback;
210- sub_ = nh_->subscribe <am_utils ::Latency_LaserScan>(
210+ sub_ = nh_->subscribe <brain_box_msgs ::Latency_LaserScan>(
211211 sub_topic_, 10 , &LatencyWrapper::laserScan_CB, this );
212212}
213213void LatencyWrapper::laserScan_CB (
214- const am_utils ::Latency_LaserScan::ConstPtr& msg) {
214+ const brain_box_msgs ::Latency_LaserScan::ConstPtr& msg) {
215215 // update the stats
216216 updateRecvStats (msg->header , msg->msg .header .stamp );
217217
@@ -223,11 +223,11 @@ void LatencyWrapper::laserScan_CB(
223223void LatencyWrapper::subscribe (std::string topic, PointCloud_Func callback) {
224224 sub_topic_ = topic + " _latency" ;
225225 point_cloud_cb_ = callback;
226- sub_ = nh_->subscribe <am_utils ::Latency_PointCloud>(
226+ sub_ = nh_->subscribe <brain_box_msgs ::Latency_PointCloud>(
227227 sub_topic_, 10 , &LatencyWrapper::pointCloud_CB, this );
228228}
229229void LatencyWrapper::pointCloud_CB (
230- const am_utils ::Latency_PointCloud::ConstPtr& msg) {
230+ const brain_box_msgs ::Latency_PointCloud::ConstPtr& msg) {
231231 // update the stats
232232 updateRecvStats (msg->header , msg->msg .header .stamp );
233233
@@ -239,11 +239,11 @@ void LatencyWrapper::pointCloud_CB(
239239void LatencyWrapper::subscribe (std::string topic, PointCloud2_Func callback) {
240240 sub_topic_ = topic + " _latency" ;
241241 point_cloud2_cb_ = callback;
242- sub_ = nh_->subscribe <am_utils ::Latency_PointCloud2>(
242+ sub_ = nh_->subscribe <brain_box_msgs ::Latency_PointCloud2>(
243243 sub_topic_, 10 , &LatencyWrapper::pointCloud2_CB, this );
244244}
245245void LatencyWrapper::pointCloud2_CB (
246- const am_utils ::Latency_PointCloud2::ConstPtr& msg) {
246+ const brain_box_msgs ::Latency_PointCloud2::ConstPtr& msg) {
247247 // update the stats
248248 updateRecvStats (msg->header , msg->msg .header .stamp );
249249
0 commit comments