Giter Club home page Giter Club logo

darwinserver's Introduction

达尔文服务器端

使用方法

使用HTTP/1.1协议访问1680端口,仅支持GET方法

  • / or /help

    • 获取帮助信息
  • /image

    • 获取摄像头图片
    • 响应数据返回(char*)cv::Mat::data
    • 若无法获取到图像,则响应500 Internal Server Error
  • /audio

  • /audio_stop

    • 停止播放音频文件
  • /motor/walk_start

    • 控制机器人开始行走(原地踏步)
  • /motor/walk

    • 控制机器人行走速度
    • 请求参数x表示直行速度(可选,整数,默认为5);y表示转向速度(可选, 整数,默认为0);msec表示加速延时(可选,整数,单位毫秒,默认为2000)
    • 使用方法举例:http://127.0.0.1:1680/motor/walk?x=30&msec=5000
  • /motor/walk_stop

    • 控制机器人停止行走
  • /motor/fall_up

    • 控制机器人跌倒爬起
  • /motor/head

    • 控制机器人头部运动
    • 请求参数x表示横向移动角度(可选,整数,默认为0);y表示纵向移动角度(可选,整数,默认为60);home表示相对或绝对移动(可选,0表示相对,1表示绝对,默认为1)
  • /motor/action/<index>

注意:所有电机控制方法互斥,在服务器内部加了互斥锁

源码可以访问GitHub查看

darwinserver's People

Contributors

misteo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.