https://github.com/mrquincle/aim_example
AIM (Artificial Intelligence Module) Example
https://github.com/mrquincle/aim_example
Last synced: 7 months ago
JSON representation
AIM (Artificial Intelligence Module) Example
- Host: GitHub
- URL: https://github.com/mrquincle/aim_example
- Owner: mrquincle
- Created: 2012-07-20T12:08:11.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2012-07-20T15:46:39.000Z (about 13 years ago)
- Last Synced: 2025-01-22T09:42:56.135Z (9 months ago)
- Language: C++
- Size: 113 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AIM Example
AIM stands for Artificial Intelligence Modules.## How to get and build this module?
* git clone https://github.com/mrquincle/aim_example.git
* cd aim_example
* make## How to run this module?
* yarp server & # in seperate console, install YARP if you don't have it
* cd build
* ./ExampleModule 12 output.logThe expected result:
Make sure you start the yarp server before if build with YARP
Then run this binary
And connect using "yarp connect /examplemodule{id}/sensor"
yarp: Port /examplemodule12/sensor active at tcp://127.0.0.1:10002
yarp: Port /examplemodule12/sensorarraylength active at tcp://127.0.0.1:10003
yarp: Port /examplemodule12/result active at tcp://127.0.0.1:10004
Read sensor (will be blocking)Now you can try to write to it, start again another console, and:
* yarp write /write /examplemodule12/sensor
This will output:
yarp: Port /write active at tcp://127.0.0.1:10005
yarp: Sending output from /write to /examplemodule12/sensor using tcp
23 2 3 4And the reaction:
yarp: Receiving input from /write to /examplemodule12/sensor using tcp
Write to file: 23 2 3 4
Read sensor (will be blocking)That's all!
## Copyrights
The copyrights (2012) belong to:- Author: Anne van Rossum
- Author: Scott Guo
- Almende B.V., http://www.almende.com and DO bots B.V., http://www.dobots.nl
- Rotterdam, The Netherlands