subscribe_once
Subscribe to a ROS topic to capture and return the first message received, enabling immediate access to critical data for robotic control tasks.
Instructions
Subscribe to a ROS topic and return the first message received. Example: subscribe_once(topic='/cmd_vel', msg_type='geometry_msgs/msg/TwistStamped')
Input Schema
Name | Required | Description | Default |
---|---|---|---|
msg_type | No | ||
topic | No |
Input Schema (JSON Schema)
{
"properties": {
"msg_type": {
"default": "",
"title": "Msg Type",
"type": "string"
},
"topic": {
"default": "",
"title": "Topic",
"type": "string"
}
},
"title": "subscribe_onceArguments",
"type": "object"
}