Skip to content

Commit

Permalink
Removed remaining unused ros include.
Browse files Browse the repository at this point in the history
Added namespace qualifiers for isnan and isinf for the new standard.
  • Loading branch information
cassinaj committed Jan 16, 2018
1 parent 3d10b7a commit a6aaa92
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
2 changes: 0 additions & 2 deletions source/dbot/builder/rb_sensor_builder.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@
#include <dbot/pose/euler_vector.h>
#include <dbot/rigid_body_renderer.h>
#include <memory>
#include <ros/package.h>
#include <ros/ros.h>

namespace dbot
{
Expand Down
2 changes: 1 addition & 1 deletion source/dbot/model/kinect_image_model.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.);
}
Expand Down
4 changes: 2 additions & 2 deletions source/dbot/model/kinect_pixel_model.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 =
Expand Down
1 change: 0 additions & 1 deletion source/dbot/pose/rigid_bodies_state.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#pragma once

#include <Eigen/Dense>

#include "pose_velocity_vector.h"

namespace dbot
Expand Down
6 changes: 2 additions & 4 deletions source/dbot/rigid_body_renderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@

#pragma once

#include <vector>
#include <memory>

#include <Eigen/Dense>

#include <dbot/pose/rigid_bodies_state.h>
#include <memory>
#include <vector>

namespace dbot
{
Expand Down

0 comments on commit a6aaa92

Please sign in to comment.