grbl_node
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 representing a single GRBL device. This node’s main function is to publish the real-time pose of the GRBL device as a ROS2 transform (tf). Additionally, it enables the ROS2 user to send GCODE commands and files to the GRBL device and monitor its status.
Publishers
Topic |
Message Type |
Description |
|---|---|---|
|
|
Publishes the machine position of the GRBL device |
|
|
Publishes the work position of the GRBL device |
|
|
Publishes the current state of the GRBL device |
|
|
Publishes transforms via TransformBroadcaster |
Services
Service |
Service Type |
Description |
|---|---|---|
|
|
Stops the GRBL device (disables or fires steppers) |
Actions
Action |
Action Type |
Description |
|---|---|---|
|
|
Sends a single GCODE command to the GRBL device |
|
|
Sends a GCODE file to the GRBL device (streams file line by line) |
Parameters
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
string |
|
Unique identifier for the GRBL machine |
|
string |
|
Serial port for the GRBL device |
|
int |
|
Baud rate for serial communication |
|
int |
|
Axis acceleration in mm/min² |
|
int |
|
Maximum X-axis travel in mm |
|
int |
|
Maximum Y-axis travel in mm |
|
int |
|
Maximum Z-axis travel in mm |
|
int |
|
Default velocity in mm/min |
|
int |
|
Maximum X-axis velocity in mm/min |
|
int |
|
Maximum Y-axis velocity in mm/min |
|
int |
|
Maximum Z-axis velocity in mm/min |
|
int |
|
X-axis steps per mm |
|
int |
|
Y-axis steps per mm |
|
int |
|
Z-axis steps per mm |
Example Usage
# Run with default parameters
ros2 run grbl_ros grbl_node
# Run with custom parameters from config file
ros2 run grbl_ros grbl_node --ros-args --params-file /path/to/config.yaml