nav_get_info¶
Overview¶
The nav_get_info application retrieves localization information, map status, and the current zone states of the robot.
Execution¶
The application can be executed using:
python3 nav_get_info/ --auto-run
Inputs¶
No mandatory command-line arguments.
The application automatically loads the necessary map and localization details.
Outputs¶
Log messages indicating the map used, localization status, available locations and zones.
Behavior¶
The application retrieves and displays the current map and localization status.
It provides the robot’s current position in terms of x, y coordinates and yaw.
The application also shows the current status of predefined zones, indicating whether the robot is within any zone (True/False).
Example Output¶
During execution, the output logs follow this pattern:
[INFO] [timestamp] [pyraya.nav_get_info]: Auto running the app
[INFO] [timestamp] [pyraya.nav_get_info]: Available maps:
[INFO] [timestamp] [pyraya.nav_get_info]: - Map_Name
[INFO] [timestamp] [pyraya.nav_get_info]: Robot localized using Map_Name
[INFO] [timestamp] [pyraya.nav_get_info]: Current navigation status: <status_id> <status_name>
[INFO] [timestamp] [pyraya.nav_get_info]:
[INFO] [timestamp] [pyraya.nav_get_info]: Localizations:
[INFO] [timestamp] [pyraya.nav_get_info]: - Location name:location_name
[INFO] [timestamp] [pyraya.nav_get_info]: Location point:
[INFO] [timestamp] [pyraya.nav_get_info]: - x: <x>
[INFO] [timestamp] [pyraya.nav_get_info]: - y: <y>
[INFO] [timestamp] [pyraya.nav_get_info]: - yaw: <yaw>
[INFO] [timestamp] [pyraya.nav_get_info]: ...
[INFO] [timestamp] [pyraya.nav_get_info]: Zones status:
[INFO] [timestamp] [pyraya.nav_get_info]: - <zone_name>, <state>
[INFO] [timestamp] [pyraya.nav_get_info]: ...