Main

This is the main script of the application.
Author:
  • Edouard Denomme <>
  • Cedric Godin <>
  • Edouard Legare <>
Source:

Members

(inner, constant) hub :events.EventEmitter

Hub event emitter.
Source:
Type:
  • events.EventEmitter

(inner) win :BrowserWindow

Keep a global reference of the window object so it doesn't automatically close.
Source:
Type:
  • BrowserWindow

Methods

(inner) createWindow()

Create the window, loads the html into it and set events.
Source:
Fires:

(inner) startApp()

Start the electron application
Source:

(inner) startNode()

Start all the necessary ROS nodes
Source:
Fires:

Events

data

Fires after receiving data from ROS
Properties:
Name Type Description
data String Data received from ROS
Source:
Type:
  • object

msg

After receiving teleop command from server, publish it to the fromElectron Node
Properties:
Name Type Description
data String JSON string of the teleoperation command
Source:
Type:
  • object

parameters_response

Respond to the parameter_request event with the parameter
Properties:
Name Type Description
parameters String Parameters set in the launch file
Source:
Type:
  • object

patrol-plan

After receiving a patrol from server, publish it to the operatorNavGoal Node
Properties:
Name Type Description
patrolJsonString String JSON object containing the patrol.
Source:
Type:
  • object

rosdata

Send data from ROS to the server.
Properties:
Name Type Description
data String Data coming from ROS to be sent to the server.
Source:
Type:
  • object