Is it possible to use IBM watson-intu and Choregraphe (Nao/Pepper) together - pepper

I would like to know if it is possible to create behaviors (using the tablet and using motors) in Choregraphe for Pepper, and call them from intu?
Or is there a way to use native function of Naoqi in intu directly?
Thanks

You should write a Qi Service and run it on the robot. Qi Services (formerly ALModules) registered in NAOqi's Service Directory can be called remotely using libQi in a client (formerly ALProxy).
I don't know IBM Watson Intu, but if you can write a client using jointly libQi and Watson IBM Intu, I think you can easily bridge from one to the other.

Related

Trying to determine proper notification design

We are building an internal application which will do the following:
Run as a Windows Service
Scan various server/platform types to confirm they are up and running
Call the HeartBeat() method on all of our WCF services
What we want to do is then (for each server) send a notification broadcast so that a listener can pick up the data and display the realtime results in a dashboard environment.
In addition, the data will be collected by the listener for drilldown or reporting purposes.
I'm having a hard time determining what is the proper approach for broadcasting results. SNMP seems like a good fit but I'm not sure how easy it would be to implement in C#. I've looked at WMI and SNMP at the moment.
I'm looking for input on alternatives to either SNMP or WMI for the broadcast approach.
If you're programming exclusively in C#, then your best bet is to find some C# SNMP library that you will probably have to purchase.
If you're wanting to go with portability and standards, then go with SNMP.
If you're always going to be using Win32 C# then go with a WMI solution.
If you don't mind coding outside of C# and instead C or C++ and want to make things compatible with other systems, then I would highly recommend working with Net-SNMP and building an SNMP agent from that.

Rails WebService and C++ application to expose

(Sorry for my english)
First: I have an application created using C++ (this is for performance needs), this application uses an image to make some processing and returns a simple answer (1 or 0 ).
Now I need to expose this application from a webservice.
I think to create a webservice using Rails, but I don't know if it's possible using rails to call the C++ process..
The idea is to use the webservice to get an image sent by a client, pass this image to the C++ application and return (using the webservice) a message to the client, based on the result of C++ application.
Is this possible?
Any example or guideline?
Thanks in advance
EDIT: Solved using Thrift thrift.apache.org
I read something about Thrift .. but i think maybe i can't use to solve this problem (maybe) ..
The idea is use a mobile application (iOS and/or Android) where the user can upload an image to the service. The service take the image and make some image processing, this part (the processing) was written with C++ as standalone application that receive an image and return a message, so when the processing is done, the service receive the result (a message) from the processing app and return this to the mobile application.
So.. is this possible with Thrift (if so, i need to read more)? o i need to use something else?
Thanks in advance
I have never done that before, but I think you should take a look at Thrift which was initially developed by Facebook and allows you to make multiple languages work together via RPC calls.
Thrift allows you to define data types
and service interfaces in a simple
definition file. Taking that file as
input, the compiler generates code to
be used to easily build RPC clients
and servers that communicate
seamlessly across programming
languages.
I encourage you to search on Google with the following keywords : thrift C++ rails webservice etc.

Interfacing existing C++ code with flex

I have existing video streaming application which is based client server technlogy.
Existing system is as follows There is data center, client application and gateway. camera is connected with gateway and gateway is connected with data center.client request video to data center and datacenter get it from gateway.
Now we want to use p2p technology here and want to have direct communication between gateway and client.we want to use RTMFP .for client we can use flex, but the existing gtateway code and business logic is written on c++.
Is there any way around to call c++ code from flex.
Thanks
Hey,
Yes this is pretty much possible with flex 4,(ie. only if you are using a desktop application).From a web based swf, running in a browser you cannot start running a C++ code.
I am assuming that you are developing a desktop app.To call a c++ code , you would need to do the things mentioned in the following example link.It is pretty straightforward.
http://www.adobe.com/devnet/air/flex/quickstart/articles/interacting_with_native_process.html
Or, incase you have access to the C++ code, then you can use a few already built classes which allow C++/Flex interaction.
http://anirudhs.chaosnet.org/blog/2008.03.13.html

How to send stream data via Bluetooth from an iPhone/iPod Touch to a Windows C++ application?

I need to develop an iPhone/iPod Touch application that creates a server to send some data stream (characters or bytes) to a Windows C++ application via Bluetooth. I'm thinking of creating a TCP connection, but don't know where to start.
What iPhone API should I use do to something like this? Does anyone knows some code examples that i can use to do this?
And in Windows, what should I use to support this kind of communication?
Thanks
Yes. From what it looks like you can use the PAN bluetooth profile (the same profile used for tethering) with everything except the original iPhone.
Here's an article doing bluetooth over iPhone/iPad using GameKit. The article notes that you would need at least 2 iPhone/iPad devices running iPhone OS 3.0, but I wouldn't take that as an impossibility to talk to any other bluetooth capable device.
Update
This forum indicates that the iPhone is only capable of headset pairing. It could be that the iPhone is "picky" about what you can pair it with.
"The iPhone only recognizes the "headset" profile. Another well thought out idea from Apple. No A2DP profiles, no OBEX."
-sapporobaby
Update 2
As jamone as indicated iPhone 3.0 supports A2DP. How nice is that?
Here's a table listing of iPhone/iPad bluetooth supported profiles
I'm pretty sure third-party developers don't have sufficient access to the Bluetooth stack to do this via published APIs (i.e. via an app you publish to the App Store).
Is using WiFi an option? That's what most developers seem to be using for client/server communications. If that's the case, see if you can distribute Apple's Bonjour runtime with your app. If you search the developer site for Bonjour, they have code samples (though probably no Windows examples).

Would it be possible to use web services from a Cobol program?

We have some COBOL programs in our financial applications which need to interact with some of our backend systems. One of the available interfaces is through a web service. Can a program written in Cobol make requests to a web service?
Microfocus provide a tool called Enterprise Server which allows COBOL to interact with web services.
If you have a COBOL program A and another COBOL program B and A calls B via the interface section, the tool allows you to expose B's interface section as a web service.
For program A, you then generate a client proxy and A can now call B via a web service.
Of course, because B now has a web service any other type of program (command line, Windows application, Java, ASP etc.) can now also call it.
I've never used COBOL but from quick Google search it looks like it's possible.
This looks like it'll help, and talks about integrating webservices with cobol through c code.
What platform is this on? IBM's CICS supports webservices invokationnn from cobol program via EXEC CICS INVOKE.
ibm is now trying to implement a technology called embedded websphere with java.
ibm belives this is the only way to give the life to mainframes.
I know I can write a WebService with Delphi and call a COBOL DLL or
call a Delphi dll to comunicate with webservice.
Right now Im writing a webservice client, it will be a DLL, and Ill call from old COBOL systems.
If you have and are using CICS, it has built-in mechanisms for that. But assuming you can't use that for some reason, you can build an HTTP client using the IBM TCP/IP 'EZASOKET' modules.
I work for a company with a z/OS system running mostly COBOL, batch (JCL) and CICS. To call webservices, we wrote a module to implement HTTP 1.0 using TCP/IP. With modules
EZASOKET
GETHOSTBYNAME
SOCKET
CONNECT
WRITE
FCNTL
READ
CLOSE
SELECTEX
supplementary modules:
EZACIC04 translates EBCDIC to ASCII
EZACIC05 translates ASCII to EBCDIC
EZACIC06 convert character to bit mask
EZACIC08 decode IP address
Since I wrote this for my company, I can't just give out the code. But for reference, it took me 3 days to write the module (plus a little debugging later), and that was with an example to start with that did a partial hacky way of doing it.
You will need to read through IBM's references to know how to use the EZA modules.
http://publib.boulder.ibm.com/infocenter/zos/v1r11/index.jsp?topic=/com.ibm.zos.r11.halc001/sampcs.htm