pyrobosim.gui.main.PyRoboSimMainWindow

class pyrobosim.gui.main.PyRoboSimMainWindow(world: World, show: bool = True, options: WorldCanvasOptions = WorldCanvasOptions(dpi=100, animation_dt=0.1, show_collision_polygons=False, show_room_names=True, show_object_names=True, show_location_names=True, show_robot_names=True), *args: Any, **kwargs: Any)

Main application window for the PyRoboSim GUI.

Methods

__init__(world[, show, options])

Creates an instance of the PyRoboSim application main window.

closeEvent(_)

Cleans up running threads on closing the window.

create_layout()

Creates the main GUI layout.

get_current_robot()

on_cancel_action_click()

Callback to cancel any running action for the current robot.

on_close_click()

Callback to close a location.

on_detect_click()

Callback to detect objects.

on_navigate_click()

Callback to navigate to a goal location.

on_open_click()

Callback to open a location.

on_pick_click()

Callback to pick an object.

on_place_click()

Callback to place an object.

on_reset_path_planner_click()

Callback to reset the path planner for the current robot.

on_reset_world_click()

Callback to reset the entire world.

on_robot_changed()

Callback when the currently selected robot changes.

on_toggle_collision_polygons(state)

Callback to toggle collision polygons.

on_toggle_location_names(state)

Callback to toggle location name visibility.

on_toggle_object_names(state)

Callback to toggle object name visibility.

on_toggle_robot_names(state)

Callback to toggle robot name visibility.

on_toggle_room_names(state)

Callback to toggle room name visibility.

rand_goal_cb()

Callback to randomize robot goal.

rand_obj_cb()

Callback to randomize manipulation object goal.

rand_pose_cb()

Callback to randomize robot pose.

set_buttons_during_action(state)

Enables or disables buttons that should not be pressed while the robot is executing an action.

set_window_dims([screen_fraction])

Set window dimensions.

set_world(world)

Sets the world for the GUI.

update_button_state()

Update the state of buttons based on the state of the robot.

Attributes

staticMetaObject

update_buttons_signal

Signal for updating UI button state.