Skip to content

Commit

Permalink
adding files
Browse files Browse the repository at this point in the history
  • Loading branch information
pattacini committed Jul 10, 2014
1 parent 99e3e6b commit e218b67
Show file tree
Hide file tree
Showing 34 changed files with 10,203 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,10 @@
*.exe
*.out
*.app

# Build products
/build*/

# Linux temp files
*~

20 changes: 20 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright: (C) 2012 Department of Robotics Brain and Cognitive Sciences - Istituto Italiano di Tecnologia
# Authors: Ugo Pattacini, Vadim Tikhanoff
# CopyPolicy: Released under the terms of the GNU GPL v2.0.

cmake_minimum_required(VERSION 2.6)
project(karma)

find_package(ICUBcontrib)
list(APPEND CMAKE_MODULE_PATH ${ICUBCONTRIB_MODULE_PATH})
include(ICUBcontribHelpers)

add_subdirectory(karmaManager)
add_subdirectory(karmaMotor)
add_subdirectory(karmaLearn)
add_subdirectory(karmaToolProjection)
add_subdirectory(karmaToolFinder)
add_subdirectory(app)

icubcontrib_add_uninstall_target()

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
karma
KARMA
=====

Contain modules for experimenting affordance learning with the iCub
26 changes: 26 additions & 0 deletions app/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright: (C) 2011 Department of Robotics Brain and Cognitive Sciences - Istituto Italiano di Tecnologia
# Authors: Vadim Tikhanoff
# CopyPolicy: Released under the terms of the GNU GPL v2.0.

cmake_minimum_required(VERSION 2.6)
find_package(ICUB)
list(APPEND CMAKE_MODULE_PATH ${ICUB_MODULE_PATH})

set(PROJECTNAME karma)

file(GLOB conf ${CMAKE_CURRENT_SOURCE_DIR}/conf/*.ini)
file(GLOB scripts ${CMAKE_CURRENT_SOURCE_DIR}/scripts/*.template ${CMAKE_CURRENT_SOURCE_DIR}/scripts/*.ini)
file(GLOB rad ${CMAKE_CURRENT_SOURCE_DIR}/RAD/*.*)

find_package(YARP)
find_package(ICUBcontrib)
list(APPEND CMAKE_MODULE_PATH ${YARP_MODULE_PATH} ${ICUBCONTRIB_MODULE_PATH})
include(YarpInstallationHelpers)
include(ICUBcontribHelpers)
icubcontrib_set_default_prefix()

yarp_install(FILES ${conf} DESTINATION ${ICUBCONTRIB_CONTEXTS_INSTALL_DIR}/${PROJECTNAME})
yarp_install(FILES ${scripts} DESTINATION ${ICUBCONTRIB_APPLICATIONS_TEMPLATES_INSTALL_DIR})
yarp_install(DIRECTORY RAD DESTINATION ${ICUBCONTRIB_CONTEXTS_INSTALL_DIR}/${PROJECTNAME})


8 changes: 8 additions & 0 deletions app/RAD/ActionDefinitionsSimple.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
release defined
play not-defined
goto defined
grasp defined
put learned
touch defined
tap defined
stop stop
3 changes: 3 additions & 0 deletions app/RAD/Place.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
grasp object
release object location
stop stop
4 changes: 4 additions & 0 deletions app/RAD/SharedPlan.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
larry grasp box
robert put toy right
larry release box middle
stop stop stop
Loading

0 comments on commit e218b67

Please sign in to comment.