Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #79

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ 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).

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.
Expand Down