bellande_particle/run_api.sh

58 lines
1.3 KiB
Bash
Raw Normal View History

2024-12-18 03:48:38 +00:00
curl -X 'POST' \
2024-12-18 15:08:35 +00:00
'https://bellande-robotics-sensors-research-innovation-center.org/api/Bellande_Particle/move' \
2024-12-18 03:48:38 +00:00
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
2024-12-18 15:08:35 +00:00
"particle": {
"x": 0,
"y": 0,
"heading": 0,
"weight": 1.0
},
"rotation1": 45.0,
"translation": 1.0,
"rotation2": -45.0,
"auth": {
"authorization_key": "bellande_web_api_opensource"
}
}'
curl -X 'POST' \
'https://bellande-robotics-sensors-research-innovation-center.org/api/Bellande_Particle/read_markers' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"particle": {
"x": 0,
"y": 0,
"heading": 0,
"weight": 1.0
2024-12-18 05:02:06 +00:00
},
"world": {
"width": 10.0,
"height": 10.0,
"markers": [[1.0, 1.0]]
},
2024-12-18 15:08:35 +00:00
"auth": {
"authorization_key": "bellande_web_api_opensource"
}
}'
curl -X 'POST' \
'https://bellande-robotics-sensors-research-innovation-center.org/api/Bellande_Particle/create_random' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
2024-12-18 05:02:06 +00:00
"count": 10,
2024-12-18 15:08:35 +00:00
"world": {
"width": 10.0,
"height": 10.0,
"markers": [[1.0, 1.0]]
},
2024-12-18 03:48:38 +00:00
"auth": {
2024-12-18 05:02:06 +00:00
"authorization_key": "bellande_web_api_opensource"
2024-12-18 03:48:38 +00:00
}
}'
2024-12-18 15:08:35 +00:00
2024-12-18 03:48:38 +00:00
echo ""