publish_for_durations
Schedule and publish a sequence of ROS messages with specified delays to control robotic movements, enabling precise velocity manipulation through timed commands.
Instructions
Publish a sequence of messages with delays. Example: publish_for_durations(topic='/cmd_vel', msg_type='geometry_msgs/msg/TwistStamped', messages=[{'linear': {'x': 1.0}}, {'linear': {'x': 0.0}}], durations=[1, 2])
Input Schema
Name | Required | Description | Default |
---|---|---|---|
durations | No | ||
messages | No | ||
msg_type | No | ||
topic | No |