Graphical user interface¶
-
class
gui.robot_data_visualizer.
ControlFrame
(parent)[source]¶ This class represents the controls on the right hand side of the main window. There are two nested classes for the slam and map controls.
-
class
gui.robot_data_visualizer.
MainWindow
(parent)[source]¶ This is the main window for the application. Here the main layout is established using a combination of the above classes and individual tkinter widgets.
-
class
gui.robot_data_visualizer.
ToolbarFrame
(parent)[source]¶ This class represents the toolbar at the top of the window.
-
class
gui.robot_data_visualizer.
VisualizerFrame
(parent)[source]¶ This is the main window where the robot data is seen by the user.
-
callback_date_changed
()[source]¶ This callback responds to a change in the date selection menu in the toolbar.
Returns: None
-
callback_gps_off
()[source]¶ This callback responds to the Off button under the GPS Control menu.
Returns: None
-
callback_gps_on
()[source]¶ This callback responds to the On button under the GPS Control menu.
Returns: None
-
callback_gps_slider_changed
(event)[source]¶ This callback responds to the Off button under the GPS Control menu. :return: None
-
callback_initialize_data_manager
()[source]¶ This callback responds to the Load Data button.
Returns: None
-
callback_map_off
()[source]¶ This callback responds to the Off button under the Map Control menu.
Returns: None
-
callback_map_on
()[source]¶ This callback responds to the On button under the Map Control menu.
Returns: None
-
get_idx_for_gps_update
()[source]¶ This function returns the index to be used for updating the GPS data. :return: int – the index to be used for the GPS update
-
get_idx_for_lidar_update
()[source]¶ This function returns the index to be used for updating the Lidar data.
Returns: int – the index to be used for the Lidar update
-
get_map_scale
()[source]¶ This function calculates the map scale in units of meters per pixel.
Returns: float64 – map scale (m/px)
-
get_timestamp_for_gps_update
(gps_data_idx)[source]¶ This function returns the timestamp in a readable format for the given GPS data index.
Parameters: gps_data_idx – Index into the array of GPS data to be used for retrieval of the time stamp. Returns: str – the timestamp
-
setup_data
(date)[source]¶ This function sets up all of the data (except lidar) needed by the application.
Parameters: date (str.) – Determines which date from the robotics dataset to use. Returns: None
-
update_gps
(idx)[source]¶ This function updates the GPS data that is displayed in the main viewing window. :param idx: Index into the array of GPS data that is to be displayed. :type idx: int. :return: None
-