Public Member Functions | Private Attributes | List of all members
AGVPosition Class Reference

#include <order_daemon.h>

Public Member Functions

 AGVPosition ()
 
float getTheta ()
 
float nodeDistance (float node_x, float node_y)
 
void updatePosition (float new_x, float new_y, float new_theta, string new_mapId)
 

Private Attributes

string mapId
 
float theta
 
float x
 
float y
 

Detailed Description

Current position of the AGV in map coordinates.

Definition at line 174 of file order_daemon.h.

Constructor & Destructor Documentation

◆ AGVPosition()

AGVPosition::AGVPosition ( )

Constructor for AGV position objects.

Definition at line 185 of file order_daemon.cpp.

Member Function Documentation

◆ getTheta()

float AGVPosition::getTheta ( )

Get theta angle.

Returns
Current theta angle.

Definition at line 206 of file order_daemon.cpp.

◆ nodeDistance()

float AGVPosition::nodeDistance ( float  node_x,
float  node_y 
)

Computes the distance to the next node.

Parameters
node_xx position of the next node.
node_yy position of the next node.
Returns
Distance to the next node.

Definition at line 201 of file order_daemon.cpp.

◆ updatePosition()

void AGVPosition::updatePosition ( float  new_x,
float  new_y,
float  new_theta,
string  new_mapId 
)

Updates last position data to new position.

Parameters
new_xNew value for x coordinate.
new_yNew value for y coordinate.
new_thetaNew value for angle theta.
new_mapIdNew map ID.

Definition at line 193 of file order_daemon.cpp.

Member Data Documentation

◆ mapId

string AGVPosition::mapId
private

Map ID of the current map.

Definition at line 186 of file order_daemon.h.

◆ theta

float AGVPosition::theta
private

theta angle in world coordinates.

Definition at line 183 of file order_daemon.h.

◆ x

float AGVPosition::x
private

x position in map coordinates.

Definition at line 177 of file order_daemon.h.

◆ y

float AGVPosition::y
private

y position in world coordinates.

Definition at line 180 of file order_daemon.h.


The documentation for this class was generated from the following files:


vda5050_connector
Author(s): Florian Rothmeyer , Florian Spiegel
autogenerated on Wed Mar 22 2023 02:38:56