Next version 'Nixie' is coming soon !

Help us to get ready with MyRobotLab version Nixie: try it !
Javadoc link
Example code (from branch develop):
#########################################
# Database.py
# description: database - wrapper around jdbc access
# categories: storage
# more info @: http://myrobotlab.org/service/Database
#########################################
 
if ('virtual' in globals() and virtual):virtual=True
else:virtual=False
 
# start the service
database = runtime.start('database','Database')
database.connectionString="jdbc:mysql://HOST/DATABASE"
database.jdbcUser="user"
database.jdbcPassword="password"
 
if not virtual:
  print database.connect()
  resultSet  = database.executeQuery("SELECT * FROM YOUR_TABLE")
  while (resultSet.next()):
    print resultSet.getString("id")
Example configuration (from branch develop):
!!org.myrobotlab.service.config.ServiceConfig
listeners: null
peers: null
type: Database

 

wrapper around jdbc access :

This service will be usefull for connecting to databases.
Tested with script bellow, to connect a mysql database with a simple select

database.executeUpdate : // return int

database.executeQuery : // return ResultSet

database.execute : // return boolean

Remotely debugging the myrobotlab Java source code

I want to have the facility to debug the myrobotlab Java source code for an instance of myrobotlab that runs on a remote device 

One scenario is to have myrobotlab running on a Raspberry Pi and then debug that instance with the Eclipse IDE running on a separate host (Windows laptop)

I have this working up to a point.

​I have this working now. See here

Hi,

Is it possible to switch off kinect for power safe, then switch ON when it is neccessary ?

This an example, but doesn't work:

I have changed that BAUD rate, Set Virtual to LeftSide, and uploaded the code from the IDE, but the MRL is not booting beyond this point.

Javadoc link
Example code (from branch develop):
#file : Mail.py (github)
#########################################
# Mail.py
# more info @: http://myrobotlab.org/service/Mail
#########################################
 
# start the service
mail = runtime.start("mail","Mail")
 
mail.username="who@domain.com"
mail.password="yourpassword"
mail.from=mail.username
mail.to="who@domain.com"
mail.smtpServer="smtp.gmail.com"
mail.smtpServerPort=465
 
mail.subjet="test"
mail.body="body test"
 
mail.sendMailSSL()
Example configuration (from branch develop):
#file : Mail.py (github)
!!org.myrobotlab.service.config.ServiceConfig
listeners: null
peers: null
type: Mail

 

Mail service is usefull to send emails using SMTP protocol ( ssl or tls )

Follow the syntaxe in the exemple, bellow :

Ahoy! Great Picture of Our Illustrious Robot Gurus @ Eiffel Tower !  
Sipping coffee, and occasionally glancing at their mobiles for new build numbers, git issues and using octo-print remote to see if their latest part has printed.  :D

Javadoc link
Example code (from branch develop):
################################################
# HttpClient service is a service wrapper of the Apache HttpClient
# So, you can download webpages, images, and a all sorts of
# goodies from the internet
 
http = runtime.start("http","HttpClient")
 
# blocking methods
# GETs
print(http.get("https://www.google.com"))
print(http.get("https://www.cs.tut.fi/~jkorpela/forms/testing.html"))
 
# POSTs
http.addFormField("Comments", "This is a different comment")
http.addFormField("Box", "yes")
http.addFormField("Unexpected", "this is an unexpected field")
http.addFormField("hidden field", "something else")
 
print(http.post("http://www.cs.tut.fi/cgi-bin/run/~jkorpela/echo.cgi"))
 
http.clearForm()
http.addFormField("NewField", "Value")
http.addFormField("name", "value")
 
# call-back methods
# step one add a listener
# you could also 'subscribe' to the appropriate methods
# e.g. python.subscribe('http','publishHttpData') &
# python subscript('http','publishHttpResponse') - the addListeners
# do the same thing
 
http.addHttpDataListener(python)
http.addHttpResponseListener(python)
 
# define the callback endpoints
def onHttpData(httpData):
  print(httpData.uri)
  print(httpData.contentType)
  print(httpData.data)
  print(httpData.responseCode)
 
def onHttpResponse(response):
  print(response)
 
# make the request and the callbacks will be called when
# the method completes
http.post("http://www.cs.tut.fi/cgi-bin/run/~jkorpela/echo.cgi")
Example configuration (from branch develop):
!!org.myrobotlab.service.config.ServiceConfig
listeners: null
peers: null
type: HttpClient

 

HttpClient service is a service wrapper of the Apache HttpClient
So, you can download webpages, images, and a all sorts of
goodies from the internet.

Javadoc link
Example code (from branch develop):
#########################################
# WikiDataFetcher.py
# description: used as a general template
# more info @: http://myrobotlab.org/service/WikiDataFetcher
#########################################
# start the service
wiki = Runtime.start("wikiDataFetcher", "WikiDataFetcher")
wiki.setWebSite("enwiki")
wiki.setLanguage("en")
 
print(wiki.getDescription("halloween"))
print(wiki.getDescription("empire state building"))
print(wiki.getDescription("the pyramids"))
print(wiki.getDescription("dog"))
 
# french crawl
wiki.setWebSite("frwiki")
wiki.setLanguage("fr") 
print (u"c est quoi un éléphant  : " + wiki.getDescription(u"éléphant"))
Example configuration (from branch develop):
!!org.myrobotlab.service.config.ServiceConfig
listeners: null
peers: null
type: WikiDataFetcher

 

[ service actualy in debug state for some fixes ( quantities ) ]

Mostly copy/paste from Beetlejuice blog post : http://myrobotlab.org/content/wikidatafetcher

This service grab data from wikis website ( for now wikidata )

wikidata store data by entities with an ID , by exemple, Adam Sandler have the ID Q132952 .

each entity contain several elements :