From fa63d8a9c771c039b986120cf931c4dd2a9b5c26 Mon Sep 17 00:00:00 2001 From: "Scott C. Livingston" Date: Thu, 7 Nov 2024 12:03:25 -0800 Subject: [PATCH] add example rrhttp config --- examples/rrhttp/misty.yaml | 47 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 examples/rrhttp/misty.yaml diff --git a/examples/rrhttp/misty.yaml b/examples/rrhttp/misty.yaml new file mode 100644 index 0000000..0d2f5f2 --- /dev/null +++ b/examples/rrhttp/misty.yaml @@ -0,0 +1,47 @@ +--- +default: block +rules: + - verb: GET + uri: /api/cameras/rgb + schema: + - name: Base64 + optional: true + type: bool + - name: Width + optional: true + type: int + range: [1, 800] + - name: Height + optional: true + type: int + range: [1, 600] + - verb: POST + uri: /api/head + has_body: true + schema: + - name: Pitch + type: float + range: [-40, 0] + - name: Roll + type: float + range: [-15, 15] + - name: Yaw + type: float + range: [-75, 75] + - name: Velocity + type: int + range: [1, 75] + - verb: POST + uri: /api/drive/time + has_body: true + default: block + schema: + - name: LinearVelocity + type: int + range: [-12, 12] + - name: AngularVelocity + type: float + range: [-10, 10] + - name: TimeMS + type: int + range: [1000, 5000]