Functions which handle the Laus-Tracker. More...
Modules | |
Advanced informations | |
Enumerations | |
enum | eLausTrackerOrientation |
clusters the orientation More... | |
enum | eLausTrackerSelectMask |
clusters bit masks for the requests of the Laus-Tracker More... | |
enum | eLausTrackerGet |
clusters select values for reading data from the Laus-Tracker More... | |
Request Funktions | |
void | lausTracker_request (eLausTrackerSelectMask bitmask, eRequestType request) |
Requests new data from the Laus-Tracker. More... | |
eLausTrackerSelectMask | lausTracker_received (eLausTrackerSelectMask bitmask) |
Indicates if new data for the selected data blocks were received. More... | |
eLausTrackerSelectMask | lausTracker_changed (eLausTrackerSelectMask bitmask) |
Indicates if new data changed the selected data blocks. More... | |
Access Funktions | |
uint8_t | lausTracker_get (eLausTrackerGet select) |
Returns the last stored version of the selected value. More... | |
Functions which handle the Laus-Tracker.
The Laus-Tracker system is explained within related pages:
Laustracker (German)
For sending and receiving data on the PC, there exists a ROS module. However, a simplified Python counterpart to the TUC-Bot example is given here - it can be used to test the connection to the robot:
lausTracker.py and packedCom.py
example
enum eLausTrackerGet |
clusters select values for reading data from the Laus-Tracker
Enumerator | |
---|---|
kLausTrackerGetSelfX | constant (1): x-coordinate of one self's robot (0...7) |
kLausTrackerGetSelfY | constant (2): y-coordinate of one self's robot (0...7) |
kLausTrackerGetSelfOrientation | constant (3): orientation of one self's robot |
kLausTrackerGetRivalX | constant (4): x-coordinate of opponent's robot (0...7) |
kLausTrackerGetRivalY | constant (5): y-coordinate of opponent's robot (0...7) |
clusters the orientation
clusters bit masks for the requests of the Laus-Tracker
Enumerator | |
---|---|
kLausTrackerSelectNone | bit mask (0x00): select no data block |
kLausTrackerSelectSelf | bit mask (0x01): select one self's robot |
kLausTrackerSelectRival | bit mask (0x02): select opponent's robot |
kLausTrackerSelectAll | bit mask (0x03): select all data blocks |
eLausTrackerSelectMask lausTracker_changed | ( | eLausTrackerSelectMask | bitmask | ) |
Indicates if new data changed the selected data blocks.
bitmask | bit mask of the selected data blocks - see also eLausTrackerSelectMask The parameter is used to only return the value of the masked changed-bits. All other values(bits) are set to 0. |
uint8_t lausTracker_get | ( | eLausTrackerGet | select | ) |
Returns the last stored version of the selected value.
This function relies on the internal data blocks sLausTrackerSelf and sLausTrackerRival - for new data use lausTracker_request().
select | value of the selected data - see also eLausTrackerGet |
select | description |
kLausTrackerGetSelfX kLausTrackerGetSelfY | one self's robot position |
kLausTrackerGetSelfOrientation | ones self's robot orientation |
kLausTrackerGetSelfX kLausTrackerGetSelfY | opponent's robot position |
eLausTrackerSelectMask lausTracker_received | ( | eLausTrackerSelectMask | bitmask | ) |
Indicates if new data for the selected data blocks were received.
bitmask | bit mask of the selected data blocks - see also eLausTrackerSelectMask The parameter is used to only return the value of the masked received-bits. All other values(bits) are set to 0. |
void lausTracker_request | ( | eLausTrackerSelectMask | bitmask, |
eRequestType | request | ||
) |
Requests new data from the Laus-Tracker.
For details on the request schema see The general request.
Involved data blocks are:
sLausTrackerSelf and sLausTrackerRival
bitmask | bit mask of the selected data blocks - see also eLausTrackerSelectMask |
request | See also eRequestType |