CsvConnector Service

javadoc

CsvConnector is a service that reads a comma separated file ( .csv ) and publishes one document for each row. 

 

Examples:

[[service/CsvConnector.py]]

BoofCv Service

javadoc

The BoofCv service is a wrapper for the BoofCV open source Java library for real-time computer vision and robotics applications.

References:

https://boofcv.org/index.php?title=Main_Page

http://boofcv.org/javadoc/

It has a lot more possibilities than what has been used in MRL so far.

Examples:

[[service/BoofCv.py]]

AdafruitMotorHat4Pi Service

javadoc

AdafruitMotorHat4Pi is a motor driver board that can be used on the Raspberry PI. It can drive 4 DC motors ( implemented in mrl ) or two stepper motors ( yet to be implemented ).

https://www.adafruit.com/product/2348

To use the motor you need thee services running on the PI.

1. The raspi service. http://myrobotlab.org/service/RasPi

2. This service. It represents the board it'self and communicates with the Raspberry PI using the i2c protocol.

3. One to four MotorHat4P services, one for each motor: http://myrobotlab.org/service/MotorHat4Pi

Examples:

[[service/AdafruitMotorHat4Pi.py]]

InMoovEyelids Service

javadoc

Careful if they are closed, tracking will get borked :)

Service refactored, as test, to use any servo controler

Some 3D parts : 

https://www.thingiverse.com/thing:2548952
https://www.thingiverse.com/thing:1521400
https://www.thingiverse.com/thing:1751434

TODO :

- moveToBlocking instead of sleep
- 1 eyelid only blink

SAMPLE :

 

 

Examples:

[[service/InMoovEyelids.py]]

MotorHat4Pi Service

javadoc

MotorHat4Pi is a motor connected to the AdafruitMotorHat4Pi driver board that can be used on the Raspberry PI. It can drive 4 DC motors ( implemented in mrl ) or two stepper motors ( yet to be implemented ).

https://www.adafruit.com/product/2348

Examples:

[[service/MotorHat4Pi.py]]

How to make a Post with an embedded Python script

GroG's picture

Hi, when you write a post, you may want to reference a script in pyrobotlab. To reference a script, you just need to put the path to the script it in brackets.

For example :

if you have a python script in the pyrobotlab repo, you would write

[[ home/Ray.Edgley/wksr.py ]] and the following script would show up

[[home/Ray.Edgley/wksr.py]]


Setting up Web Kit Speech Recognition With Mary TTS For NOOB's

Ray.Edgley's picture
This set of instructions is based on the Raspberry Pi 3 (RPi3).
To setup the RPi3 please follow the following link: http://myrobotlab.org/content/installing-mrl-raspberry-pi-3-noobs
 
In the tutorial we will be creating Python script which we can execute from within MyRobotLab (MRL)
 

Arduino serial communication with mrl

greg's picture

Hi guys, This is my first time ever using myrobotlab and it is one of the most coolest and intuitive applications i have ever used. I pulled out an arduino last week and tried to mess around the chess services by sending chess commands using the serial port. Unfortunately every time i put a serial.println code in the void loop section of the mrlcomm (after setting the baud rate of course) and uploading to my robotlab, i get an error saying: like the following:

 

“Arduino mrs bad magic number 10”

opencv image

juerg's picture

I am trying to pass an i01.opencv image into a python 3 aruco marker detection program using rpyc.

Found a script from alessandro that creates a jpg file when asking for it. That is a solution that will write the jpg file to disk and my aruco search could load it from there.

Joystick Service

javadoc

 

 

This service allows input from usb joysticks or gamepads. You can attach to a joystick and examine axis or button data.  These button and joystick events can be sent to other services, such as servos or motor services.  It could be used for a "manual" override to take control of a robot.

Examples:

[[service/Joystick.py]]