Skip to content

LeoRover/leo_ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leo_ui

The repository contains User Interface as the default available on LeoOS.

The main functionalities include:

  • steering the robot
  • streaming the camera image
  • reading battery voltage
  • rebooting and shutting down
  • selecting image stream
  • selecting stream mode

User Interface Communication

Comunnication betwen UI and ROS layer is provided by WebSockets. The UI uses JavaScript library called roslibjs to establish connection with rosbridge and provides publishing, subscribing, service calls and other essential ROS functionality.

Camera real-time view build-in UI is available through the web_video_server running as the default on LeoOS. The web video server package transform ROS image topic that can be accessed via HTTP.

alt text

LeoOS default setup

As a default UI is hosted by the 'nginx' server installed on LeoRovers. To open UI use any Web browser and type your Rover IP address. In the case of connecting directly to the access point, the IP address is '10.0.0.1'

UI development

The User Interface folder in LeoOS file system is placed in '/opt/leo_ui' folder. If you would like to make some changes to the default UI you can edit files directly in that folder.

Before editing the UI code, read about ;-)