Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

propertyservice::mobilerobot::RobotPosition Class Reference

#include <Vector.h>

Inheritance diagram for propertyservice::mobilerobot::RobotPosition:

propertyservice::mobilerobot::Vector< double, 3 > List of all members.

Detailed Description

A robot's position is represented as a three-dimensional vector.

Arithmetic operators ensure that rotation is always in the range [0,2*pi).


Public Methods

 RobotPosition (double x=0.0, double y=0.0, double rotation=0.0)
 Create a RobotPosition object with the given initial values.

 RobotPosition (const Vector< double, 3 > &other)
 Copy any three-dimensional vector.

RobotPosition & operator= (const Vector< double, 3 > &other)
 Copy any three-dimensional vector.

double & x ()
 The x coordinate of a robot (meters).

double & y ()
 The y coordinate of a robot (meters).

double & rotation ()
 The rotation angle of a robot (radians).

RobotPosition & operator+= (const RobotPosition &other)
RobotPosition & operator-= (const RobotPosition &other)
RobotPosition & operator+= (double value)
 Add a scalar value to each element.

RobotPosition & operator-= (double value)
 Subtract a scalar value from each element.


Member Function Documentation

double& propertyservice::mobilerobot::RobotPosition::rotation   [inline]
 

The rotation angle of a robot (radians).

Translates to componentArray[2].

double& propertyservice::mobilerobot::RobotPosition::x   [inline]
 

The x coordinate of a robot (meters).

Translates to componentArray[0].

double& propertyservice::mobilerobot::RobotPosition::y   [inline]
 

The y coordinate of a robot (meters).

Translates to componentArray[1].


The documentation for this class was generated from the following file:
Documentation generated on 11.09.2003 with Doxygen.
The documentation is copyrighted material.
Copyright © Topi Mäenpää 2003. All rights reserved.