![]() |
ronelib
Operating System for the r-one robot
|
The neighbor communication provides an API for accessing data about a robot's neighbors and information on those neighbor's neighbors. More...
Go to the source code of this file.
Data Structures | |
| struct | NbrNbr |
| All relevant data about a neighbor's neighbor. More... | |
| struct | NbrNbrList |
| Array of neighbor's neighbors. More... | |
Typedefs | |
| typedef struct NbrNbr | NbrNbr |
| All relevant data about a neighbor's neighbor. More... | |
| typedef struct NbrNbrList | NbrNbrList |
| Array of neighbor's neighbors. More... | |
Functions | |
| void | nbrNbrInit (void) |
| Initializes messages for broadcasting and adds a callback. More... | |
| void | nbrNbrListGetFromNbr (Nbr *nbrPtr, NbrNbrList *nbrNbrList) |
| Get list of neighbor's neighbors. More... | |
| uint8 | nbrNbrListGetSize (NbrNbrList *nbrNbrListPtr) |
| Gets the size of this neighbor's "neighbor list.". More... | |
| void | nbrNbrListPrint (NbrNbrList *nbrNbrListPtr) |
| Print information on neighbor (and information of neighbor's neighbors). More... | |
| NbrNbr * | nbrNbrListGetNbrAtIdx (NbrNbrList *nbrNbrListPtr, uint8 idx) |
| Returns pointer to the neighbors at the input index of this neighborList. More... | |
| NbrNbr * | nbrNbrListGetNbrWithID (NbrNbrList *nbrNbrListPtr, uint8 id) |
| Returns pointer to the neighbor with id of this nbr nbr List. More... | |
| uint8 | nbrNbrGetID (NbrNbr *nbrNbrPtr) |
| Get ID of neighbor's neighbor. More... | |
| int16 | nbrNbrGetBearing (NbrNbr *nbrNbrPtr) |
| Get bearing of neighbor's neighbor. More... | |
| int16 | nbrNbrGetOrientation (NbrNbr *nbrNbrPtr) |
| Get orientation of neighbor's neighbor. More... | |
The neighbor communication provides an API for accessing data about a robot's neighbors and information on those neighbor's neighbors.
This code implements a class-type object and may be difficult to understand.
| typedef struct NbrNbrList NbrNbrList |
Array of neighbor's neighbors.
| int16 nbrNbrGetBearing | ( | NbrNbr * | nbrNbrPtr) |
Get bearing of neighbor's neighbor.
| nbrNbrPtr | pointer to neighbor's neighbor |
| uint8 nbrNbrGetID | ( | NbrNbr * | nbrNbrPtr) |
Get ID of neighbor's neighbor.
| nbrNbrPtr | pointer to neighbor's neighbor |
| int16 nbrNbrGetOrientation | ( | NbrNbr * | nbrNbrPtr) |
Get orientation of neighbor's neighbor.
| nbrNbrPtr | pointer to neighbor's neighbor |
| void nbrNbrInit | ( | void | ) |
Initializes messages for broadcasting and adds a callback.
| void nbrNbrListGetFromNbr | ( | Nbr * | nbrPtr, |
| NbrNbrList * | nbrNbrList | ||
| ) |
Get list of neighbor's neighbors.
| nbrPtr | pointer to neighbor's neighbor |
| nbrNbrList | pointer to where to place list |
| NbrNbr* nbrNbrListGetNbrAtIdx | ( | NbrNbrList * | nbrNbrListPtr, |
| uint8 | idx | ||
| ) |
Returns pointer to the neighbors at the input index of this neighborList.
| nbrNbrListPtr | list of the neighbors of this neighbor |
| idx | index |
| NbrNbr* nbrNbrListGetNbrWithID | ( | NbrNbrList * | nbrNbrListPtr, |
| uint8 | id | ||
| ) |
Returns pointer to the neighbor with id of this nbr nbr List.
| nbrNbrListPtr | list of the neighbors of this neighbor |
| id | robot ID |
| uint8 nbrNbrListGetSize | ( | NbrNbrList * | nbrNbrListPtr) |
Gets the size of this neighbor's "neighbor list.".
| nbrNbrListPtr | list of the neighbors of this neighbor |
| void nbrNbrListPrint | ( | NbrNbrList * | nbrNbrListPtr) |
Print information on neighbor (and information of neighbor's neighbors).
Print roneID and neighbor's ID, bear, orientation, orientation valid If neighbor_nbrnbr_enable is true, print ID and bearing of each neighbor's neighbor. Print name and value of each neighbor field.
| nbrNbrListPtr | list of the neighbors of this neighbor |