#include <uwsmposition.h>
|
virtual void | update (double now) |
|
Definition at line 57 of file uwsmposition.h.
◆ UWSMPosition()
UWSMPosition::UWSMPosition |
( |
| ) |
|
◆ ~UWSMPosition()
UWSMPosition::~UWSMPosition |
( |
| ) |
|
|
virtual |
◆ command()
int UWSMPosition::command |
( |
int |
argc, |
|
|
const char *const * |
argv |
|
) |
| |
|
virtual |
TCL command interpreter setdest <integer value>integer value>integer value>: set the movement pattern: the firts two values define the point to be reached (i.e., the direction of the movement) and the third value defines the speed to be used
Moreover it inherits all the OTcl method of Position
- Parameters
-
argc | number of arguments in argv |
argv | array of strings which are the comand parameters (Note that argv[0] is the name of the object) |
- Returns
- TCL_OK or TCL_ERROR whether the command has been dispatched succesfully or no
Definition at line 80 of file uwsmposition.cpp.
◆ getSpeed()
double UWSMPosition::getSpeed |
( |
| ) |
const |
◆ getX()
double UWSMPosition::getX |
( |
| ) |
|
|
virtual |
Method that return the current projection of the node on the x-axis.
If it's necessary (updating time ia expired), update the position values before returns it.
Definition at line 237 of file uwsmposition.cpp.
◆ getXdest()
double UWSMPosition::getXdest |
( |
| ) |
const |
|
virtual |
Method that return the x cooridnate of the destination point.
Definition at line 285 of file uwsmposition.cpp.
◆ getY()
double UWSMPosition::getY |
( |
| ) |
|
|
virtual |
Method that return the current projection of the node on the y-axis.
If it's necessary (updating time ia expired), update the position values before returns it.
Definition at line 267 of file uwsmposition.cpp.
◆ getYdest()
double UWSMPosition::getYdest |
( |
| ) |
const |
|
virtual |
Method that return the y cooridnate of the destination point.
Definition at line 291 of file uwsmposition.cpp.
◆ getZ()
double UWSMPosition::getZ |
( |
| ) |
|
|
virtual |
Method that return the current projection of the node on the z-axis.
If it's necessary (updating time ia expired), update the position values before returns it.
Definition at line 276 of file uwsmposition.cpp.
◆ getZdest()
double UWSMPosition::getZdest |
( |
| ) |
const |
|
virtual |
Method that return the z cooridnate of the destination point.
Definition at line 297 of file uwsmposition.cpp.
◆ isDestReached()
bool UWSMPosition::isDestReached |
( |
| ) |
const |
|
virtual |
◆ setdest() [1/2]
void UWSMPosition::setdest |
( |
double |
x_dest, |
|
|
double |
y_dest, |
|
|
double |
z_dest |
|
) |
| |
|
virtual |
◆ setdest() [2/2]
void UWSMPosition::setdest |
( |
double |
x_dest, |
|
|
double |
y_dest, |
|
|
double |
z_dest, |
|
|
double |
spead |
|
) |
| |
|
virtual |
◆ setX()
void UWSMPosition::setX |
( |
double |
x | ) |
|
|
virtual |
◆ setY()
void UWSMPosition::setY |
( |
double |
y | ) |
|
|
virtual |
◆ setZ()
void UWSMPosition::setZ |
( |
double |
z | ) |
|
|
virtual |
◆ update()
void UWSMPosition::update |
( |
double |
now | ) |
|
|
privatevirtual |
Method that updates both the position coordinates.
Definition at line 173 of file uwsmposition.cpp.
◆ debug_
◆ lastUpdateTime_
double UWSMPosition::lastUpdateTime_ |
|
private |
time in which the TCL command setdest is invoked
Definition at line 145 of file uwsmposition.h.
◆ speed_
double UWSMPosition::speed_ |
|
private |
position on the z-axis of the starting point (when the TCL command setdest is invoked)
Definition at line 156 of file uwsmposition.h.
◆ trgTime_
double UWSMPosition::trgTime_ |
|
private |
◆ Xdest_
double UWSMPosition::Xdest_ |
|
private |
time last updated of the coordinates was computed
Definition at line 147 of file uwsmposition.h.
◆ Xsorg_
double UWSMPosition::Xsorg_ |
|
private |
position on the z-axis of the destination point
Definition at line 150 of file uwsmposition.h.
◆ Ydest_
double UWSMPosition::Ydest_ |
|
private |
position on the x-axis of the destination point
Definition at line 148 of file uwsmposition.h.
◆ Ysorg_
double UWSMPosition::Ysorg_ |
|
private |
position on the x-axis of the starting point (when the TCL command setdest is invoked)
Definition at line 152 of file uwsmposition.h.
◆ Zdest_
double UWSMPosition::Zdest_ |
|
private |
position on the y-axis of the destination point
Definition at line 149 of file uwsmposition.h.
◆ Zsorg_
double UWSMPosition::Zsorg_ |
|
private |
position on the y-axis of the starting point (when the TCL command setdest is invoked)
Definition at line 154 of file uwsmposition.h.
The documentation for this class was generated from the following files: