Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

MobileObject.icc

Go to the documentation of this file.
00001 /* -*- Mode: C++ -*-
00002  * $Id: MobileObject.icc,v 1.1 2006/09/06 18:03:33 frehe Exp $
00003  *
00004  *
00005  * COPYRIGHT INFORMATION
00006  *
00007  * This file is part of RoboSoc created by Fredrik Heintz <frehe@ida.liu.se>
00008  * Copyright (C) 1999, 2000 Fredrik Heintz, Linköping University, Sweden
00009  *
00010  * You are allowed to modify and use this code as long as you retain this
00011  * notice. If you make any changes or have any comments I would appreciate
00012  * it if you send me a message. For more information, please see
00013  * http://www.ida.liu.se/~frehe/RoboCup/RoboSoc/
00014  *
00015  *
00016  * IDENTIFICATION
00017  *
00018  * Filename: MobileObject.icc
00019  * Unitname: Library
00020  * $Revision: 1.1 $
00021  * Created by: Fredrik Heintz 2000-09-01
00022  * Last modified by $Author: frehe $ $Date: 2006/09/06 18:03:33 $
00023  *
00024  *
00025  * HISTORY
00026  *
00027  * $Log: MobileObject.icc,v $
00028  * Revision 1.1  2006/09/06 18:03:33  frehe
00029  * Moved files from Library to BasicSystem.
00030  *
00031  * Revision 1.3  2002/08/02 21:36:10  s02davro
00032  * Change types, inheritance, removed some methods.
00033  *
00034  * Revision 1.2  2000/09/03 11:28:39  frehe
00035  * Added an #include statement to make the documentation better.
00036  *
00037  * Revision 1.1  2000/09/01 03:24:32  frehe
00038  * Importet the current version of RoboSoc (soon to be v2.5.0)
00039  *
00040  * Revision 1.1.1.1  2000/08/31 13:26:04  frehe
00041  * Importet the current version of RoboSoc (soon to be v2.5.0)
00042  *
00043  */
00044 
00057 #include "machine_dependent_compiler_directives.h"
00058 
00059 
00060 RS_BEGIN_NAMESPACE
00061 
00062 
00063 inline void MobileObject::setPosition(const PointUE& pos) {
00064   position = pos;
00065 }
00066 
00067 inline FloatUE MobileObject::getPosX() const {
00068   return position.getX();
00069 }
00070 
00071 inline FloatUE MobileObject::getPosY() const {
00072   return position.getY();
00073 }
00074 
00075 inline PointUE MobileObject::getPosition() const {
00076   return position;
00077 }
00078 
00079 inline void MobileObject::setObservationTime(const TimeUnknown& time) {
00080   observationTime = time;
00081 }
00082 
00083 inline TimeUnknown MobileObject::getObservationTime() const {
00084   return observationTime;
00085 }
00086 
00087 inline void MobileObject::setSpeedVector(const VectorUE& v) {
00088   speed = v;
00089 }
00090 
00091 inline VectorUE MobileObject::getSpeedVector() const {
00092   return speed;
00093 }
00094 
00095 inline void MobileObject::setSpeed(const FloatUE new_speed) {
00096   speed.setLength(new_speed);
00097 }
00098 
00099 inline FloatUE MobileObject::getSpeed() const {
00100   return speed.getLength();
00101 }
00102 
00103 inline void MobileObject::setSpeedDirection(const AngleDegUE& ang) {
00104   speed.setAngle(ang);
00105 }
00106 
00107 
00108 inline AngleDegUE MobileObject::getSpeedDirection() const {
00109   return speed.getAngle();
00110 }
00111 
00112 inline void MobileObject::setSpeedObservationTime(const TimeUnknown& time) {
00113   speedObservationTime = time;
00114 }
00115 
00116 inline TimeUnknown MobileObject::getSpeedObservationTime() const {
00117   return speedObservationTime;
00118 }
00119 
00120 inline void MobileObject::setAcceleration(const VectorUE& acc) {
00121   acceleration = acc;
00122 }
00123 
00124 inline VectorUE MobileObject::getAcceleration() const {
00125   return acceleration;
00126 }
00127 
00128 RS_END_NAMESPACE

Generated on Mon Aug 29 07:57:58 2011 for RoboSoc by doxygen1.3-rc3