[CFC] Developing a WebApp for Poppy's creatures

software
call-for-contributions
Tags: #<Tag:0x00007fae8bacc560> #<Tag:0x00007fae8bacc420>

#3

As discussed with people from Inria, I will work on this project.

I’m currently discovering Django, have a very, very short experience of bootstrap and will try to use both. I will also post a design prototype here as soon as possible.


#4

BTW the critical point is not Bootstrap (it is just to have a nice interface) but the actual server behind i.e. Django and friends.


#5

I finally managed to get my django app served by my apache server (apart from some static files…)

I also did a quick preview of what I expect for version 1. No link to the robot yet, this is pure html+css. No bootstrap yet, but it will be easily convertible when everything else is ready.

Remarks welcome.


#6

For me the square “Motors scan” and “quick control” are more important than the others. Upgrade, settings and network config could be smaller (have less surface on the screen). I am also interested to have a “sensor board”, to see for example : position, speed, load, torque etc…

It is just my personal remarks with my little experiments of poppy :blush: But if it could give you some idea…


#7

Nice idea, I advise to add the maximal motor temperature to avoid motor burn and the maximal voltage to monitor battery load (if any battery) above 9.9V. It is just two numbers very useful.


#8

It seems that @Theo has already worked with Django, it can help you to bootstrap the development and make it operationnal quickly.


#9

@manon develop a web app management system you should adapt your interface as you want!


#10

Hi,

In our FabLab, we have some users working on a web interface to monitor Poppy using the API (all in html + js ) :

It looks like that :

To be able to do that, they hacked a bit pypot (all is explained in the github).

Have fun!


#11

Really nice ! I will read this and take (very close) inspiration from it !

What is your licence for this ?


#12


#13

I had my django webapp running on my computer (ubuntu + apache2 server) and I assumed it would work the same on Poppy Humanoid. It didn’t and I sent time wondering why until I discovered that there is a virtualenv. But now wsgi-mod (the stuff that links django to apache) runs on python version and django another.

Is the vistual env really needed ?


#14

Needed… not really. It’s just a way to make sure that the python environment we are using come with exactly what we need and that we can better control the update of the different modules.

I guess we could also setup everything using the system python. In your case, you could also install the mod_wsgi using the pyenv python and it should work.


#15

I guess we could also setup everything using the system python. In your
case, you could also install the mod_wsgi using the pyenv python and it
should work.

I will try that…


Conception de supports pédagogiques (TP) pour lycéens
#16

OK, I tried that, had to recompile mod_wsgi and now it tells me Python has to be recompiled.

I was also advised to try uWSGI, which easily integrate with django and provides a server. I have yet to test everything, but does anyone object if I replace the Apache server by a uwsgi one ?

Edit: well, it seems I can have uWSGI and Apache… I keep you posted.


#17

@Manon Look at that doc, I think it’s exactly what you need.


#18

Sunday is the best day to explore new web tools isn’t it ?

Today’s best tool is Polymer (another google open source framework which is not a framework) dedicated to the building of web apps.

The best way to understand what Polymer is, is to watch the Goole I/O conf’ they did:

In addition, it integrates the material design (also done by Google) which is thought for creating intuitive user interfaces. Even if you do not like this design, I really recommend to look at the material documentation to see what is in a designer’s head when he create an interface. There are a lot of Do and Don’t which are really instructive for us.

Here’s a good (yet too corporate) video explaining what’s behind material design:

Coming back to Polymer, it looks like quite powerful and seems thought for modularity and off-line apps which appears very important for the way we want to handle apps and community work.
It seems also pretty easy to integrate a mix of content which may be interesting for education application where we want mix of video tutorial, coding stuff, data visualisation, webGL simulation and so on.

As example, there are (open source) apps we maybe would like to have :


#19

Based on poppy-monitor and on some work by @Theo, I did a simple yet quite useful webapp:

Install file has been tested ‘a bit’ so be careful. Feedback welcome.


#20

Polymer (and the Web Components) is a very interesting framework for composing web apps. The little I played with the framework gave me a great insight of its capabilities, especially due to the encapsulation of the Components.

I am still wondering about the upcoming browser compatibility of the framework. Currently, it’s limited, and I imagine it ought to become widely supported.

Edit : Currently, the support is natively limited, but the Polyfill library helps bridging the gap for all Evergreen browsers. The exception exists for Internet Explorer, which is correctly supported since version 11. That means no support for IE in Windows before Windows 7.


#21

Hi there,

This could be of interest as well: http://robotwebtools.org/

The main drawback is that it seems to rely on ROS, but relying on Pypot instead is probably possible.

Btw, an interesting alternative of ROS that I’m currently using is YARP (the middleware used by the iCub community). Its main advantage compared to ROS is to be very light (can run on an Android smartphone), quite simple to install and cross-platform. It could be of interest as the core of a visual programming tool “a la Scratch”, to manage communication between modules. (I haven’t found a topic about visual programming so I put it here, let me know if there is a better place I’ll move it).

Cheers


#22

Do you think it could be easily hackable for a Poppy Creature if I plan to create my own? ping @Bumblebee