game_controller_spl
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 ROS2 node that runs on the robot to communicate with the SPL GameController. This node handles bidirectional communication using UDP sockets, receiving game state data from the GameController and sending robot status information back.
Publishers
Topic |
Message Type |
Description |
|---|---|---|
|
|
Publishes game controller data received via UDP (message type depends on rcgcd_version parameter) |
Subscribers
Topic |
Message Type |
Description |
|---|---|---|
|
|
Receives robot status data to send back to GameController |
Parameters
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
int |
|
Port for returning data to GameController |
|
int |
Required |
RoboCup Game Control Data version (14, 15, or 16) |
|
int |
Required |
RoboCup Game Control Return Data version (currently only 4 is supported) |
Example Usage
# Run with RCGCD version 16 and RCGCRD version 4
ros2 run game_controller_spl game_controller_spl --ros-args -p rcgcd_version:=16 -p rcgcrd_version:=4
# Run with custom return port
ros2 run game_controller_spl game_controller_spl --ros-args -p rcgcd_version:=15 -p rcgcrd_version:=4 -p return_port:=3940