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 GpsControlFrame(parent, root)[source]
bind_widgets()[source]

Bind widgets to their callback functions.

Returns:None
widgets()[source]

Set up widgets for the frame.

Returns:None
class LidarControlFrame(parent, root)[source]
bind_widgets()[source]

Bind widgets to their callback functions.

Returns:None
widgets()[source]

Set up widgets for the frame.

Returns:None
class MapControlFrame(parent, root)[source]
bind_widgets()[source]

Bind widgets to their callback functions.

Returns:None
widgets()[source]

Set up widgets for the frame.

Returns:None
bind_widgets()[source]

Bind widgets to their callback functions.

Returns:None
widgets()[source]

Set up widgets for the frame.

Returns:None
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.

mainWidgets()[source]

Set up widgets for the main window frame.

Returns:None
set_status(status, hold=False)[source]

This function sets the status bar at the bottom of the window (with a time delay).

Parameters:
  • status (str.) – Key to look up status message in the status_text dictionary.
  • hold (bool.) – When hold=True, the status update will not time out.
Returns:

None

class gui.robot_data_visualizer.ToolbarFrame(parent)[source]

This class represents the toolbar at the top of the window.

bind_widgets()[source]

Bind widgets to their callback functions.

Returns:None
widgets()[source]

Set up widgets for the frame.

Returns:None
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

update_timestamp(idx)[source]

This function updates the timestamp in the main viewing window.

Parameters:idx (int.) – Index into the array of GPS data to be used for retrieval of the time stamp.
Returns:None
widgets()[source]

Set up widgets for the frame.

Returns:None