Skip to content

Widgets

The Boards app offers many widgets, availability depends on the robot characteristics.

Monitoring Widgets:

Teleoperation Widgets:

Buttons:

Visualization Widgets:

Joystick

wg3_boards_joystick_widget

Figure 1: Joystick Widget

The Joystick widget allows controlling the position of the robot. Moving the joystick towards the front or towards the back will make the robot start moving forwards or backwards respectively. Moving the joystick towards the sides will make the robot rotate in the same direction.

Letting go of the joystick will make the robot stop immediately.

The Joystick widget has no special configuration options.

Camera View

wg3_boards_camera_widget

Figure 2: Camera View Widget

The camera view widgets show a live feed of a CompressedImage topic offered by the robot (any topic with that type on the robot can be used).

The camera view widget has one configurable property:

  • Image topic: The CompressedImage topic to be displayed.

Motion Button

wg3_boards_motion_btn_widget

Figure 3: Motion Button Widget

The motion button triggers a motion (executed via play_motion) when clicked. The motion can be stopped by clicking on the same button while the motion is running.

The motion button widget has two configurable properties:

  • Label: Text that will be displayed on the button.

  • Motion: Name of the motion that will be used, selectable from the dropdown list of existing motions.

wg3_boards_edit_motion_btn_widget
Figure 4: Motion Widget with motion dropdown list

Bash Button

wg3_boards_bash_btn_widget
Figure 5: Bash Button Widget

Warning

The bash button triggers a bash command on the robot. This option is potentially harmful, so care should be taken to ensure the bash commands given are not problematic for the robot.

The bash button widget has two configurable properties:

  • Label: Text that will be displayed by the button.

  • Command: Bash command to be executed on the robot.

wg3_boards_edit_bash_btn_widget

Figure 6: Bash Widget with code text area

Program Button

wg3_boards_vp_btn_widget

Figure 7: Program Button Widget

The Program Button Widget can be used to launch a Visual Programming program created previously.

The Program Button widget has two configurable properties:

  • Label: Text that will be displayed by the button

  • Program: The visual programming program to be run, to be chosen from the dropdown list of created programs.

wg3_boards_edit_vp_btn_widget
Figure 8: Program Button Widget Edit Section

Some programs can be incomplete when added on the board, in that case the button will be disabled and show a dashed border.

wg3_boards_vp_btn_incomplete
Figure 9: Program Buttons Widgets operative and unoperative, with dashed border

Check the Visual programming app documentation for more information on how to create and manage programs.

Joint Control

The Joint Control Widget allows control of a specific joint of the robot, either through a slider, or with a numeric input field. When the joint is being controlled a second tick will appear on the track, to show the current position of the joint.

The Joint Control widget has one configurable property:

  • Joint name: Name of the joint to be controlled.

wg3_boards_joint_control_widget
Figure 10: Joint Control Widget Edit Section

wg3_boards_joint_control_widget
Figure 11: Joint Control Widget Example

Text to Speech

The Text To Speech Widget allows the user to write a sentence dynamically and have it said by the robot. The sentence can be written in the main area, and the language selected on the dropdown below.

The Say button will trigger the utterance of the sentence as is. It will switch to a Stop button which can be used to stop the speech early.

The Text to Speech Widget has one configurable property:

  • Default Language - language that will be chosen by default on the widget (it can be changed dynamically as well).

wg3_boards_edit_tts_widget
Figure 12: Text to Speech Edit Section

3D Pose

The 3D pose widget displays the robot’s pose based on the feedback of the joints.

This widget has no special configuration options.

wg3_boards_edit_3d_pose_widget
Figure 13: 3D Pose Widget Edit Section

Interacting with the Widget using the mouse:

  • Left click and drag to rotate

  • Wheel to zoom in and zoom out

  • Right click and drag to pan.

wg3_boards_3d_pose_widget_interaction
Figure 14: 3D Pose Widget Example

Topic Display

wg3_boards_topic_display_widget
Figure 15: Topic Display Widget Text Area

The Topic Display Widget displays the latest message received on the selected ROS topic.

The topic display widget has three configurable properties:

  • Label: Name displayed by the widget.

  • Topic: the ROS topic to display

  • Type: the ROS message type for that topic.

wg3_boards_edit_topic_display
Figure 16: Topic Display Widget Edit Section

Below is an example of the /tab_vel topic with the type geometry_msgs/msg/Twist.

Note that, while there was no message received on that topic, it shows an ellipsis.

wg3_boards_topic_display_example
Figure 17: Topic Display Widget Example

Bash Terminal

wg3_boards_bash_terminal_widget
Figure 18: Bash Terminal Widget

The Bash Terminal widget spawns and emulates a terminal process, allowing interactive command and process execution on the robot.

This widget has no special configuration options.

When the terminal first appears on the board, it is inactive. Clicking on the terminal establishes a connection.

wg3_boards_bash_terminal_widget
Figure 19: Bash Terminal Widget Example

Keyboard Shortcuts for the Terminal:

  • Ctrl + Insert: Copy from the terminal.

  • Shift + Insert: Paste into the terminal.

NOTE:
Going to a different board or app will disconnect the terminal.

iFrame

wg3_boards_iframe_widget
Figure 20: iFrame Widget

The iFrame Widget displays an inline iFrame using a custom source. This allows the widget to display another website. The iFrame widget has one configurable property:

  • Source: desired website URL to be displayed.

wg3_boards_iframe_widget
Figure 21: iFrame Widget Edit Section

Below is an example of the iFrame widget displaying the Pal Robotics website.

wg3_boards_iframe_edit
Figure 22: iFrame Widget Example

NOTE:
The source must explicitly allow embedding within an iFrame; otherwise, the widget will fail to load, resulting inan error “source refused to connect”