Coder Social home page Coder Social logo

dtbinh / hexapod-sim Goto Github PK

View Code? Open in Web Editor NEW

This project forked from billhsu/hexapod-sim

0.0 2.0 0.0 20.68 MB

hexapod simulator

CMake 0.63% C++ 65.74% Lua 0.35% C 25.83% Ruby 0.01% JavaScript 0.10% Batchfile 0.04% Python 0.03% HTML 4.57% Objective-C++ 0.12% GLSL 0.03% Shell 1.33% Objective-C 0.15% Groff 1.07%

hexapod-sim's Introduction

Hexapod Simulator

A simulator for Hexapods.
Demo video

How to build

./configure.sh
cd Hexapod
make

How to run

cd Hexapod
./Hexapod

How to control the servos

telnet localhost 5555
#{servoId}P{PWM}  

{servoId} is from 1 to 9 and from 32 to 24, {PWM} is from 500 to 2500.

Sample

#1P1500#2P3000

You can config the servo mapping in Hexapod/config.txt.

How to run multiple commands

Save the commands in a file(e.g. testData.txt)

#1P1500#2P2000#3P1277#29P1500#28P1000#27P1722#7P1500#8P2000#9P1277#32P1833#31P1611#30P1277#4P1166#5P1388#6P1722#26P1833#25P1611#24P1277T400\r\n
#1P1500#2P1388#3P1722#29P1500#28P1611#27P1277#7P1500#8P1388#9P1722#32P1833#31P1000#30P1722#4P1166#5P2000#6P1277#26P1833#25P1000#24P1722T400\r\n
#1P1166#2P1388#3P1722#29P1833#28P1611#27P1277#7P1166#8P1388#9P1722#32P1500#31P1000#30P1722#4P1500#5P2000#6P1277#26P1500#25P1000#24P1722T400\r\n

Then run the following command

cd Hexapod
./run_command.rb testData.txt

Screenshot

Screenshot

hexapod-sim's People

Contributors

billhsu avatar

Watchers

James Cloos avatar Do Thanh Binh 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.