demonstrator_params.h
Go to the documentation of this file.
00001 #ifndef __3D_MAP_DEMON_PARAMS_H_
00002 #define __3D_MAP_DEMON_PARAMS_H_
00003 
00004 class DemonstratorParams
00005 {
00006 public:
00008         DemonstratorParams()
00009         {
00010 
00011         }
00012 
00014         ~DemonstratorParams();
00015 
00017         void init(std::string SerialDevice, int BaudRate)
00018         {
00019                 setSerialDevice(SerialDevice);
00020                 setBaudRate(BaudRate);
00021         }
00022 
00024         void setSerialDevice(std::string SerialDeviceName) {
00025                 serial_device_name_ = SerialDeviceName;
00026         }
00028         std::string getSerialDevice() {
00029                 return serial_device_name_;
00030         }
00031 
00033         void setBaudRate(int BaudRate) {
00034                 baud_rate_ = BaudRate;
00035         }
00037         int getBaudRate() {
00038                 return baud_rate_;
00039         }
00040 
00042         /*void SetOperationMode(std::string opMode) {
00043                 m_operationMode = opMode;
00044         }
00046         std::string GetOperationMode() {
00047                 return m_operationMode;
00048         }*/
00049 
00051         void setDOF(int DOF) {
00052                 dof_ = DOF;
00053         }
00054 
00056         unsigned int getDOF() {
00057                 return dof_;
00058         }
00059 
00061         void setJointNames(std::vector<std::string> JointNames) {
00062                 joint_names_ = JointNames;
00063         }
00065         std::vector<std::string> getJointNames() {
00066                 return joint_names_;
00067         }
00068 
00070         void setUpperLimits(std::vector<double> UpperLimits) {
00071                 upper_limits_ = UpperLimits;
00072         }
00074         std::vector<double> getUpperLimits() {
00075                 return upper_limits_;
00076         }
00077 
00079         void setLowerLimits(std::vector<double> LowerLimits) {
00080                 lower_limits_ = LowerLimits;
00081         }
00083         std::vector<double> getLowerLimits() {
00084                 return lower_limits_;
00085         }
00086 
00088         void setMaxVel(std::vector<double> MaxVel) {
00089                 max_vel_ = MaxVel;
00090         }
00092         std::vector<double> getMaxVel()
00093         {
00094                 return max_vel_;
00095         }
00096 
00098         void setOffsets(std::vector<double> Offsets)    {
00099                 offsets_ = Offsets;
00100         }
00102         std::vector<double> getOffsets() {
00103                 return offsets_;
00104         }
00105 
00107         void setVels( std::vector<double> velocities )  {
00108                 vels_ = velocities;
00109         }
00111         std::vector<double> getVels() {
00112                 return vels_;
00113         }
00114 
00116         void setAccels( std::vector<double> accels )  {
00117                 accels_ = accels;
00118         }
00120         std::vector<double> getAccels() {
00121                 return accels_;
00122         }
00123 
00124 private:
00125         std::string serial_device_name_;
00126         int baud_rate_;
00127         //std::string m_operationMode;
00128 
00129         unsigned int dof_;
00130         std::vector<std::string> joint_names_;
00131         std::vector<double> upper_limits_;
00132         std::vector<double> lower_limits_;
00133         std::vector<double> max_vel_;
00134         std::vector<double> vels_;
00135         std::vector<double> accels_;
00136         std::vector<double> offsets_;
00137 };
00138 
00139 #endif
00140 


cob_3d_mapping_demonstrator
Author(s): Georg Arbeiter
autogenerated on Wed Aug 26 2015 11:03:46