Skip to content

Commit a6aaa92

Browse files
committed
Removed remaining unused ros include.
Added namespace qualifiers for isnan and isinf for the new standard.
1 parent 3d10b7a commit a6aaa92

File tree

5 files changed

+5
-10
lines changed

5 files changed

+5
-10
lines changed

source/dbot/builder/rb_sensor_builder.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@
4141
#include <dbot/pose/euler_vector.h>
4242
#include <dbot/rigid_body_renderer.h>
4343
#include <memory>
44-
#include <ros/package.h>
45-
#include <ros/ros.h>
4644

4745
namespace dbot
4846
{

source/dbot/model/kinect_image_model.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ class KinectImageModel
165165
// compute likelihoods ---------------------------------------------
166166
for (size_t i = 0; i < size_t(predictions.size()); i++)
167167
{
168-
if (isnan(observations_[intersect_indices[i]]))
168+
if (std::isnan(observations_[intersect_indices[i]]))
169169
{
170170
log_likes[i_state] += log(1.);
171171
}

source/dbot/model/kinect_pixel_model.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class KinectPixelModel
8888
Scalar sigma = model_sigma_ + sigma_factor_ * observation * observation;
8989
if (!occlusion_)
9090
{
91-
if (isinf(prediction_)) // if the prediction_ is infinite we return
91+
if (std::isinf(prediction_)) // if the prediction_ is infinite we return
9292
// the limit
9393
probability = tail_weight_ / max_depth_;
9494
else
@@ -100,7 +100,7 @@ class KinectPixelModel
100100
}
101101
else
102102
{
103-
if (isinf(prediction_)) // if the prediction_ is infinite we return
103+
if (std::isinf(prediction_)) // if the prediction_ is infinite we return
104104
// the limit
105105
{
106106
probability =

source/dbot/pose/rigid_bodies_state.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#pragma once
2020

2121
#include <Eigen/Dense>
22-
2322
#include "pose_velocity_vector.h"
2423

2524
namespace dbot

source/dbot/rigid_body_renderer.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@
1313

1414
#pragma once
1515

16-
#include <vector>
17-
#include <memory>
18-
1916
#include <Eigen/Dense>
20-
2117
#include <dbot/pose/rigid_bodies_state.h>
18+
#include <memory>
19+
#include <vector>
2220

2321
namespace dbot
2422
{

0 commit comments

Comments
 (0)