Archive for category Herramientas / Tools

Installing Bumblebee for using gazebo and rviz on asus 1215n

I installed ubuntu 11.04 (natty) as a fast solution for the problems I found with 11.10 and in this version I found problems with the drivers of the graphics card to be able to run gazebo and rviz. I found the next error when trying to run gazebo:

Xlib: extension “GLX” missing on display “:0.0″.
Insufficient GL support

To solve the problem it’s enough to install Bumblebee following the instructions of: https://launchpad.net/~bumblebee/+archive/stable

sudo apt-get purge nvidia-current
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update
sudo apt-get install bumblebee

sudo usermod -a -G bumblebee $USER

Reboot and to try if it works they recommend running for 30s: glxspheres
Then compare it with optirun running: optirun glxspheres

In my case I can see how I go from 10fps to 31fps!

When running gazebo without optirun I found the following error:
XRequest.137: BadDrawable (invalid Pixmap or Window parameter) 0×4400002

But using optirun this error does not show up. And we win some fps.

Tags: , , , ,

C Humanoid Lab libraries for Bioloid Premium

Trying to use the library of http://apollo.upc.es/humanoide/trac/wiki/bioloidCframeworks to program the Bioloid I’ve found a couple of problems to compile my project.
I found out that in AVRStudio5.0 I couldn’t build my project because he couldn’t find the lib (.a) of the project. This is so because when you download the project you don’t have the libraries compiled. To solve this problem I needed to execute make in every directory of the libraries:
-motion
-controllers
-dyn_device
Doing this I’ve found that I couldn’t compile it because the PATH to the directory of the embeded_c of Robotis contained brackets (and spaces) and Make didn’t like that. So I just moved the directory to the root of my partition. So I executed: make ROBOTIS_C_DIR=M:\embeded_c
Once the three libraries were compiled the project in AVRStudio build correctly.

Tags: , , ,

Checksum on the motionfiles (.mtn) of the Bioloid

Working with a Bioloid I had the need of modifying a pose file of the Bioloid. This file is structured as a text file that starts with the bytes 0xEF 0xBB 0xBF and after that it details every pose and its data (the position of every motor, etc). I found that in the end of the file there is attached a Checksum, and without that Checksum the Bioloid and it’s software won’t recognize the file.
This Checksum is formed of 2 bytes computed adding the value of every byte of the file 8(including the carriage returns in UNIX format) and in the end changing the sign of the result and getting only the last 2 bytes. This Checksum is added at the end of the file (in the last line, after a carriage return).

Here you can see the Python code that opens the file (that only needs the checksum in the last line) and computes and writes the Checksum.

Tags: , ,

I can’t execute shortcuts .lnk windows 7

Today a friend changed without wanting it the predetermined program to open .lnk’s (shortcuts). The solution to this its easy, you just need to use this registry key (its in a .zip, just execute it and reboot). I found the solution here.

Key (.reg) to restore:

.lnk fix

Tags: , , ,

Installing AVRStudio4 on Windows 7 64bit

I needed to compile some code for a Bioloid (CM-510) so I needed AVRStudio4 (downloadable here, needs register, 116mb) and I had a problem, when I executed the installation it won’t continue, the installer minimizes to the taskbar, and nothing else happens at all.

The workaround for installing it its disable UAC of Windows 7 (reboot, systems tells you to do so) and execute again the installer. (You might want to enable UAC again and reboot).

Found the solution here .

Tags: , ,

Read and write in the register from C#

A friend and me wanted to learn how to read registry entries from C# (to learn some C#, learn something about Windows API calls and for doing something useful).
For our porpouse we chose an IDE: SharpDevelop. Its free and opensource.
We needed some reference information, and we found (spanish) this ubicuos article.
So the code looks like this:

Read the rest of this entry »

Tags: , , , , , ,

Analyze your wifi networks

Until now, the best app that I knew for analyzing wifi networks for things like searching for a free wifi channel for our wifi was for Android(Wifi Analyzer). Yesterday a friend told me about a Windows tool called inSSIDer.
Works like a charm!.

Tags: , ,

Edit video recorded with the TDT .ts

I needed to edit a video recorded with my TDT (saved in .TS format in my case). I used Total Video Converter to change the format to an AVI to edit it with another program (I normally use Virtual Dub for these little things).
Total Video converter is a paid app, its trial versión puts a watermark in our converted video, but if you are not too lazy you will find a solution to that.

Tags: , , , , ,

Try Kinect apps without a Kinect thanks to Fakenect

I’m waiting to get my hands onto a Kinect and while this happens Fakenect from Brandyn White has appeared that can help us to put an eye over the scene.

The instructions to be able to run (for example) the glview demo (I do it on Ubuntu) are:

1) Install the libraries that we'll use for OpenKinect (libfreenect): libusb-1.0 >= 1.0.3, Cmake >= 2.6, OpenGL:
sudo apt-get install libusb-1.0-dev freeglut3-dev libxmu-dev libxi-dev cmake

2) Clone the repository of the project with git to our pc: (if you don't have git: sudo apt-get install git-core)
git clone https://github.com/OpenKinect/libfreenect.git OpenKinect
(It will create a directory called OpenKinect where you are).

3) Create a directory where to compile and build:
cd OpenKinect
mkdir build

4) Use cmake and compile:
cd build
cmake ..
make
sudo make install

5) Now we need a Kinect capture (someone can make one for you if he has a Kinect and the tool "record" from the utils directory) we can use the capture of the Fakenect creator: download from here. Extract it somewhere, I did in: /home/sam/git/legos0

6) Now we can execute glview with the next line (with your FAKENECT_PATH) (you need to use all the line, dunno why, someone knows why?):
LD_PRELOAD="/usr/local/lib/fakenect/libfreenect.so" FAKENECT_PATH="/home/sam/git/legos0" ./bin/glview

Here you have a screenshot of it working:

Tags: , , , ,

A tool for choosing colors for your web (or anything!)

If you are useless choosing colours for your creations (like me!) you can find very useful ColorSchemeDesigner.

In a few steps it suggests what colours you could use starting from a colour you choose and then you can see an example of a web with that colors.

Tags: , , , , ,