all code here is from Aldebaran documentation
link: http://doc.aldebaran.com/2-1/dev/cpp/tutos/create_module.html#patching-main-cpp
After finish installing C++ SDK, writing code is provided in documentation.
create a folder as project folder, then use command
qisrc create mymodule
in cmd
four files will be created
//these four files is what I created
CMakeLists.txt
main.cpp
qiproject.xml
test.cpp
//these ones are in website
CMakeLists.txt
main.cpp
qibuild.cmake
qibuild.manifest
1. change CMakeLists.txt
original file here
cmake_minimum_required(VERSION 2.8)
# Gi