Swagatika@Work
An effort to share my learning at work which revolves around different aspects of computer vision, image processing, robotics.
Saturday, January 30, 2016
Wednesday, December 2, 2015
Tuesday, November 3, 2015
OpenGL : how to install in Ubuntu 14.04
Check if OpenGL is installed or not:
$glxinfo | grep OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GTX 660/PCIe/SSE2
OpenGL core profile version string: 4.3.0 NVIDIA 352.30
OpenGL core profile shading language version string: 4.30 NVIDIA via Cg compiler
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.5.0 NVIDIA 352.30
OpenGL shading language version string: 4.50 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:
If you get error:
Install mesa-utils and run the command again.
$sudo apt-get install mesa-utils
$glxinfo | grep OpenGL
Refer:
http://www.codeproject.com/Articles/182109/Setting-up-an-OpenGL-development-environment-in-Ub
When you run the sample code firstWindow.cpp, you may get an error:
$ g++ firstWindow.cpp -lglut
/usr/bin/ld: /tmp/ccT2pQWr.o: undefined reference to symbol 'glClear'
//usr/lib/x86_64-linux-gnu/libGL.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
solution: add -lGL
$ g++ ./firstWindow.cpp -lGL -lglut
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
I got error.
Solution: Locate libGL.so and create soft link /usr/lib/libGL.so
$ locate libGL.so
/usr/lib/libGL.so.1
/usr/lib/x86_64-linux-gnu/libGL.so
/usr/lib/x86_64-linux-gnu/libGL.so.1
/usr/lib/x86_64-linux-gnu/libGL.so.352.30
/usr/lib/x86_64-linux-gnu/mesa/libGL.so
/usr/local/MATLAB/R2015a/sys/opengl/lib/glnxa64/libGL.so.1
/usr/local/MATLAB/R2015a/sys/opengl/lib/glnxa64/libGL.so.1.5.070200
$ sudo ln -s /usr/lib/libGL.so.1 /usr/lib/libGL.so
Wednesday, August 5, 2015
take backup of your tabs and bookmarks in firefox
I was excited to figure out that its possible to take backup of my tabs, windows and bookmarks, basically my "profile" in firefox! Why? I usually keep many tabs and windows open, all for separate purpose and never close them... who knows when they will be helpful!
This is the link published by mozilla. The steps are quite simple too :)
https://support.mozilla.org/en-US/kb/back-and-restore-information-firefox-profiles
Enjoy!
This is the link published by mozilla. The steps are quite simple too :)
https://support.mozilla.org/en-US/kb/back-and-restore-information-firefox-profiles
Enjoy!
Tuesday, August 4, 2015
Link for Gazebo installation in Ubuntu 12.04 with ROS Hydro package
I had to search a little bit to figure out how to install Gazebo in Ubuntu 12.04 with ROS Hydro package.( Gazebo is now updated with ROS Indigo, which works in Ubuntu 14.04. )
So here is the link:
http://www.gazebosim.org/tutorials?tut=install&ver=1.9&cat=install
After this in terminal,
$ sudo apt-get install ros-hydro-gazebo-ros
$ rosrun gazebo_ros gazebo
So here is the link:
http://www.gazebosim.org/tutorials?tut=install&ver=1.9&cat=install
After this in terminal,
$ sudo apt-get install ros-hydro-gazebo-ros
$ rosrun gazebo_ros gazebo
Monday, May 18, 2015
Link to PASCAL VOC 2007 Dataset
Link where PASCAL VOC 2007 Dataset available:
http://vision.cs.utexas.edu/voc/
(Thanks to Dr Jasper Uijlings)
How to download vis Linux terminal:
$ wget -m -np http://vision.cs.utexas.edu/voc/
(Ref: http://stackoverflow.com/questions/8386894/download-an-svn-repository )
Found the official mirror to PASCAL VOC datasets (Thanks to Dr Jasper Uijlings again):
http://host.robots.ox.ac.uk/pascal/VOC/
Wednesday, May 13, 2015
MATLAB parfor tips from various resources
Ref:
http://vtchl.uiuc.edu/node/537 (Excellent tutorial)
http://www.mathworks.com/help/bioinfo/examples/batch-processing-of-spectra-using-sequential-and-parallel-computing.html?prodcode=DM&language=en (An example program)
http://www.mathworks.com/help/distcomp/parfor.html (MATLAB help page)
Note: Use of parfor consumes more memory than usual and may be slower than serial computation. Some links with useful tips:
http://www.mathworks.com/help/optim/ug/improving-performance-with-parallel-computing.html
Subscribe to:
Posts (Atom)