Code Monkey home page Code Monkey logo

fluentnao's People

Contributors

davesnowdon avatar dnajd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

fluentnao's Issues

Interactive Python Shell

Write a blog post on this and make a video showing how to do it.... Cool tip from Dave!

Add fluentnao & naoutil to PYTHONPATH
Run python
In interactive shell

 import naoutil.naoenv as naoenv
 import fluentnao.nao as nao
 env = naoenv.make_environment(None, ipaddr="127.0.0.1", port=9559)
 nao = nao.Nao(env, None)

Fluent Nao Events

Get rid of my attempt at events and use this:
https://github.com/davesnowdon/naoutil/blob/master/naoutil/src/main/python/naoutil/memory.py

naoscript to be able to tie a script to a event like this

 nao.event.left_bumper(naoScriptId)

and have it fetch script 112 and trigger it when the left_bumper is pressed. :)
add a probability of happening and load in a couple of scripts... it could seem more autonomous

nao.left_bumper(112, .10)
nao.left_bumper(120, .10)
nao.left_bumper(20, .10)

So if the left bumper is touched, it iterates through saved events, each one having a 10 percent chance of happening. first one to happen takes the event.

Dave Snowdon: I'd be tempted to express that as a list of tuples:

nao.left_bumper([(.1, 112), (.1, 120), (.1, 20)])

Also want to do time based events, not sure how I would handle it, but ...

nao.event.time("1:00pm", naoScriptId, probabilityPercent)

Dave Snowdon: I think there is exsiting python code for scheduling

Also want to support others

nao.event.face_recog(naoScriptId, probabilityPercent)

Fluent Nao position offsets

Fluent Nao positions currently only support one offset.. which ends up being in an x or y direction. All positions (ex. nao.arms.up()) should support both x and y offsets in a consistent order.

This is the first thing I need to adjust!

Choregraphe Project Resources

Move Choregraphe projects to a separate repo

  • consolidate projects
  • save main project as a folder
  • create sh script to copy fluent nao and naoutil into the folder

much easier to manage files this way and source control will actually track changes. :)

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.