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


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