From a6aaa92696699eb48c996a31e513fc56331871cf Mon Sep 17 00:00:00 2001 From: Issac Date: Mon, 15 Jan 2018 21:39:24 -0800 Subject: [PATCH] Removed remaining unused ros include. Added namespace qualifiers for isnan and isinf for the new standard. --- source/dbot/builder/rb_sensor_builder.h | 2 -- source/dbot/model/kinect_image_model.h | 2 +- source/dbot/model/kinect_pixel_model.h | 4 ++-- source/dbot/pose/rigid_bodies_state.h | 1 - source/dbot/rigid_body_renderer.h | 6 ++---- 5 files changed, 5 insertions(+), 10 deletions(-) diff --git a/source/dbot/builder/rb_sensor_builder.h b/source/dbot/builder/rb_sensor_builder.h index da43c59..134f289 100644 --- a/source/dbot/builder/rb_sensor_builder.h +++ b/source/dbot/builder/rb_sensor_builder.h @@ -41,8 +41,6 @@ #include #include #include -#include -#include namespace dbot { diff --git a/source/dbot/model/kinect_image_model.h b/source/dbot/model/kinect_image_model.h index 7ee5345..f0de4e3 100644 --- a/source/dbot/model/kinect_image_model.h +++ b/source/dbot/model/kinect_image_model.h @@ -165,7 +165,7 @@ class KinectImageModel // compute likelihoods --------------------------------------------- for (size_t i = 0; i < size_t(predictions.size()); i++) { - if (isnan(observations_[intersect_indices[i]])) + if (std::isnan(observations_[intersect_indices[i]])) { log_likes[i_state] += log(1.); } diff --git a/source/dbot/model/kinect_pixel_model.h b/source/dbot/model/kinect_pixel_model.h index 1205960..e478c13 100644 --- a/source/dbot/model/kinect_pixel_model.h +++ b/source/dbot/model/kinect_pixel_model.h @@ -88,7 +88,7 @@ class KinectPixelModel Scalar sigma = model_sigma_ + sigma_factor_ * observation * observation; if (!occlusion_) { - if (isinf(prediction_)) // if the prediction_ is infinite we return + if (std::isinf(prediction_)) // if the prediction_ is infinite we return // the limit probability = tail_weight_ / max_depth_; else @@ -100,7 +100,7 @@ class KinectPixelModel } else { - if (isinf(prediction_)) // if the prediction_ is infinite we return + if (std::isinf(prediction_)) // if the prediction_ is infinite we return // the limit { probability = diff --git a/source/dbot/pose/rigid_bodies_state.h b/source/dbot/pose/rigid_bodies_state.h index cac42d8..4f8f95d 100644 --- a/source/dbot/pose/rigid_bodies_state.h +++ b/source/dbot/pose/rigid_bodies_state.h @@ -19,7 +19,6 @@ #pragma once #include - #include "pose_velocity_vector.h" namespace dbot diff --git a/source/dbot/rigid_body_renderer.h b/source/dbot/rigid_body_renderer.h index 796636d..cc96fbe 100644 --- a/source/dbot/rigid_body_renderer.h +++ b/source/dbot/rigid_body_renderer.h @@ -13,12 +13,10 @@ #pragma once -#include -#include - #include - #include +#include +#include namespace dbot {