subscribe_for_duration
Subscribe to a specific ROS topic for a defined duration to collect messages, specifying message type and maximum message count for precise data gathering.
Instructions
Subscribe to a topic for a duration and collect messages. Example: subscribe_for_duration(topic='/cmd_vel', msg_type='geometry_msgs/msg/TwistStamped', duration=5, max_messages=10)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| duration | No | ||
| max_messages | No | ||
| msg_type | No | ||
| topic | No |