Data
Create a data stream
This endpoint creates a new data stream for a robot.
curl --request POST https://api.airbotics.io/robots/robot0/streams \
--header 'content-type: application/json' \
--header 'air-api-key: <token>' \
--data '{
"source": "/turtle1/cmd_vel",
"type": "geometry_msgs/msg/Twist",
"hz": 1
}'
{
"message": "You have created a data collection stream for that robot."
}
Path parameters
id
string
requiredThe ID of the robot.
Body parameters
source
string
requiredThe source name of the data stream.
type
string
requiredThe ROS message type of the data stream.
hz
number
requiredThe frequency in hz at which the data stream should send data points
curl --request POST https://api.airbotics.io/robots/robot0/streams \
--header 'content-type: application/json' \
--header 'air-api-key: <token>' \
--data '{
"source": "/turtle1/cmd_vel",
"type": "geometry_msgs/msg/Twist",
"hz": 1
}'
{
"message": "You have created a data collection stream for that robot."
}