Raspberry Pi 2 Robot with ROS

Make sure WIFI module is setup correctly.
http://www.maketecheasier.com/setup-wifi-on-raspberry-pi/
--------------------------------------------------------------------------------------------------------------------------
Change keyboard option from gb to us
http://dcoj.wmh3.com/geekstuff/pisu/4.html
--------------------------------------------------------------------------------------------------------------------------
Download gnome connection and setup ssh

If you encounter this (WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! )

Run at host machine (not on Raspberry Pi)
Add Raspberry Pi ip address

ssh-keygen -R 192.168.0.101
--------------------------------------------------------------------------------------------------------------------------
Install ROS on Raspberry Pi
http://wiki.ros.org/ROSberryPi/Installing%20ROS%20Indigo%20on%20Raspberry%20Pi
--------------------------------------------------------------------------------------------------------------------------
Install ROS serial 
http://wiki.ros.org/rosserial_arduino/Tutorials/Arduino%20IDE%20Setup
--------------------------------------------------------------------------------------------------------------------------
Install OpenCV

sudo apt-get install libopencv-dev
--------------------------------------------------------------------------------------------------------------------------
Enable Pi Cam
sudo raspi-config 
--------------------------------------------------------------------------------------------------------------------------
Install Raspiberry Pi Cam Library 
http://www.uco.es/investiga/grupos/ava/node/40

ERROR::
Could not find a package configuration file provided by "raspicam" with any
  of the following names:

    raspicamConfig.cmake
    raspicam-config.cmake

SOLUTION:: add the following line to CMakeLists.txt
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} /usr/local/lib/cmake/)
--------------------------------------------------------------------------------------------------------------------------
ERROR::
CMake Error at /home/pi/ros_catkin_ws/devel/share/catkin/cmake/catkinConfig.cmake:75 (find_package):
  Could not find a package configuration file provided by "cv_bridge" with
  any of the following names:

    cv_bridgeConfig.cmake
    cv_bridge-config.cmake

  Add the installation prefix of "cv_bridge" to CMAKE_PREFIX_PATH or set
  "cv_bridge_DIR" to a directory containing one of the above files.  If
  "cv_bridge" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  pi_gbot/CMakeLists.txt:6 (find_package)


-- Configuring incomplete, errors occurred!
Invoking "cmake" failed

SOLUTION:: add released packages "common_msgs, sensor_msgs, image_transport"
Follow Adding released packages from http://wiki.ros.org/ROSberryPi/Installing%20ROS%20Indigo%20on%20Raspberry%20Pi

pi@raspberrypi ~/catkin_ws $rosinstall_generator common_msgs sensor_msgs image_transport --rosdistro indigo --deps --wet-only --exclude roslisp --tar > indigo-custom_ros.rosinstall
wstool init src
$ wstool merge -t src indigo-custom_ros.rosinstall
$ wstool update -t src
$ rosdep install --from-paths src --ignore-src --rosdistro indigo -y -r --os=debian:wheezy
$cd <ws>

$catkin_make
$catkin_make install
$source <ws>/install/setup.bash

Basically, download released packages using wstool. Then install permanently with $catkin_make and $catkin_make install 
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------

http://wiki.ros.org/qt_create/Tutorials/Qt%20App%20Templates
sudo apt-get install ros-indigo-qt-build
sudo apt-get install ros-indigo-qt-create

you can start the qt from command line. It locates at
/home/<username>/Qt5.4.0/Tools/QtCreator/bin
then run by  ./qtcreator


#create catkin workspace

$ mkdir -p ~/catkin_ws/src
$ cd ~/catkin_ws/src
$ catkin_init_workspace
$ cd ~/catkin_ws/
$ catkin_make
download qdude
put it under catkin_ws/src
open qt from command line
Got to File->Open file or project then look for CMakeLists.txt under qdude

########################################
$catkin_create_pkg learning_image_transport image_transport cv_bridge

########################To setup ros serial#########
cd <ws>/src
  git clone https://github.com/ros-drivers/rosserial.git
  cd <ws>
  catkin_make
  catkin_make install
  source <ws>/install/setup.bash

got ~/catkin_ws/src  and remove $ rm -r rosserial/


under src
$ catkin_create_pkg pi_gbot image_transport cv_bridge


#command to take note #to list all the topics
$rostopic list

#To display all the node (in one node, there could be many topics)
$rosnode list