Skip to content
Snippets Groups Projects
Commit d54f7ee8 authored by Joseph Mirabel's avatar Joseph Mirabel
Browse files

Ensure backward compatiblity.

parent e64e9ca7
No related branches found
No related tags found
No related merge requests found
......@@ -39,19 +39,22 @@
#ifndef HPP_FCL_COLLISION_DATA_H
#define HPP_FCL_COLLISION_DATA_H
#include <hpp/fcl/collision_object.h>
#include <hpp/fcl/data_types.h>
#include <vector>
#include <set>
#include <limits>
#include <hpp/fcl/collision_object.h>
#include <hpp/fcl/config.hh>
#include <hpp/fcl/data_types.h>
namespace hpp
{
namespace fcl
{
const int GST_INDEP HPP_FCL_DEPRECATED = 0;
/// @brief Contact information returned by collision
struct Contact
{
......@@ -285,6 +288,17 @@ struct DistanceRequest
FCL_REAL rel_err; // relative error, between 0 and 1
FCL_REAL abs_err; // absoluate error
/// \deprected the last argument should be removed.
DistanceRequest(bool enable_nearest_points_,
FCL_REAL rel_err_,
FCL_REAL abs_err_,
int /*unused*/) HPP_FCL_DEPRECATED :
enable_nearest_points(enable_nearest_points_),
rel_err(rel_err_),
abs_err(abs_err_)
{
}
DistanceRequest(bool enable_nearest_points_ = false,
FCL_REAL rel_err_ = 0.0,
FCL_REAL abs_err_ = 0.0) :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment