Send binary data with ICE

a83da264-6e61-4d91-826c-e78688b36730

Ice provides a communication solution that is simple to understand and easy to program with. Yet, despite its simplicity, Ice is flexible enough to accommodate even the most demanding and mission-critical applications.

ICE framework has a few primitive types to send data with the interfaces. Many times you need send binary data as JPG images, objects, music files, etc.The following source (C++) show how you can send easily binary data with ICE.

Continue reading

facebooktwittergoogle_pluslinkedinmailby feather
Posted in jderobot | Leave a comment

Asus Xtion: usb soft reset

xtion

If you have an Asus Xtion pro live and usually you work under GNU/Linux, perhaps you notice than sometimes you can’t read from Asus Xtion because the usb bus has a problem. Unfortunately the only way to solve this problem is  disconnect and connect (physically) the USB connector of the Asus Xtion. But what happens if you don’t have physical access to the machine? Well, I want to show you how you can reset the usb bus of Xtion with a simple script.

Continue reading

facebooktwittergoogle_pluslinkedinmailby feather
Posted in jderobot, robotica | Leave a comment

Video Surveillance HD: Raspberrypi + PiCam + Android

android-security cam

The video-surveillance field is active many years ago, but there is only products that show image and little else. It’s need to add intelligence to surveillance tasks. We are committed to create technology to care for people and avoid dangerous situations. For this we have created a surveillance solution with high intelligence.

· Do you want to know if your baby stands or falls from the crib as soon as possible? Even at night without lights?
· Do you want to know if your baby leaves the room game or leaves the house?
· Do you want to detect if someone is close to the cash register?
· Do you want to create alarms in 3D space to keep your staff safe?

We are working with intelligent sensors to detect these situations and send alarms to the smartphone. These intelligent sensors allow us create 3D alarms in a house/office and provide a safe environment 24 hours per day.

For the moment, the first prototype of surveillance shows how it’s possible access to RaspBerryPi with PiCam using and Android tablet. We are using a standar HD camera without night vision to offer a standar solution for daily situations.

Continue reading

facebooktwittergoogle_pluslinkedinmailby feather
Posted in android, jderobot, rbpi | Leave a comment

RPI Camera Board

IMG_20130523_115254

It’s a great pleasure have this cool gadget. This is the new RPI Camera Board, the essential part in every RPI project! The Raspberry Pi Camera Module is a custom designed add-on for Raspberry Pi. It attaches to Raspberry Pi by way of one of the two small sockets on the board upper surface. This interface uses the dedicated CSI interface, which was designed especially for interfacing to cameras. The CSI bus is capable of extremely high data rates, and it exclusively carries pixel data.

Continue reading

facebooktwittergoogle_pluslinkedinmailby feather
Posted in jderobot | Leave a comment

Always Parcelable, never Serializable (in Android)

“The final conclusion of Android Team is that Serializable in JAVA is far too slow to satisfy Android’s interprocess-communication requirements. So the team built the Parcelable solution”. Just read this sentence is enough to forget Serializable mechanism. But, I want to show you how the faster is Parcelable in comparison with Serializable. We are going to measure the time it takes to pass a structure in Android using the intent when we start a new activity.

We have around 340 nodes into ArrayList structure. Each node is a simple class that contains two String attributes and one Double attribute.

Continue reading

facebooktwittergoogle_pluslinkedinmailby feather
Posted in Uncategorized | Leave a comment

WorldTripLogger working!!

WorldTripLogger

We tried the WorldTripLogger one day before MrHicks46 began his world trip on his motorcycle. We have noticed that the vibrations will be a little bit of a problem because some pictures have some wrong lines in the image, but most of the pictures are very good!. One measure of WorldTripLogger has the following data:

Continue reading

facebooktwittergoogle_pluslinkedinmailby feather
Posted in arduino, floss | Leave a comment

Show your RTSP video in Android with VLC

vlcandroid

If you have developed an Android app with video streaming, I’m sure you notice that Android use a pre-load of video buffer that fills in 10 seconds. This delay is hardcode in the source code. It’s very hard create a real time app to show video with this delay.

There are several solutions out of android to show video streaming. Some of them provide SDK to develop. But if you don’t want develop to other SDK, you can use VLC for android. Thanks to the intent’s communication of Android, we can interact with VLC Android app.

Continue reading

facebooktwittergoogle_pluslinkedinmailby feather
Posted in android, floss | 3 Comments

Android SDK 64bit and Debian amd64

debian_android_logo2

As you know, it’s possible download the Android SDK for 32 and 64 bits architecture.  If you choose 64bit architecture you notice that some binaries are compiled to 32bit architecture

1
2
3
vega:$/android/sdk/platform-tools$ file aapt
aapt: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically 
linked (uses shared libs), for GNU/Linux 2.6.8, not stripped

Installing ia32-libs package was enough to solve this problem, but this package doesn’t install correctly in debian sid. It has been replace by Debian-Multiarch

Continue reading

facebooktwittergoogle_pluslinkedinmailby feather
Posted in android | Leave a comment

Polynomial Regression

polynomial1

Polynomial Regression is a form of linear regression model but fits a non-linear relationship between the value X and Y. Basically we have to add new features to the final equation. But what features? It’s simple we can add the X1 feature as new feature: X1^2 or X1^3. If we have some input features (X1,X2,X3) also we can add new features as X1*X2 or X1^2*X3^2. So, the polynomial regression model is:

As you can see in the following figure you can get a linear regression (red line) or you can get a non-linear regression (blue and  yellow) if you add more features to your equation. The type of curve of non-linear regression model depends of the grade of your polynomial. If the grade of the polynomial is near 1 the model fits to traditional linear regression model. Instead, if the grade of the polynomial is high the model fits to training points.

Continue reading

facebooktwittergoogle_pluslinkedinmailby feather
Posted in codigo, floss, libresoft, machine-learning | Leave a comment

Making screencast for Android classes

android-emulator

I need to record some screencast with audio for my online classes of Android. It’s a good way to explain all the topics about programming and android development. Slides, exercises, moodle and screencast is a cool combination to create high-quality online courses. Also I use a digital tablet to write in the desktop/slides to clarify the explication. Finally I’m used to manage openShot as video editor, it’s simple and very powerful.

I use the following ffmpeg command to record screencast (audio+video) of the desktop and Android emulator:

Continue reading

facebooktwittergoogle_pluslinkedinmailby feather
Posted in android, floss, master-sl | Leave a comment