2018-09-17 19:41:31 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2018-09-17 21:39:35 +02:00
|
|
|
from robot_info import RobotInfo
|
|
|
|
|
2018-09-17 19:41:31 +02:00
|
|
|
class UserInfo:
|
|
|
|
|
2018-09-17 21:39:35 +02:00
|
|
|
def __init__(self):
|
|
|
|
self.selected_robot = None
|
|
|
|
self.robots_id_list = []
|
|
|
|
self.user_stop_state = None
|
|
|
|
self.master_stop_state = None
|
|
|
|
self.clutch_state = None
|
|
|
|
|
|
|
|
def select_robot(self,robot_id):
|
|
|
|
self.selected_robot = RobotInfo(robot_id)
|
2018-09-17 19:41:31 +02:00
|
|
|
|
2018-09-17 21:39:35 +02:00
|
|
|
def deselect_robot(self):
|
|
|
|
self.selected_robot = None
|
2018-09-17 19:41:31 +02:00
|
|
|
|
2018-09-17 21:39:35 +02:00
|
|
|
def update_robots_id_list(self,robots_id_list):
|
|
|
|
self.robots_id_list = robots_id_list
|