PlayerCc::MapProxy Class Reference

The map proxy provides access to a map device. More...

#include <playerc++.h>

Inheritance diagram for PlayerCc::MapProxy:
Collaboration diagram for PlayerCc::MapProxy:

List of all members.

Detailed Description

The map proxy provides access to a map device.

Public Member Functions

 MapProxy (PlayerClient *aPc, uint32_t aIndex=0)
 ~MapProxy ()
void RequestMap ()
 Get the map and store it in the proxy.
int GetCellIndex (int x, int y) const
 Return the index of the (x,y) item in the cell array.
int8_t GetCell (int x, int y) const
 Get the (x,y) cell.
double GetResolution () const
 Map resolution, m/cell.
uint32_t GetWidth () const
 Map size, in cells.
uint32_t GetHeight () const
 Map size, in cells.
double GetOriginX () const
double GetOriginY () const
int8_t GetDataRange () const
 Range of grid data (default: empty = -1, unknown = 0, occupied = +1)
void GetMap (int8_t *aMap) const
 Occupancy for each cell.

Private Member Functions

void Subscribe (uint32_t aIndex)
void Unsubscribe ()

Private Attributes


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