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

State endpoints #2

Open
dimembermatt opened this issue Aug 16, 2020 · 0 comments
Open

State endpoints #2

dimembermatt opened this issue Aug 16, 2020 · 0 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@dimembermatt
Copy link
Contributor

See #1 for kind of an idea how to do this.

There are a couple more endpoints we need to implement:

  • /reset
  • /walk
  • /hop
  • /wiggle
  • /ankles
  • /demo1
  • /demo2

All of these are basically the same: I send a POST request to the endpoint with the payload (essentially it's a single argument, which robot I want to touch), and it should return with result. Either success, we internally changed the state, or failure, and perhaps a reason why we failed. For example, we told robot Pinkie to /hop, but Pinkie isn't on the network.

It should modify the output.json file mentioned in #1. Specifically, the robot_state. Some sort of search is needed to find the correct robot and edit it.

A related issue regarding updating the html to send is presented in #3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants