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 |
Input Schema (JSON Schema)
{
"properties": {
"durations": {
"default": [],
"items": {},
"title": "Durations",
"type": "array"
},
"messages": {
"default": [],
"items": {},
"title": "Messages",
"type": "array"
},
"msg_type": {
"default": "",
"title": "Msg Type",
"type": "string"
},
"topic": {
"default": "",
"title": "Topic",
"type": "string"
}
},
"title": "publish_for_durationsArguments",
"type": "object"
}