From c9fdd2496a504d0df2606e01f89aa2a6a8f142d3 Mon Sep 17 00:00:00 2001 From: eljueves Date: Sat, 19 Aug 2023 14:13:05 -0700 Subject: [PATCH 1/5] Update README.md Fix curl command for initiating robot --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 49cfca7..2fd2b12 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ Get-Command python | %{$_.Source} Spawning a robot: ```bash -curl -XPOST localhost:10001/robot -d '{"template": "HttpRobotTemplate"}' --header "Content-Type: application/json" +C:\Users\TeamX>curl -XPOST localhost:10001/robot -d "{\"template\": \"HttpRobotTemplate\"}" --header "Content-Type: application/json" ``` which will return the port the new robot was spawned on (10002 for the first robot by default). From dbe284c5254ce28b42600175cbd6c8d7e393d114 Mon Sep 17 00:00:00 2001 From: eljueves Date: Sat, 19 Aug 2023 14:23:36 -0700 Subject: [PATCH 2/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2fd2b12..5101215 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ Get-Command python | %{$_.Source} Spawning a robot: ```bash -C:\Users\TeamX>curl -XPOST localhost:10001/robot -d "{\"template\": \"HttpRobotTemplate\"}" --header "Content-Type: application/json" +curl -XPOST localhost:10001/robot -d "{\"template\": \"HttpRobotTemplate\"}" --header "Content-Type: application/json" ``` which will return the port the new robot was spawned on (10002 for the first robot by default). From 4682d7311b313e3b825e1820d2d7648ccf290549 Mon Sep 17 00:00:00 2001 From: eljueves Date: Sat, 19 Aug 2023 14:25:26 -0700 Subject: [PATCH 3/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5101215..5e9624d 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ Get-Command python | %{$_.Source} Spawning a robot: ```bash -curl -XPOST localhost:10001/robot -d "{\"template\": \"HttpRobotTemplate\"}" --header "Content-Type: application/json" + curl -XPOST localhost:10001/robot -d '{\"template\": \"HttpRobotTemplate\"}' --header "Content-Type: application/json" ``` which will return the port the new robot was spawned on (10002 for the first robot by default). From e3eff8ee4e2456885d7b2f42ac90a5e6525c9863 Mon Sep 17 00:00:00 2001 From: eljueves Date: Sat, 19 Aug 2023 14:25:56 -0700 Subject: [PATCH 4/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5e9624d..8576a94 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ Get-Command python | %{$_.Source} Spawning a robot: ```bash - curl -XPOST localhost:10001/robot -d '{\"template\": \"HttpRobotTemplate\"}' --header "Content-Type: application/json" +curl -XPOST localhost:10001/robot -d '{\"template\": \"HttpRobotTemplate\"}' --header "Content-Type: application/json" ``` which will return the port the new robot was spawned on (10002 for the first robot by default). From 321c9f5b9ab2120f9019d94bb5a20d1799f16c91 Mon Sep 17 00:00:00 2001 From: eljueves Date: Sat, 19 Aug 2023 14:31:59 -0700 Subject: [PATCH 5/5] Update README.md update curl command for setting robot motor values --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8576a94..d7c74a6 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ which will return the port the new robot was spawned on (10002 for the first rob Then to send motor values to the robot: ```bash -curl -XPUT localhost:10002/motors -d '{"motors": [{"id": "Motor1", "val": 1.0}]}' --header "Content-Type: application/json" +curl -XPUT localhost:10002/motors -d '{\"motors\": [{\"id\": \"Motor1\", \"val\": 1.0}]}' --header "Content-Type: application/json" ``` Which will return the current sensor values for the robot.