D-Pad

FREE
CONTROL · 8 FIELDS · 2×2 DEFAULT

Directional buttons for discrete movement

When to reach for it

D-Pad is for discrete directional commands, not continuous velocity: jog increments, menu navigation, or one locked axis like a gripper's open/close (set Directions Shown to Up / Down or Left / Right). For analog driving use Single Joystick or Dual Joystick. For one tap, one action, Custom Button is simpler.

Worked example: TurtleBot3 Burger jog

D-Pad's shipped defaults already wire a jog on /cmd_vel (geometry_msgs/msg/Twist): Up is linear.x 0.5, Down -0.5, Left angular.z 0.5, Right -0.5. That outruns a TurtleBot3 Burger, whose hard cap is 0.22 m/s linear and 2.84 rad/s angular. Scale the four Direction messages down to that before shipping this as a jog rather than a sprint.

Watch out for
  • The four Direction messages are never blank: each ships pre-filled with a real half-speed Twist. Duplicate this widget for another robot and forget one, and it keeps publishing its old velocity, not a stop. Malformed JSON in a message means the tap does nothing at all, silently.
  • Letting go of any button always publishes a zero Twist on this topic, whatever Message Type is actually configured. Repurpose D-Pad for a non-Twist schema like std_msgs/msg/String and every release still fires that Twist-shaped zero underneath it.

Configuration fields

Topictopic

The topic this widget publishes to. While connected, tap to pick from the topics the robot advertises.

Message Typestring

The ROS message type for this topic, e.g. sensor_msgs/msg/Image. Usually auto-filled when you choose a topic.

Hold to Publishboolean

Publish repeatedly while a direction is held, instead of once per tap.

Publish Rate (Hz)PROnumber

Streaming rate while a direction is held.

WITH PRODefault is 10 Hz. Higher rates feel more responsive when jogging the robot a few centimeters at a time; lower rates save bandwidth on slow links.

Directions Shownselect

Which directions this pad controls. Full shows the cross and shrinks to one axis when the widget is small; the others stay fixed at every size.

Full CrossUp / DownLeft / RightSingle
Button Directionselect
UpDownLeftRight
Directionsdpad-directions

Set each direction's published Message. Directions outside the set chosen above are dimmed.

Pad ColorPROselect

The color used to draw this widget.

GoldGreenRedBlue

WITH PROA D-Pad is one molded piece, so it takes a single color rather than per-button colors. Pro lets you tint the whole pad to match a theme, or to tell several pads apart at a glance.