sort_helper.hpp
Go to the documentation of this file.
1 
18 #pragma once
19 
20 #include <ros/ros.h>
21 #include "helper/pose_helper.hpp"
22 #include "model/robot_state.hpp"
23 
24 namespace directSearchWS {
25 
26 class SortHelper {
27 
28 private:
29 
33 
34 public:
35 
36  SortHelper(RobotStatePtrVecPtr &posesToExplorePtr, bool needreorderPosesByTSP);
37 
38  void setNeedreorderPosesByTSP(bool needreorderPosesByTSP) {
39  this->needreorderPosesByTSP = needreorderPosesByTSP;
40  }
41 
43  void nearest_neighbour_and_update_distance(double &distance);
44 
45 };
46 
48 
49 }
50 
51 
52 
RobotStatePtrVecPtr & posesToExplorePtr
Definition: sort_helper.hpp:31
TFSIMD_FORCE_INLINE tfScalar distance(const Vector3 &v) const
SortHelper(RobotStatePtrVecPtr &posesToExplorePtr, bool needreorderPosesByTSP)
Definition: sort_helper.cpp:22
void setNeedreorderPosesByTSP(bool needreorderPosesByTSP)
Definition: sort_helper.hpp:38
boost::shared_ptr< SortHelper > SortHelperPtr
Definition: sort_helper.hpp:47
void nearest_neighbour_and_update_distance(double &distance)
Definition: sort_helper.cpp:26
void two_opt_and_update_distance(double &distance)
Definition: sort_helper.cpp:58


asr_direct_search_manager
Author(s): Borella Jocelyn, Karrenbauer Oliver, Mei├čner Pascal
autogenerated on Wed Jan 8 2020 03:15:41