JointData.cpp
Go to the documentation of this file.
00001 /****************************************************************
00002  *
00003  * Copyright (c) 2011
00004  * All rights reserved.
00005  *
00006  * Hochschule Bonn-Rhein-Sieg
00007  * University of Applied Sciences
00008  * Computer Science Department
00009  *
00010  * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00011  *
00012  * Author:
00013  * Jan Paulus, Nico Hochgeschwender, Michael Reckhaus, Azamat Shakhimardanov
00014  * Supervised by:
00015  * Gerhard K. Kraetzschmar
00016  *
00017  * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00018  *
00019  * This sofware is published under a dual-license: GNU Lesser General Public 
00020  * License LGPL 2.1 and BSD license. The dual-license implies that users of this
00021  * code may choose which terms they prefer.
00022  *
00023  * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00024  *
00025  * Redistribution and use in source and binary forms, with or without
00026  * modification, are permitted provided that the following conditions are met:
00027  *
00028  *     * Redistributions of source code must retain the above copyright
00029  *       notice, this list of conditions and the following disclaimer.
00030  *     * Redistributions in binary form must reproduce the above copyright
00031  *       notice, this list of conditions and the following disclaimer in the
00032  *       documentation and/or other materials provided with the distribution.
00033  *     * Neither the name of the Hochschule Bonn-Rhein-Sieg nor the names of its
00034  *       contributors may be used to endorse or promote products derived from
00035  *       this software without specific prior written permission.
00036  *
00037  * This program is free software: you can redistribute it and/or modify
00038  * it under the terms of the GNU Lesser General Public License LGPL as
00039  * published by the Free Software Foundation, either version 2.1 of the
00040  * License, or (at your option) any later version or the BSD license.
00041  *
00042  * This program is distributed in the hope that it will be useful,
00043  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00044  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00045  * GNU Lesser General Public License LGPL and the BSD license for more details.
00046  *
00047  * You should have received a copy of the GNU Lesser General Public
00048  * License LGPL and BSD license along with this program.
00049  *
00050  ****************************************************************/
00051 #include <youbot_driver/generic-joint/JointData.hpp>
00052 
00053 namespace youbot
00054 {
00055 
00056 JointSensedPWM::JointSensedPWM()
00057 {
00058   // Bouml preserved body begin 000CD971
00059   this->pwm = 0;
00060   // Bouml preserved body end 000CD971
00061 }
00062 
00063 JointSensedPWM::JointSensedPWM(const signed int& value)
00064 {
00065   // Bouml preserved body begin 000CFDF1
00066   this->pwm = value;
00067   // Bouml preserved body end 000CFDF1
00068 }
00069 
00070 JointSensedAngle::JointSensedAngle()
00071 {
00072   // Bouml preserved body begin 000CD771
00073   this->angle = 0 * radian;
00074   // Bouml preserved body end 000CD771
00075 }
00076 
00077 JointSensedAngle::JointSensedAngle(const quantity<plane_angle>& value)
00078 {
00079   // Bouml preserved body begin 000CFBF1
00080   this->angle = value;
00081   // Bouml preserved body end 000CFBF1
00082 }
00083 
00084 JointSensedEncoderTicks::JointSensedEncoderTicks()
00085 {
00086   // Bouml preserved body begin 000CD7F1
00087   this->encoderTicks = 0;
00088   // Bouml preserved body end 000CD7F1
00089 }
00090 
00091 JointSensedEncoderTicks::JointSensedEncoderTicks(const signed int& value)
00092 {
00093   // Bouml preserved body begin 000CFC71
00094   this->encoderTicks = value;
00095   // Bouml preserved body end 000CFC71
00096 }
00097 
00098 JointSensedVelocity::JointSensedVelocity()
00099 {
00100   // Bouml preserved body begin 000CD6F1
00101   this->angularVelocity = 0 * radian_per_second;
00102   // Bouml preserved body end 000CD6F1
00103 }
00104 
00105 JointSensedVelocity::JointSensedVelocity(const quantity<si::angular_velocity>& value)
00106 {
00107   // Bouml preserved body begin 000CFB71
00108   this->angularVelocity = value;
00109   // Bouml preserved body end 000CFB71
00110 }
00111 
00112 JointSensedRoundsPerMinute::JointSensedRoundsPerMinute()
00113 {
00114   // Bouml preserved body begin 000CD871
00115   this->rpm = 0;
00116   // Bouml preserved body end 000CD871
00117 }
00118 
00119 JointSensedRoundsPerMinute::JointSensedRoundsPerMinute(const int value)
00120 {
00121   // Bouml preserved body begin 000CFCF1
00122   this->rpm = value;
00123   // Bouml preserved body end 000CFCF1
00124 }
00125 
00126 JointSensedCurrent::JointSensedCurrent()
00127 {
00128   // Bouml preserved body begin 000CD8F1
00129   this->current = 0 * ampere;
00130   // Bouml preserved body end 000CD8F1
00131 }
00132 
00133 JointSensedCurrent::JointSensedCurrent(const quantity<si::current>& value)
00134 {
00135   // Bouml preserved body begin 000CFD71
00136   this->current = value;
00137   // Bouml preserved body end 000CFD71
00138 }
00139 
00140 JointSensedTorque::JointSensedTorque()
00141 {
00142   // Bouml preserved body begin 000CD671
00143   this->torque = 0 * newton_meter;
00144   // Bouml preserved body end 000CD671
00145 }
00146 
00147 JointSensedTorque::JointSensedTorque(const quantity<si::torque>& value)
00148 {
00149   // Bouml preserved body begin 000CFAF1
00150   this->torque = value;
00151   // Bouml preserved body end 000CFAF1
00152 }
00153 
00154 JointAngleSetpoint::JointAngleSetpoint()
00155 {
00156   // Bouml preserved body begin 000CDB71
00157   this->angle = 0 * radian;
00158   // Bouml preserved body end 000CDB71
00159 }
00160 
00161 JointAngleSetpoint::JointAngleSetpoint(const quantity<plane_angle>& value)
00162 {
00163   // Bouml preserved body begin 000CFF71
00164   this->angle = value;
00165   // Bouml preserved body end 000CFF71
00166 }
00167 
00168 JointVelocitySetpoint::JointVelocitySetpoint()
00169 {
00170   // Bouml preserved body begin 000CDAF1
00171   this->angularVelocity = 0 * radian_per_second;
00172   // Bouml preserved body end 000CDAF1
00173 }
00174 
00175 JointVelocitySetpoint::JointVelocitySetpoint(const quantity<angular_velocity>& value)
00176 {
00177   // Bouml preserved body begin 000CFEF1
00178   this->angularVelocity = value;
00179   // Bouml preserved body end 000CFEF1
00180 }
00181 
00182 JointRoundsPerMinuteSetpoint::JointRoundsPerMinuteSetpoint()
00183 {
00184   // Bouml preserved body begin 000CDCF1
00185   this->rpm = 0;
00186   // Bouml preserved body end 000CDCF1
00187 }
00188 
00189 JointRoundsPerMinuteSetpoint::JointRoundsPerMinuteSetpoint(const int value)
00190 {
00191   // Bouml preserved body begin 000D00F1
00192   this->rpm = value;
00193   // Bouml preserved body end 000D00F1
00194 }
00195 
00196 JointCurrentSetpoint::JointCurrentSetpoint()
00197 {
00198   // Bouml preserved body begin 000CDBF1
00199   this->current = 0 * ampere;
00200   // Bouml preserved body end 000CDBF1
00201 }
00202 
00203 JointCurrentSetpoint::JointCurrentSetpoint(const quantity<si::current>& value)
00204 {
00205   // Bouml preserved body begin 000CFFF1
00206   this->current = value;
00207   // Bouml preserved body end 000CFFF1
00208 }
00209 
00210 JointTorqueSetpoint::JointTorqueSetpoint()
00211 {
00212   // Bouml preserved body begin 000CDA71
00213   this->torque = 0 * newton_meter;
00214   // Bouml preserved body end 000CDA71
00215 }
00216 
00217 JointTorqueSetpoint::JointTorqueSetpoint(const quantity<si::torque>& value)
00218 {
00219   // Bouml preserved body begin 000CFE71
00220   this->torque = value;
00221   // Bouml preserved body end 000CFE71
00222 }
00223 
00224 JointPWMSetpoint::JointPWMSetpoint()
00225 {
00226   // Bouml preserved body begin 000CDC71
00227   this->pwm = 0;
00228   // Bouml preserved body end 000CDC71
00229 }
00230 
00231 JointPWMSetpoint::JointPWMSetpoint(const int value)
00232 {
00233   // Bouml preserved body begin 000D0071
00234   this->pwm = value;
00235   // Bouml preserved body end 000D0071
00236 }
00237 
00238 JointEncoderSetpoint::JointEncoderSetpoint()
00239 {
00240   // Bouml preserved body begin 000CDD71
00241   this->encoderTicks = 0;
00242   // Bouml preserved body end 000CDD71
00243 }
00244 
00245 JointEncoderSetpoint::JointEncoderSetpoint(const signed int& value)
00246 {
00247   // Bouml preserved body begin 000D0171
00248   this->encoderTicks = value;
00249   // Bouml preserved body end 000D0171
00250 }
00251 
00252 JointRampGeneratorVelocity::JointRampGeneratorVelocity()
00253 {
00254   // Bouml preserved body begin 00103DF1
00255   this->angularVelocity = 0 * radian_per_second;
00256   // Bouml preserved body end 00103DF1
00257 }
00258 
00259 JointRampGeneratorVelocity::JointRampGeneratorVelocity(const quantity<si::angular_velocity>& value)
00260 {
00261   // Bouml preserved body begin 00103E71
00262   this->angularVelocity = value;
00263   // Bouml preserved body end 00103E71
00264 }
00265 
00266 } // namespace youbot


youbot_driver
Author(s): Jan Paulus
autogenerated on Mon Oct 6 2014 09:08:01