Labels

3d (4) arduino (1) Bridgeport (1) C++ (4) electronics (1) kinect (2) links (1) machine learning (2) pointcloud (3) powerfeed (1) printing (2) programming (6) r/c (1) reprap (3) robot (1) swarm (1) ubuntu (3) wolfstrap (1) wolstrap (1) workshop (1)
Showing posts with label programming. Show all posts
Showing posts with label programming. Show all posts

Thursday, 6 December 2012

CPL and C++ learning

Working through learning point clouds.

working with openni_view_rgb.cpp

renamed openni_view_mod.cpp

adding in pointer click function to work on events.

pcl — Revision 8190





Wednesday, 5 December 2012

Machine learning


Having a look at machine learning course on you tube.
See hearing aid for link to the first video


Link to course material

Hearing aids?

Thinking of investigating the use of machine learning possibly independant learning algorythum to improve the performance of hearing aids in areas with multiple noise sources.


Basic principle described above

another method Described here

Looking to remove reliance on matlab or Octave



Possible source??

http://openica.sourceforge.jp/


Saturday, 1 December 2012

CPL with kinect

Started using C++ got the kinect functioning with visulisation.

Using SVN 8190?

Running the following code :

source:- http://www.pointclouds.org/documentation/tutorials/openni_grabber.php#openni-grabber




using this to compile with CMakelists.txt


cmake_minimum_required(VERSION 2.8 FATAL_ERROR)

project(openni_grabber)

find_package(PCL 1.2 REQUIRED)

include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})

add_executable (openni_grabber openni_grabber.cpp)
target_link_libraries (openni_grabber ${PCL_LIBRARIES})

With the following result
used ffmpeg to convert .ogv to .avi

ffmpeg -i out.ogv -vcodec libx264 -vpre medium -crf 24 -threads 0 -acodec copy foo.mkv

http://www.youtube.com/watch?v=1KSPYSXg2H8&feature=youtu.be


Thursday, 29 November 2012

Using point clouds

So I finially rewired the wiring for the 3d printer and seem to be getting more consistant results.  So its time to move on to the 3d scanning part.

I came across this excellent C++ Library on point cloud manipulation PCL only problem is I need to try and learn some C++ in order to use the library. I've been using this site www.learncpp.com which gives a good start.


Saturday, 24 November 2012

C++ IDE for ubuntu

Been trying to decide which IDE to use to do C++ programming in Ubuntu.

Loaded eclipse and spent ages trying to get things to compile, no matter what I did it wouldn't work correctly, used pkg-config plugin still no joy.
Command line compiled fine, gave up and started using it purley as a text editor.

Installed Qt creator instead, similar issues although much better help.

Main issue is trying to use C++ libraries.

useful command when trying to solve pkg-config problems:

pkg-config --list-all >pkglist.txt (this lists all known packages and sends to a file for searching)

posted issue on pkg-config here - http://ubuntuforums.org/showthread.php?t=2088584



Decided best way was just to use it to write the .cpp files and use command line compiler.

Using CMakelists.txt and the following:
mkdir build
cd build
cmake ..
make

and then running the file with ./