MILDRobotModelWithExactIKFactory.hpp
Go to the documentation of this file.
00001 
00020 #pragma once
00021 
00022 #include "robot_model_services/robot_model/impl/MILDRobotModelWithExactIK.hpp"
00023 #include "robot_model_services/robot_model/RobotModelAbstractFactory.hpp"
00024 
00025 namespace robot_model_services {
00026 
00027     class MILDRobotModelWithExactIKFactory : public RobotModelAbstractFactory {
00028     private:
00029         float mMinTiltAngleDegrees, mMaxTiltAngleDegrees;
00030         float mMinPanAngleDegrees, mMaxPanAngleDegrees;
00031 
00032     public:
00033         MILDRobotModelWithExactIKFactory(float minTiltAngleDegrees, float maxTiltAngleDegrees,
00034                                                 float minPanAngleDegrees, float maxPanAngleDegrees)
00035             : mMinTiltAngleDegrees(minTiltAngleDegrees),
00036               mMaxTiltAngleDegrees(maxTiltAngleDegrees),
00037               mMinPanAngleDegrees(minPanAngleDegrees),
00038               mMaxPanAngleDegrees(maxPanAngleDegrees)
00039         { }
00040 
00041         RobotModelPtr createRobotModel() {
00042             MILDRobotModel* robotModel = new MILDRobotModelWithExactIK();
00043             robotModel->setPanAngleLimits(mMinPanAngleDegrees, mMaxPanAngleDegrees);
00044             robotModel->setTiltAngleLimits(mMinTiltAngleDegrees, mMaxTiltAngleDegrees);
00045             return RobotModelPtr(robotModel);
00046         }
00047     };
00048     typedef boost::shared_ptr<MILDRobotModelWithExactIKFactory> MILDRobotModelWithExactIKFactoryPtr;
00049 }
00050 


asr_robot_model_services
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 Sat Jun 8 2019 18:24:52