GUI Demo (simple_gui)
An OpenCV-based visualization demo program. It visualizes maps and robot positions, allowing you to set waypoints with mouse clicks.
Usage
./simple_gui <robot_id> [pcd_path]
# Examples
./simple_gui railab_raibo-xxx
./simple_gui railab_raibo-xxx ../maps/office1_example.pcd
Workflow
Press
Oto open a PCD map fileClick on map to set robot initial position
Click in the direction the robot is facing to set yaw
Press
Sto send map and start localizationClick on map to add waypoints
Press
Wto send waypoints and start navigation
Keyboard Shortcuts
Key |
Function |
|---|---|
|
Open PCD map file |
|
Send map (start localization) |
|
Send waypoints (start navigation) |
|
Clear waypoints |
|
Toggle repetition (1 → 5 → ∞) |
|
Reset initial pose |
|
Zoom in/out |
|
Quit |
Mouse Controls
Left-click: Step-by-step workflow action (position/direction/waypoint)
Right-drag: Pan view
Scroll: Zoom
Status Display
Current step and next action guide displayed at bottom of screen
Waypoints cannot be added before localization is active
Pressing
Swhen localization is already active shows reset instructions
Note
simple_gui uses the zenity package for file selection dialogs.
Install with sudo apt-get install zenity on Ubuntu.