ros2_lookup_tf
Retrieve the geometric transform between two ROS2 TF frames, specifying target and source with an optional timeout.
Instructions
Lookup geometric coordinate transform between two frames from ROS2 TF tree.
Args:
target_frame: Target coordinate frame (e.g. 'odom' or 'map')
source_frame: Source coordinate frame (e.g. 'base_link' or 'camera_link')
timeout_sec: Timeout in seconds
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": {
"target_frame": "<target_frame>",
"source_frame": "<source_frame>"
},
"name": "ros2_lookup_tf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout_sec | No | ||
| source_frame | Yes | ||
| target_frame | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |