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
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| msg_type | No | ||
| topic | No |