DefaultRatingModuleFactory.hpp
Go to the documentation of this file.
1 
20 #pragma once
21 
23 #include <robot_model_services/robot_model/RobotModelAbstractFactory.hpp>
27 
28 namespace next_best_view {
29 
31  private:
32  double mFovx, mFovy;
33  double mFcp, mNcp;
35  robot_model_services::RobotModelAbstractFactoryPtr mRobotModelFactoryPtr;
42 
43  public:
44  DefaultRatingModuleFactory(double fovx, double fovy,
45  double fcp, double ncp,
46  double useTargetRobotState,
47  robot_model_services::RobotModelAbstractFactoryPtr robotModelFactory, CameraModelFilterAbstractFactoryPtr cameraModelFilterFactory,
48  MapHelperPtr mapHelper,
49  double angleThreshold,
50  double omegaUtility, double omegaPan, double omegaTilt,
51  double omegaRot, double omegaBase, double omegaRecognizer,
52  bool useOrientationUtility, bool useProximityUtility, bool useSideUtility)
53  : mFovx(fovx), mFovy(fovy),
54  mFcp(fcp), mNcp(ncp),
55  mUseTargetRobotState(useTargetRobotState),
56  mRobotModelFactoryPtr(robotModelFactory), mCameraModelFilterFactoryPtr(cameraModelFilterFactory),
57  mMapHelperPtr(mapHelper),
58  mAngleThreshold(angleThreshold),
59  mOmegaUtility(omegaUtility), mOmegaPan(omegaPan), mOmegaTilt(omegaTilt),
60  mOmegaRot(omegaRot), mOmegaBase(omegaBase), mOmegaRecognizer(omegaRecognizer),
61  mUseOrientationUtility(useOrientationUtility), mUseProximityUtility(useProximityUtility), mUseSideUtility(useSideUtility)
62  { }
63 
65  DefaultRatingModulePtr defaultRatingModule = DefaultRatingModulePtr(new DefaultRatingModule(mFovx, mFovy, mFcp, mNcp, mUseTargetRobotState, mRobotModelFactoryPtr->createRobotModel(), mMapHelperPtr, mCameraModelFilterFactoryPtr->createCameraModelFilter()));
66  defaultRatingModule->setNormalAngleThreshold(mAngleThreshold);
67  defaultRatingModule->setOmegaParameters(mOmegaUtility, mOmegaPan, mOmegaTilt, mOmegaRot, mOmegaBase, mOmegaRecognizer);
68  defaultRatingModule->setUtilityParameters(mUseOrientationUtility, mUseProximityUtility, mUseSideUtility);
69  return defaultRatingModule;
70  }
71  };
73 }
DefaultRatingModuleFactory(double fovx, double fovy, double fcp, double ncp, double useTargetRobotState, robot_model_services::RobotModelAbstractFactoryPtr robotModelFactory, CameraModelFilterAbstractFactoryPtr cameraModelFilterFactory, MapHelperPtr mapHelper, double angleThreshold, double omegaUtility, double omegaPan, double omegaTilt, double omegaRot, double omegaBase, double omegaRecognizer, bool useOrientationUtility, bool useProximityUtility, bool useSideUtility)
robot_model_services::RobotModelAbstractFactoryPtr mRobotModelFactoryPtr
this namespace contains all generally usable classes.
CameraModelFilterAbstractFactoryPtr mCameraModelFilterFactoryPtr
boost::shared_ptr< DefaultRatingModuleFactory > DefaultRatingModuleFactoryPtr
DefaultRatingModule implements the functionlities offered by RatingModule.
boost::shared_ptr< DefaultRatingModule > DefaultRatingModulePtr
Definition for the shared pointer type of the class.


asr_next_best_view
Author(s): Aumann Florian, Borella Jocelyn, Heller Florian, Meißner Pascal, Schleicher Ralf, Stöckle Patrick, Stroh Daniel, Trautmann Jeremias, Walter Milena, Wittenbeck Valerij
autogenerated on Thu Jan 9 2020 07:20:18