2018-11-26 18:40:23 +01:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# coding=utf-8
|
|
|
|
|
|
|
|
from language import LanguageTexts
|
|
|
|
|
|
|
|
class EnglishTexts(LanguageTexts):
|
|
|
|
|
|
|
|
# Warning popup for robot unlocking
|
|
|
|
warning_text_1 = "ATTENTION"
|
|
|
|
warning_text_2 = "Are You sure You want to unlock the robot?"
|
|
|
|
|
|
|
|
# Button texts
|
|
|
|
select_text = 'Select'
|
|
|
|
|
|
|
|
stop_robot_text = "STOP robot"
|
|
|
|
unlock_robot_text = "UNLOCK robot"
|
|
|
|
|
|
|
|
disengage_clutch_text = "Disengage clutch"
|
|
|
|
engage_clutch_text = "Engage clutch"
|
|
|
|
|
|
|
|
release_robot_text = 'Release robot'
|
|
|
|
|
|
|
|
|
|
|
|
# Logger info texts
|
|
|
|
robot_selected_text = 'PIONIER{0} selected!'
|
|
|
|
robot_released_text = 'Robot released'
|
|
|
|
stopped_and_engaged_text = "Robot will be stopped and clutch engaged"
|
|
|
|
|
|
|
|
master_stop_clicked_text = 'MasterSTOP button pressed. Stopping the robots'
|
|
|
|
master_stop_released_text = 'MasterSTOP button released. Robot can be unlocked'
|
|
|
|
|
|
|
|
robot_stopped_text = 'Robot stopped'
|
|
|
|
robot_started_text = 'Robot started'
|
|
|
|
|
|
|
|
clutch_disengaged_text = 'Disengaging the clutch'
|
|
|
|
clutch_engaged_text = 'Engaging the clutch'
|
|
|
|
|
|
|
|
obstacle_detected_text = 'Obstacle detected. Robot stopped'
|
|
|
|
obstacle_removed_text = 'Obstacle removed'
|
|
|
|
|
|
|
|
|
|
|
|
# Logger error/problem messages
|
|
|
|
selection_error_text = 'Select the PIONEER from robots list first'
|
|
|
|
cannot_start_masterstop_text = "Robot can't be started. MasterSTOP pressed!"
|
|
|
|
cannot_start_obstacle_text = "Robot can't be started. Obstacle detected!"
|
|
|
|
cannot_select_robot_text = "Robot can't be selected. It is already selected by another group"
|
|
|
|
connection_to_robot_lost_text = 'Connection lost with robot PIONIER{0}'
|
|
|
|
connection_to_master_lost_text = 'Connection lost with masterSTOP. Ask the teacher to run it'
|
|
|
|
|
|
|
|
|
2018-11-26 19:52:40 +01:00
|
|
|
# Description labels
|
|
|
|
linear_text = '<html><head/><body><p align="center"><span style=" font-weight:600;">Linear velocity</span></p></body></html>'
|
|
|
|
angular_text = '<html><head/><body><p align="center"><span style=" font-weight:600;">Angular velocity</span></p></body></html>'
|
|
|
|
id_text = '<html><head/><body><p align="center"><span style=" font-weight:600;">Robot ID</span></p></body></html>'
|
|
|
|
battery_text = '<html><head/><body><p align="center"><span style=" font-weight:600;">Battery state</span></p></body></html>'
|
|
|
|
masterstop_text = '<html><head/><body><p align="center"><span style=" font-weight:600;">Master Stop</span></p></body></html>'
|
|
|
|
obstacle_text = '<html><head/><body><p align="center"><span style=" font-weight:600;">Obstacle Stop</span></p></body></html>'
|
|
|
|
robot_text = '<html><head/><body><p align="center"><span style=" font-weight:600;">Robot state</span></p></body></html>'
|
|
|
|
restrictions_text = '<html><head/><body><p align="center"><span style=" font-weight:600;">Restrictions</span></p></body></html>'
|
|
|
|
history_text = '<html><head/><body><p align="center"><span style=" font-weight:600;">Message history</span></p></body></html>'
|
|
|
|
|
|
|
|
|
2018-11-26 18:40:23 +01:00
|
|
|
|
|
|
|
def __init__(self):
|
|
|
|
pass
|