<commit_before>#ifndef _RAPID_PERCEPTION_ICP_FITNESS_FUNCTIONS_H_
#define _RAPID_PERCEPTION_ICP_FITNESS_FUNCTIONS_H_

#include "pcl/point_cloud.h"
#include "pcl/point_types.h"
#include "ros/ros.h"

#include "rapid_msgs/Roi3D.h"

namespace ros {
class Publisher;
}  // namespace ros

namespace rapid {
namespace perception {
// Computes an alternative ICP fitness score between the scene and an object
// with a bounding box around it. This metric measures the distance between
// the
// scene points inside the bounding box and the nearest point on the object.
// This allows us to assert that there should be free space in the given
// bounding box.
//
// We assume that the scene, object, and ROI are all given in the same
// reference
// frame.
//
// We do not take into account the difference between free space that is
// visibly
// free or free space with unknown occupancy (in practice it may not make a
// difference?).
//
// Args:
//  scene: The scene the object is in.
//  object: The object to compute the score of.
//  roi: The region of interest to get scene points from.
double ComputeIcpFitness(pcl::PointCloud<pcl::PointXYZRGB>::Ptr& scene,
                         pcl::PointCloud<pcl::PointXYZRGB>::Ptr& object,
                         const rapid_msgs::Roi3D& roi);
}  // namespace perception
}  // namespace rapid
<commit_msg>Removed unused forward declaration.<commit_after>#ifndef _RAPID_PERCEPTION_ICP_FITNESS_FUNCTIONS_H_
#define _RAPID_PERCEPTION_ICP_FITNESS_FUNCTIONS_H_

#include "pcl/point_cloud.h"
#include "pcl/point_types.h"
#include "ros/ros.h"

#include "rapid_msgs/Roi3D.h"

namespace rapid {
namespace perception {
// Computes an alternative ICP fitness score between the scene and an object
// with a bounding box around it. This metric measures the distance between
// the
// scene points inside the bounding box and the nearest point on the object.
// This allows us to assert that there should be free space in the given
// bounding box.
//
// We assume that the scene, object, and ROI are all given in the same
// reference
// frame.
//
// We do not take into account the difference between free space that is
// visibly
// free or free space with unknown occupancy (in practice it may not make a
// difference?).
//
// Args:
//  scene: The scene the object is in.
//  object: The object to compute the score of.
//  roi: The region of interest to get scene points from.
double ComputeIcpFitness(pcl::PointCloud<pcl::PointXYZRGB>::Ptr& scene,
                         pcl::PointCloud<pcl::PointXYZRGB>::Ptr& object,
                         const rapid_msgs::Roi3D& roi);
}  // namespace perception
}  // namespace rapid

{'fraction_non_alphanumeric': 0.08940646130728776, 'fraction_numerical': 0.0015026296018031556, 'mean_word_length': 3.3513071895424837, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '138338', 'n_tokens_mistral': 799, 'n_tokens_neox': 782, 'n_words': 315}