run_ros_node
Launch a ROS 2 node from any package by specifying the package name and node executable. Supports custom node names and additional arguments.
Instructions
Run a ROS 2 node from a package
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"package_name": "<package_name>",
"node_type": "<node_type>"
},
"name": "run_ros_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Additional arguments for the node | |
| node_name | No | Custom name for the node instance | |
| node_type | Yes | The node executable name | |
| package_name | Yes | The ROS 2 package name |