buttons_publisher

This file is ai generated. Do not edit this file directly. Instead, edit the node source code and run the generate-node-docs command to update this file.

Node Description

A simulator node for NAO robot buttons that allows keyboard input to simulate button presses. The node listens for specific key presses and publishes button states, useful for testing NAO robot behaviors without physical hardware.

Publishers

Topic

Message Type

Description

sensors/buttons

nao_lola_sensor_msgs/msg/Buttons

Publishes the current state of NAO button presses

Parameters

Parameter

Type

Default

Description

frequency

int

50

Publishing frequency in Hz (must be greater than 0)

Keyboard Controls

Key

Button

G

Chest button

C

Left Foot Bumper Left

V

Left Foot Bumper Right

B

Right Foot Bumper Left

N

Right Foot Bumper Right

Example Usage

# Run with default frequency (50 Hz)
ros2 run nao_button_sim buttons_publisher

# Run with custom frequency
ros2 run nao_button_sim buttons_publisher --ros-args -p frequency:=100