Skip to content

Kajvdh/nao-flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Nao-flask

An attempt to control a Nao robot via a Python back-end using the Flask framework.

Required dependencies

Sidenote: Based on this tutorial http://blog.miguelgrinberg.com/post/designing-a-restful-api-with-python-and-flask

How to use

POST VERB

TO let the Nao say something, send a POST request to /say with application_json as the body data type. The text that the Nao robot needs to say has to be in a Json with text as its key:

curl -i -H "Content-Type: application/json" -X POST -d '{"text":"Hello, I am Nao!"}' http://localhost:5000/say

GET VERB

To show an approach using the GET http verb, i created an /ask/:textToAsk endpoint. For example go to: http://localhost:5000/ask/HelloHowAreYou

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages