Skip to content
Malte Langosz edited this page Oct 17, 2018 · 8 revisions

3D View | Tool Panel | Entity Viewer | Console | Configuration | Camera Control

gui_overview

This is the default mars user interface when running in docking mode. You can see a big 3D view and a tool panel on top.

The MARS GUI is completely modular and can be configured in the settings under MarsGui or live in the editor by dragging the widgets around. You also have the choice between a docked mode (single window with widgets) or windowed mode (every widget is its own window). You can toggle the mode with Strg+D or in the menu bar View->Dock

3D View

The 3D view is displaying the visual components of a simulation onto the screen. You can move the camera with your arrow keys or by holding down the middle mouse button for translation in the plane of the cameras view or the right mouse button for zooming. If you hold down the left mouse button you can rotate the camera.

Tool Panel

The tool panel gives access to the most important features of MARS.

tool_panel

  1. Open: Opens a dialog to choose a file of one of the supported formats to load into the simulation.
  2. Clear Simulation: Removes all nodes of the running simulation and resets the scene.
  3. Reset Simulation: Resets a simulation to the state when it was loaded.
  4. MARS Scene:
  5. Add Plane: Adds a plane primitive to the simulation.
  6. Add Box: Adds a box primitive to the simulation.
  7. Add Sphere: Adds a Sphere primitive to the simulation.
  8. Add Mesh: Opens a dialog to import a single mesh into the simulation.
  9. Add Material: Adds a default material to the material list.
  10. Add Light: Adds a light to the simulation.
  11. Add Joint: Adds a joint to two given nodes in the simulation.
  12. Add Motor: Adds a motor to a given joint in the simulation.
  13. Entity Viewer: Opens or closes the Entity Viewer
  14. Start: Starts the simulation.
  15. Pause: Pauses the simulation.
  16. Single Step: Steps one time frame forward in the simulation.
  17. Console: Opens or closes the Console
  18. DataBroker: Opens or closes the DataBroker
  19. DataBroker Connections: Opens or closes the DataBroker Connections View
  20. Configuration: Opens or closes the mars settings dialog.

Entity Viewer

Entity Viewer

The Entity Viewer you can open with (13) in the tool panel lists all nodes, joints, motors, sensors, materials and lights currently loaded in the simulation. There is one quirk though. If you add or remove any entities while the window is open you have to use the UpdateTreeView button for the tree to be updated.

You can also select a number of entities in the listing and delete them from the simulation by using thr Delete Entities button.

On the right side the details of a selected item are shown. You can also manipulate them to alter the behavior of a specific item. More on that in a later tutorial.

Console

Console

The Console is a window for all sorts of debug messages logged by the internal systems of MARS or loaded plugins. The checkboxes (de-)activate messages of a certain level.

DataBroker (Connection)

DataBroker

This window displays all available data streams generated and consumed by MARS and its plugins. The Change View button is just used to alternate between two different styles of the detail representation.

Configuration

Configuration

On this window you can find all available settings for MARS including graphics and simulation settings. More on that in a later tutorial.

Camera Control

Configuration

The menu "View/Camera" allows to select predefined camera positions. The projection type of the camera (orthographic or perspective) can be changed in the Entity Viewer for the window (graphics/window). Also, how the mouse controls the camera can be configured. Options are:

  • default: left -> orientation; middle -> move up/down -- left/right; right -> move forward/backward -- left/right
  • inverted: inverts the default control
  • osg: the OSG default control
  • iso: fixed camera orientation on x and y; left -> move forward/backward -- left/right; right -> rotate around z
  • trackball: left -> zoom in/out; middle -> rotate around camera pivot; right -> select object; key ',' set pivot to selected object or zero

Beside the mouse, also the arrow keys can be used to control the camera. For instance, using the keys and the inverted mouse control is similar to a first person control.

Additionally, a fixed pose for the camera can be configured in the Entity Viewer.