Poppy iOS development

Hi,
The growing interest of Poppy humanoid development leads to Mobile based poppy control development as well. I use to develop for iOS native applications for my leaving… So was thinking can any one put their brain and tell me how to club Poppy framework with iOS native applications?

I have some points in mind may I ask people to add/advice other points…

  1. Can we have REST APIs from Poppy to connect to iOS
  2. We can have Server/Client based algo on Sockets TCP/UDP port.
  3. Or any other may be :blush:

Please note some points

  1. I will appreciate people talk about what is their expectation from an iOS app controlling Poppy
  2. I do not hold a Poppy so I can only use simulator to test iOS application working on Poppy… so need all your guide to design the application. I am waiting to finalize the application work flow design, one it is fine the I will share the code to Git.
  3. Please consider me as the noobest member in robotic forum … So please guide me how to install Poppy in Mac OSX 10.9 and test.

Regards
NicoX

Helllo,

documentation of a REST API (through http or sockets) is available at:
For the REST API you have some documentation here: http://poppy-project.github.io/pypot/remote_access.html4

A related topic on the forum is: Poppy Web Application

Even if you do not have a robot, you shall be able to use the simulator, and going from the simulator to the real robot is actually quite transparent:

As @oudeyer said, you can access the REST API through HTTP protocol or using socket. More precisely, I’ve been using zeromq socket for convenience. It seems to work on iOS as well (see here for details).

@oudeyer

[quote=“oudeyer, post:2, topic:760”]
For the REST API you have some documentation here: http://poppy-project.github.io/pypot/remote_access.html4
[/quote] Seems there is access problem from my side… Is this page exposed for internet too?
I am installing V-REP on OSX 10.10 will post my updates.

@Pierre
I went through http://zeromq.org/build:iphone
But XCode 4.3.3 is way old IDE most updated one is XCode 6.1.1 with iOS 8.
I am checking any solution on their forum.
but for future compatibility we should avoid any dependency on old Apple APIs , as they seem to deprecate old APIs soon. iOS8 is very much different from iOS7 too.
I have my native socket APIs ready by this time so we might check on compatibility their too.

Regards
NicoX

Just an error in the link: Here is the correct one: REST API — pypot 3.1.3 documentation

I’m wondering if this is really a compatibility issue if it’s only the documentation which is deprecated. Let me know if you give it a try!

In any case the HTTP solution will work. It’s just a bit slower.

Update can open http://poppy-project.github.io/pypot/remote_access.html and its fine.
Back home I will try installing V-REF and other stuffs on OSX and try with my TCP Socket code which uses NSStream and connect.
Will update here :smile:

We are planing to work on web application for Poppy. I suugest that we consilidate our effort and work aroud the Rest Api: adding more services, ensure performance.
If we have a rich Rest Api then we can implememnt any kind of User UI (Web, Android, IOS …)

2 Likes

Details on the new REST API can be found in this post:

1 Like

@Nizar_Ellouze
I am currently trying testing to connect REST API from native TCP NSStreems. Will come back one done… Now a bit buried on Office work till next week. I liked your approach … will discuss here on it.
@Pierre Thanks for the link again.

Regards
NicoX

@NicoX I have created a specification document , could you take a look when you have time.
@Pierre is it possible to schedule a meeting on google hangout or skype with all the members interested by the web application.

Nizar

Hi @Nizar_Ellouze

Sorry fro late responding … am back in action now.
I went through Poppy Rest web services and clients

I have completed the TCP Socket through iOS native. It is working great with localhost based HTTP connection. Please give me some more insides how you want us communicate back to your server.

[quote=“Nizar_Ellouze, post:10, topic:760”]
is it possible to schedule a meeting on google hangout or skype with all the members interested by the web application.
[/quote] I am fine with Skype… So that we can make us understand about our steps :smile:

Regards,
NicoX

great, the server is a web server so the communication protocol is http.

Nizar

Sorry for my late answer - it was the holidays season ^^
The Skype meeting sounds like a really good idea. Maybe @ribas could help us organise this?

Maybe a first step would be to see who might be interested?