[openrtm-commit:01364] r122 - in branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking: . cmake doc doc/content idl include/ObjectTracking src
openrtm @ openrtm.org
openrtm @ openrtm.org
2014年 3月 17日 (月) 15:00:55 JST
Author: kawauchi
Date: 2014-03-17 15:00:55 +0900 (Mon, 17 Mar 2014)
New Revision: 122
Removed:
branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/RTC.xml20130612093727
Modified:
branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/CMakeLists.txt
branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/ObjectTracking.conf
branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/README.ObjectTracking
branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/RTC.xml
branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/cmake/CMakeLists.txt
branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/cmake/cpack_options.cmake.in
branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/cmake/wix.xsl.in
branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/doc/CMakeLists.txt
branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/doc/content/index.txt
branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/doc/content/index_j.txt
branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/idl/CMakeLists.txt
branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/include/ObjectTracking/CMakeLists.txt
branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/include/ObjectTracking/ObjectTracking.h
branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/src/CMakeLists.txt
branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/src/ObjectTracking.cpp
Log:
ObjectTracking : Adjusted cmake files for the package, fixed RTC.xml, converted to the UTF-8 character code and delete unnecessary file. refs #2704
Modified: branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/CMakeLists.txt
===================================================================
--- branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/CMakeLists.txt 2014-03-17 03:42:53 UTC (rev 121)
+++ branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/CMakeLists.txt 2014-03-17 06:00:55 UTC (rev 122)
@@ -1,110 +1,122 @@
-cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
+cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
cmake_policy(SET CMP0002 OLD)
+
+project(ObjectTracking)
+string(TOLOWER ${PROJECT_NAME} PROJECT_NAME_LOWER)
+include("${PROJECT_SOURCE_DIR}/cmake/utils.cmake")
+set(PROJECT_VERSION 1.1.0 CACHE STRING "ObjectTracking version")
+DISSECT_VERSION()
+set(PROJECT_DESCRIPTION "Objecttrack component")
+set(PROJECT_VENDOR "AIST")
+set(PROJECT_AUTHOR "AIST")
+set(PROJECT_AUTHOR_SHORT "AIST")
+
+set(LINUX_PACKAGE_GENERATOR "DEB")
+#set(LINUX_PACKAGE_GENERATOR "RPM")
+set(PROJECT_MAINTAINER "Noriaki Ando <n-ando at aist.go.jp>")
+set(PROJECT_TYPE "c++/opencv-rtcs")
-project(ObjectTracking)
-string(TOLOWER ${PROJECT_NAME} PROJECT_NAME_LOWER)
-include("${PROJECT_SOURCE_DIR}/cmake/utils.cmake")
-set(PROJECT_VERSION 1.0.0 CACHE STRING "ObjectTracking version")
-DISSECT_VERSION()
-set(PROJECT_DESCRIPTION "Objecttrack component")
-set(PROJECT_VENDOR "AIST")
-set(PROJECT_AUTHOR "AIST")
-set(PROJECT_AUTHOR_SHORT "AIST")
-
-# Add an "uninstall" target
-CONFIGURE_FILE ("${PROJECT_SOURCE_DIR}/cmake/uninstall_target.cmake.in"
- "${PROJECT_BINARY_DIR}/uninstall_target.cmake" IMMEDIATE @ONLY)
+# Add an "uninstall" target
+CONFIGURE_FILE ("${PROJECT_SOURCE_DIR}/cmake/uninstall_target.cmake.in"
+ "${PROJECT_BINARY_DIR}/uninstall_target.cmake" IMMEDIATE @ONLY)
ADD_CUSTOM_TARGET (${PROJECT_NAME}_uninstall "${CMAKE_COMMAND}" -P
- "${PROJECT_BINARY_DIR}/uninstall_target.cmake")
+ "${PROJECT_BINARY_DIR}/uninstall_target.cmake")
+
+#option(BUILD_EXAMPLES "Build and install examples" OFF)
+option(BUILD_DOCUMENTATION "Build the documentation" OFF)
+#option(BUILD_TESTS "Build the tests" OFF)
+#option(BUILD_TOOLS "Build the tools" OFF)
+option(BUILD_IDL "Build and install idl" ON)
+option(BUILD_SOURCES "Build and install sources" OFF)
+
+option(STATIC_LIBS "Build static libraries" OFF)
+if(STATIC_LIBS)
+ set(LIB_TYPE STATIC)
+else(STATIC_LIBS)
+ set(LIB_TYPE SHARED)
+endif(STATIC_LIBS)
+
+if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
+ # Mac OS X specific code
+ SET(CMAKE_CXX_COMPILER "g++")
+endif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
+
+
+# Set up installation directories
+if(WIN32)
+# set(BIN_INSTALL_DIR "components/bin")
+# set(LIB_INSTALL_DIR "components/lib")
+ set(INSTALL_PREFIX "components/${PROJECT_TYPE}")
+else(WIN32)
+ set(OPENRTM_SHARE_PREFIX "share/openrtm-${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}")
+ set(INSTALL_PREFIX "${OPENRTM_SHARE_PREFIX}/components/${PROJECT_TYPE}")
+endif(WIN32)
-#option(BUILD_EXAMPLES "Build and install examples" OFF)
-option(BUILD_DOCUMENTATION "Build the documentation" ON)
-#option(BUILD_TESTS "Build the tests" OFF)
-#option(BUILD_TOOLS "Build the tools" OFF)
-option(BUILD_IDL "Build and install idl" ON)
-option(BUILD_SOURCES "Build and install sources" OFF)
-
-option(STATIC_LIBS "Build static libraries" OFF)
-if(STATIC_LIBS)
- set(LIB_TYPE STATIC)
-else(STATIC_LIBS)
- set(LIB_TYPE SHARED)
-endif(STATIC_LIBS)
-
-if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
- # Mac OS X specific code
- SET(CMAKE_CXX_COMPILER "g++")
-endif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
-
-
-# Set up installation directories
-set(BIN_INSTALL_DIR "components/bin")
-set(LIB_INSTALL_DIR "components/lib")
-set(INC_INSTALL_DIR
- "components/include/${PROJECT_NAME_LOWER}-${PROJECT_VERSION_MAJOR}")
-set(SHARE_INSTALL_DIR
- "components/share/${PROJECT_NAME_LOWER}-${PROJECT_VERSION_MAJOR}")
-
-# Get necessary dependency information
-find_package(OpenRTM)
-if(${OpenRTM_FOUND})
- MESSAGE(STATUS "OpenRTM configuration Found")
-else(${OpenRTM_FOUND})
- message(STATUS "Use cmake/Modules/FindOpenRTM.cmake in the project")
- list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/Modules)
- find_package(OpenRTM REQUIRED)
-endif(${OpenRTM_FOUND})
-
-# Universal settings
-#enable_testing()
-
-# Subdirectories
-add_subdirectory(cmake)
-if(BUILD_DOCUMENTATION)
- add_subdirectory(doc)
-endif(BUILD_DOCUMENTATION)
-
-#if(BUILD_EXAMPLES)
-# add_subdirectory(examples)
-#endif(BUILD_EXAMPLES)
-
-if(BUILD_IDL)
- add_subdirectory(idl)
-endif(BUILD_IDL)
-
-add_subdirectory(include)
-MAP_ADD_STR(headers "include/" comp_hdrs)
-add_subdirectory(src)
-
-#if(BUILD_TESTS)
-# add_subdirectory(test)
-#endif(BUILD_TESTS)
-
-#if(BUILD_TOOLS)
-# add_subdirectory(tools)
-#endif(BUILD_TOOLS)
-
-if(BUILD_SOURCES)
- add_subdirectory(include)
- add_subdirectory(src)
-endif(BUILD_SOURCES)
-
-# Package creation
-# By default, do not warn when built on machines using only VS Express:
-IF(NOT DEFINED CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS)
-SET(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON)
-ENDIF()
-include(InstallRequiredSystemLibraries)
-set(PROJECT_EXECUTABLES ${PROJECT_NAME_LOWER}Comp
- "${PROJECT_NAME_LOWER}Comp")
-
-set(cpack_options "${PROJECT_BINARY_DIR}/cpack_options.cmake")
-
-configure_file("${PROJECT_SOURCE_DIR}/cmake/cpack_options.cmake.in"
- ${cpack_options} @ONLY)
-
-set(CPACK_PROJECT_CONFIG_FILE ${cpack_options})
-include(${CPACK_PROJECT_CONFIG_FILE})
-include(CPack)
-
-
+#set(INC_INSTALL_DIR
+# "components/include/${PROJECT_NAME_LOWER}-${PROJECT_VERSION_MAJOR}")
+#set(SHARE_INSTALL_DIR
+# "components/share/${PROJECT_NAME_LOWER}-${PROJECT_VERSION_MAJOR}")
+
+# Get necessary dependency information
+find_package(OpenRTM)
+if(${OpenRTM_FOUND})
+ MESSAGE(STATUS "OpenRTM configuration Found")
+else(${OpenRTM_FOUND})
+ message(STATUS "Use cmake/Modules/FindOpenRTM.cmake in the project")
+ list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/Modules)
+ find_package(OpenRTM REQUIRED)
+endif(${OpenRTM_FOUND})
+
+# Universal settings
+#enable_testing()
+
+# Subdirectories
+add_subdirectory(cmake)
+if(BUILD_DOCUMENTATION)
+ add_subdirectory(doc)
+endif(BUILD_DOCUMENTATION)
+
+#if(BUILD_EXAMPLES)
+# add_subdirectory(examples)
+#endif(BUILD_EXAMPLES)
+
+if(BUILD_IDL)
+ add_subdirectory(idl)
+endif(BUILD_IDL)
+
+add_subdirectory(include)
+MAP_ADD_STR(headers "include/" comp_hdrs)
+add_subdirectory(src)
+
+#if(BUILD_TESTS)
+# add_subdirectory(test)
+#endif(BUILD_TESTS)
+
+#if(BUILD_TOOLS)
+# add_subdirectory(tools)
+#endif(BUILD_TOOLS)
+
+if(BUILD_SOURCES)
+ add_subdirectory(include)
+ add_subdirectory(src)
+endif(BUILD_SOURCES)
+
+# Package creation
+# By default, do not warn when built on machines using only VS Express:
+IF(NOT DEFINED CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS)
+SET(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON)
+ENDIF()
+include(InstallRequiredSystemLibraries)
+set(PROJECT_EXECUTABLES ${PROJECT_NAME_LOWER}Comp
+ "${PROJECT_NAME_LOWER}Comp")
+
+set(cpack_options "${PROJECT_BINARY_DIR}/cpack_options.cmake")
+
+configure_file("${PROJECT_SOURCE_DIR}/cmake/cpack_options.cmake.in"
+ ${cpack_options} @ONLY)
+
+set(CPACK_PROJECT_CONFIG_FILE ${cpack_options})
+include(${CPACK_PROJECT_CONFIG_FILE})
+include(CPack)
+
+
Modified: branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/ObjectTracking.conf
===================================================================
--- branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/ObjectTracking.conf 2014-03-17 03:42:53 UTC (rev 121)
+++ branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/ObjectTracking.conf 2014-03-17 06:00:55 UTC (rev 122)
@@ -1,133 +1,139 @@
-# -*- sh -*-
-#------------------------------------------------------------
-# Configuration file for ObjectTracking
-#
-# This configuration file name should be specified in rtc.conf (or other
-# configuration file specified by -f option) by "config_file" property.
-#
-# Category.ObjectTracking.config_file: ObjectTracking.conf
-# or
-# Category.ObjectTracking0.config_file: ObjectTracking0.conf
-# Category.ObjectTracking1.config_file: ObjectTracking1.conf
-# Category.ObjectTracking2.config_file: ObjectTracking2.conf
-#
-# ------------------------------------------------------------
-# An example configuration file for ObjectTracking
-#
-# See details in the following reference manual
-#
-
-# Execution context configuration
-# exec_cxt.periodic.type: PeriodicExecutionContext
-# exec_cxt.periodic.rate: 1000
-#
-#
-# configuration.active_config: mode0
-
-# Additional configuration-set example named "mode0"
-#
-# conf.mode0.int_param0: 0
-# conf.mode0.int_param1: 1
-# conf.mode0.double_param0: 0.99
-# conf.mode0.double_param1: -0.99
-# conf.mode0.str_param0: default
-# conf.mode0.str_param1: default set in conf file
-# conf.mode0.vector_param0: 0.0,0.1,0.2,0.3,0.4,0.5,0.6
-#
-# Other configuration set named "mode1"
-#
-# conf.mode1.int_param0: 0
-# conf.mode1.int_param1: 1
-# conf.mode1.double_param0: 0.99
-# conf.mode1.double_param1: -0.99
-# conf.mode1.str_param0: default
-# conf.mode1.str_param1: default set in conf file
-# conf.mode1.vector_param0: 0.0,0.1,0.2,0.3,0.4,0.5,0.6
-
-
-
-
-
-##============================================================
-## Component configuration reference
-##
-
-##============================================================
-## Active configuration-set
-##============================================================
-##
-## Initial active configuration-set. The following "mode0" is a
-## configuration-set name. A configuration-set named "mode0" should be
-## appear in this configuration file as follows.
-##
-## configuration.active_config: mode0
-##
-# conf.mode0.param0: hoge
-# conf.mode0.param1: fuga
-# conf.mode0.param2: munya
-
-##============================================================
-## GUI control option for RTSystemEditor
-##============================================================
-## Available GUI control options [__widget__]:
-##
-## - text: text box [default].
-## - slider.<step>: Horizontal slider. <step> is step for the slider.
-## A range constraints option is required.
-## - spin: Spin button. A range constraitns option is required.
-## - radio: Radio button. An enumeration constraints is required.
-## - checkbox: Checkbox control. An enumeration constraints is
-## required. The parameter has to be able to accept a
-## comma separated list.
-## - orderd_list: Orderd list control. An enumeration constraint is
-## required. The parameter has to be able to accept a
-## comma separated list. In this control, Enumerated
-## elements can appear one or more times in the given list.
-##
-## Available GUI control constraint options [__constraints__]:
-##
-## - none: blank
-## - direct value: 100 (constant value)
-## - range: <, >, <=, >= can be used.
-## - enumeration: (enum0, enum1, ...)
-## - array: <constraints0>, ,constraints1>, ... for only array value
-## - hash: {key0: value0, key1:, value0, ...}
-##
-# conf.__widget__.image_height, text
-# conf.__widget__.image_width, text
-
-
-# conf.__constraints__.int_param0: 0<=x<=150
-# conf.__constraints__.int_param1: 0<=x<=1000
-# conf.__constraints__.double_param0: 0<=x<=100
-# conf.__constraints__.double_param1:
-# conf.__constraints__.str_param0: (default,mode0,mode1)
-# conf.__constraints__.vector_param0: (dog,monky,pheasant,cat)
-# conf.__constraints__.vector_param1: (pita,gora,switch)
-
-##============================================================
-## Execution context settings
-##============================================================
-##
-## Periodic type ExecutionContext
-##
-## Other availabilities in OpenRTM-aist
-##
-## - ExtTrigExecutionContext: External triggered EC. It is embedded in
-## OpenRTM library.
-## - OpenHRPExecutionContext: External triggred paralell execution
-## EC. It is embedded in OpenRTM
-## library. This is usually used with
-## OpenHRP3.
-## - RTPreemptEC: Real-time execution context for Linux
-## RT-preemptive pathed kernel.
-## - ArtExecutionContext: Real-time execution context for ARTLinux
-## (http://sourceforge.net/projects/art-linux/)
-##
-# exec_cxt.periodic.type: PeriodicExecutionContext
-
-##
-## The execution cycle of ExecutionContext
-##
-exec_cxt.periodic.rate:1000.0
-
+# -*- sh -*-
+#------------------------------------------------------------
+# Configuration file for ObjectTracking
+#
+# This configuration file name should be specified in rtc.conf (or other
+# configuration file specified by -f option) by "config_file" property.
+#
+# Category.ObjectTracking.config_file: ObjectTracking.conf
+# or
+# Category.ObjectTracking0.config_file: ObjectTracking0.conf
+# Category.ObjectTracking1.config_file: ObjectTracking1.conf
+# Category.ObjectTracking2.config_file: ObjectTracking2.conf
+#
+# ------------------------------------------------------------
+# An example configuration file for ObjectTracking
+#
+# See details in the following reference manual
+#
+
+# Execution context configuration
+# exec_cxt.periodic.type: PeriodicExecutionContext
+# exec_cxt.periodic.rate: 1000
+#
+#
+# configuration.active_config: mode0
+
+# Additional configuration-set example named "mode0"
+#
+# conf.mode0.int_param0: 0
+# conf.mode0.int_param1: 1
+# conf.mode0.double_param0: 0.99
+# conf.mode0.double_param1: -0.99
+# conf.mode0.str_param0: default
+# conf.mode0.str_param1: default set in conf file
+# conf.mode0.vector_param0: 0.0,0.1,0.2,0.3,0.4,0.5,0.6
+#
+# Other configuration set named "mode1"
+#
+# conf.mode1.int_param0: 0
+# conf.mode1.int_param1: 1
+# conf.mode1.double_param0: 0.99
+# conf.mode1.double_param1: -0.99
+# conf.mode1.str_param0: default
+# conf.mode1.str_param1: default set in conf file
+# conf.mode1.vector_param0: 0.0,0.1,0.2,0.3,0.4,0.5,0.6
+
+
+
+
+
+##============================================================
+## Component configuration reference
+##
+
+##============================================================
+## Active configuration-set
+##============================================================
+##
+## Initial active configuration-set. The following "mode0" is a
+## configuration-set name. A configuration-set named "mode0" should be
+## appear in this configuration file as follows.
+##
+## configuration.active_config: mode0
+##
+# conf.mode0.param0: hoge
+# conf.mode0.param1: fuga
+# conf.mode0.param2: munya
+
+##============================================================
+## GUI control option for RTSystemEditor
+##============================================================
+## Available GUI control options [__widget__]:
+##
+## - text: text box [default].
+## - slider.<step>: Horizontal slider. <step> is step for the slider.
+## A range constraints option is required.
+## - spin: Spin button. A range constraitns option is required.
+## - radio: Radio button. An enumeration constraints is required.
+## - checkbox: Checkbox control. An enumeration constraints is
+## required. The parameter has to be able to accept a
+## comma separated list.
+## - orderd_list: Orderd list control. An enumeration constraint is
+## required. The parameter has to be able to accept a
+## comma separated list. In this control, Enumerated
+## elements can appear one or more times in the given list.
+##
+## Available GUI control constraint options [__constraints__]:
+##
+## - none: blank
+## - direct value: 100 (constant value)
+## - range: <, >, <=, >= can be used.
+## - enumeration: (enum0, enum1, ...)
+## - array: <constraints0>, ,constraints1>, ... for only array value
+## - hash: {key0: value0, key1:, value0, ...}
+##
+## examples:
+# conf.__widget__.int_param0: slider.10
+# conf.__widget__.int_param1: spin
+# conf.__widget__.double_param0: slider.10
+# conf.__widget__.double_param1: text
+# conf.__widget__.str_param0: radio
+# conf.__widget__.vector_param0: checkbox
+# conf.__widget__.vector_param1: orderd_list
+
+
+# conf.__constraints__.int_param0: 0<=x<=150
+# conf.__constraints__.int_param1: 0<=x<=1000
+# conf.__constraints__.double_param0: 0<=x<=100
+# conf.__constraints__.double_param1:
+# conf.__constraints__.str_param0: (default,mode0,mode1)
+# conf.__constraints__.vector_param0: (dog,monky,pheasant,cat)
+# conf.__constraints__.vector_param1: (pita,gora,switch)
+
+##============================================================
+## Execution context settings
+##============================================================
+##
+## Periodic type ExecutionContext
+##
+## Other availabilities in OpenRTM-aist
+##
+## - ExtTrigExecutionContext: External triggered EC. It is embedded in
+## OpenRTM library.
+## - OpenHRPExecutionContext: External triggred paralell execution
+## EC. It is embedded in OpenRTM
+## library. This is usually used with
+## OpenHRP3.
+## - RTPreemptEC: Real-time execution context for Linux
+## RT-preemptive pathed kernel.
+## - ArtExecutionContext: Real-time execution context for ARTLinux
+## (http://sourceforge.net/projects/art-linux/)
+##
+# exec_cxt.periodic.type: PeriodicExecutionContext
+
+##
+## The execution cycle of ExecutionContext
+##
+exec_cxt.periodic.rate:1000.0
+
Modified: branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/README.ObjectTracking
===================================================================
--- branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/README.ObjectTracking 2014-03-17 03:42:53 UTC (rev 121)
+++ branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/README.ObjectTracking 2014-03-17 06:00:55 UTC (rev 122)
@@ -1,224 +1,206 @@
-======================================================================
- RTComponent: ObjectTracking specificatioin
-
- OpenRTM-aist-1.0.0
- Date: $Date$
-
- This file is generated by rtc-template with the following argments.
-
-# rtc-template -bcxx --module-name=ObjectTracking
-# --module-desc='Objecttrack component' --module-version=1.0.0 --module-vendor=AIST
-# --module-category=Category --module-comp-type=STATIC
-# --module-act-type=PERIODIC --module-max-inst=1
-# --config=image_height:int:240 --config=image_width:int:320
-# --inport=img_original:RTC::CameraImage --inport=m_event:RTC::TimedLong --inport=m_x:RTC::TimedLong --inport=m_y:RTC::TimedLong --outport=img_output:RTC::CameraImage --outport=img_hist:RTC::CameraImage
-
-
-======================================================================
- Basic Information
-======================================================================
-# <rtc-template block="module">
-Module Name: ObjectTracking
-Description: Objecttrack component
-Version: 1.0.0
-Vendor: AIST
-Category: Category
-Kind: DataFlowComponent
-Comp. Type: STATIC
-Act. Type: PERIODIC
-MAX Inst.: 1
-Lang: C++
-Lang Type:
-
-# </rtc-template>
-
-
-======================================================================
- Activity definition
-======================================================================
-
-[on_initialize] implemented
-
-[on_finalize]
-
-[on_startup]
-
-[on_shutdown]
-
-[on_activated] implemented
-
-[on_deactivated] implemented
-
-[on_execute] implemented
-
-[on_aborting]
-
-[on_error]
-
-[on_reset]
-
-[on_state_update]
-
-[on_rate_changed]
-
-======================================================================
- InPorts definition
-======================================================================
-# <rtc-template block="inport">
-
- Name: img_original
- PortNumber: 0
- Description:
- PortType:
- DataType: RTC::CameraImage
- MaxOut:
- [Data Elements]
- Name:
- Type:
- Number:
- Semantics:
- Unit:
- Frequency:
- Operation Cycle:
- RangeLow:
- RangeHigh:
- DefaultValue:
-
- Name: m_event
- PortNumber: 1
- Description:
- PortType:
- DataType: RTC::TimedLong
- MaxOut:
- [Data Elements]
- Name:
- Type:
- Number:
- Semantics:
- Unit:
- Frequency:
- Operation Cycle:
- RangeLow:
- RangeHigh:
- DefaultValue:
-
- Name: m_x
- PortNumber: 2
- Description:
- PortType:
- DataType: RTC::TimedLong
- MaxOut:
- [Data Elements]
- Name:
- Type:
- Number:
- Semantics:
- Unit:
- Frequency:
- Operation Cycle:
- RangeLow:
- RangeHigh:
- DefaultValue:
-
- Name: m_y
- PortNumber: 3
- Description:
- PortType:
- DataType: RTC::TimedLong
- MaxOut:
- [Data Elements]
- Name:
- Type:
- Number:
- Semantics:
- Unit:
- Frequency:
- Operation Cycle:
- RangeLow:
- RangeHigh:
- DefaultValue:
-
-
-# </rtc-template>
-
-======================================================================
- OutPorts definition
-======================================================================
-# <rtc-template block="outport">
-
- Name: img_output
- PortNumber: 0
- Description:
- PortType:
- DataType: RTC::CameraImage
- MaxOut:
- [Data Elements]
- Name:
- Type:
- Number:
- Semantics:
- Unit:
- Frequency:
- Operation Cycle:
- RangeLow:
- RangeHigh:
- DefaultValue:
-
- Name: img_hist
- PortNumber: 1
- Description:
- PortType:
- DataType: RTC::CameraImage
- MaxOut:
- [Data Elements]
- Name:
- Type:
- Number:
- Semantics:
- Unit:
- Frequency:
- Operation Cycle:
- RangeLow:
- RangeHigh:
- DefaultValue:
-
-
-# </rtc-template>
-
-
-======================================================================
- Service Port definition
-======================================================================
-# <rtc-template block="serviceport">
-# </rtc-template>
-
-======================================================================
- Configuration definition
-======================================================================
-# <rtc-template block="configuration">
- Configuration:
- Name: image_height
- Description:
- Type: int
- DefaultValue: 240
- Unit:
- Range:
- Constraint:
-
- Name: image_width
- Description:
- Type: int
- DefaultValue: 320
- Unit:
- Range:
- Constraint:
-
-# </rtc-template>
-
-This software is developed at the National Institute of Advanced
-Industrial Science and Technology. Approval number H23PRO-????. This
-software is licensed under the Lesser General Public License. See
-COPYING.LESSER.
-
-This area is reserved for future OpenRTM.
-
+======================================================================
+ RTComponent: ObjectTracking specificatioin
+
+ OpenRTM-aist-1.0.0
+ Date: $Date$
+
+ This file is generated by rtc-template with the following argments.
+
+# rtc-template -bcxx --module-name=ObjectTracking
+# --module-desc='Objecttrack component' --module-version=1.1.0 --module-vendor=AIST
+# --module-category=Category --module-comp-type=STATIC
+# --module-act-type=PERIODIC --module-max-inst=1
+# --inport=img_original:RTC::CameraImage --inport=m_event:RTC::TimedLong --inport=m_x:RTC::TimedLong --inport=m_y:RTC::TimedLong --outport=img_output:RTC::CameraImage --outport=img_hist:RTC::CameraImage
+
+
+======================================================================
+ Basic Information
+======================================================================
+# <rtc-template block="module">
+Module Name: ObjectTracking
+Description: Objecttrack component
+Version: 1.1.0
+Vendor: AIST
+Category: Category
+Kind: DataFlowComponent
+Comp. Type: STATIC
+Act. Type: PERIODIC
+MAX Inst.: 1
+Lang: C++
+Lang Type:
+
+# </rtc-template>
+
+
+======================================================================
+ Activity definition
+======================================================================
+
+[on_initialize] implemented
+
+[on_finalize]
+
+[on_startup]
+
+[on_shutdown]
+
+[on_activated] implemented
+
+[on_deactivated] implemented
+
+[on_execute] implemented
+
+[on_aborting]
+
+[on_error]
+
+[on_reset]
+
+[on_state_update]
+
+[on_rate_changed]
+
+======================================================================
+ InPorts definition
+======================================================================
+# <rtc-template block="inport">
+
+ Name: img_original
+ PortNumber: 0
+ Description:
+ PortType:
+ DataType: RTC::CameraImage
+ MaxOut:
+ [Data Elements]
+ Name:
+ Type:
+ Number:
+ Semantics:
+ Unit:
+ Frequency:
+ Operation Cycle:
+ RangeLow:
+ RangeHigh:
+ DefaultValue:
+
+ Name: m_event
+ PortNumber: 1
+ Description:
+ PortType:
+ DataType: RTC::TimedLong
+ MaxOut:
+ [Data Elements]
+ Name:
+ Type:
+ Number:
+ Semantics:
+ Unit:
+ Frequency:
+ Operation Cycle:
+ RangeLow:
+ RangeHigh:
+ DefaultValue:
+
+ Name: m_x
+ PortNumber: 2
+ Description:
+ PortType:
+ DataType: RTC::TimedLong
+ MaxOut:
+ [Data Elements]
+ Name:
+ Type:
+ Number:
+ Semantics:
+ Unit:
+ Frequency:
+ Operation Cycle:
+ RangeLow:
+ RangeHigh:
+ DefaultValue:
+
+ Name: m_y
+ PortNumber: 3
+ Description:
+ PortType:
+ DataType: RTC::TimedLong
+ MaxOut:
+ [Data Elements]
+ Name:
+ Type:
+ Number:
+ Semantics:
+ Unit:
+ Frequency:
+ Operation Cycle:
+ RangeLow:
+ RangeHigh:
+ DefaultValue:
+
+
+# </rtc-template>
+
+======================================================================
+ OutPorts definition
+======================================================================
+# <rtc-template block="outport">
+
+ Name: img_output
+ PortNumber: 0
+ Description:
+ PortType:
+ DataType: RTC::CameraImage
+ MaxOut:
+ [Data Elements]
+ Name:
+ Type:
+ Number:
+ Semantics:
+ Unit:
+ Frequency:
+ Operation Cycle:
+ RangeLow:
+ RangeHigh:
+ DefaultValue:
+
+ Name: img_hist
+ PortNumber: 1
+ Description:
+ PortType:
+ DataType: RTC::CameraImage
+ MaxOut:
+ [Data Elements]
+ Name:
+ Type:
+ Number:
+ Semantics:
+ Unit:
+ Frequency:
+ Operation Cycle:
+ RangeLow:
+ RangeHigh:
+ DefaultValue:
+
+
+# </rtc-template>
+
+
+======================================================================
+ Service Port definition
+======================================================================
+# <rtc-template block="serviceport">
+# </rtc-template>
+
+======================================================================
+ Configuration definition
+======================================================================
+# <rtc-template block="configuration">
+# </rtc-template>
+
+This software is developed at the National Institute of Advanced
+Industrial Science and Technology. Approval number H23PRO-????. This
+software is licensed under the Lesser General Public License. See
+COPYING.LESSER.
+
+This area is reserved for future OpenRTM.
+
Modified: branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/RTC.xml
===================================================================
--- branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/RTC.xml 2014-03-17 03:42:53 UTC (rev 121)
+++ branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/RTC.xml 2014-03-17 06:00:55 UTC (rev 122)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<rtc:RtcProfile rtc:version="0.2" rtc:id="RTC:AIST:Category:ObjectTracking:1.0.0" xmlns:rtcExt="http://www.openrtp.org/namespaces/rtc_ext" xmlns:rtcDoc="http://www.openrtp.org/namespaces/rtc_doc" xmlns:rtc="http://www.openrtp.org/namespaces/rtc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <rtc:BasicInfo xsi:type="rtcExt:basic_info_ext" rtcExt:saveProject="ObjectTracking" rtc:updateDate="2013-06-12T09:26:16+09:00" rtc:creationDate="2013-06-12T09:26:16+09:00" rtc:version="1.0.0" rtc:vendor="AIST" rtc:maxInstances="1" rtc:executionType="PeriodicExecutionContext" rtc:executionRate="1000.0" rtc:description="Objecttrack component" rtc:category="Category" rtc:componentKind="DataFlowComponent" rtc:activityType="PERIODIC" rtc:componentType="STATIC" rtc:name="ObjectTracking"/>
+<rtc:RtcProfile rtc:version="0.2" rtc:id="RTC:AIST:Category:ObjectTracking:1.1.0" xmlns:rtcExt="http://www.openrtp.org/namespaces/rtc_ext" xmlns:rtcDoc="http://www.openrtp.org/namespaces/rtc_doc" xmlns:rtc="http://www.openrtp.org/namespaces/rtc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <rtc:BasicInfo xsi:type="rtcExt:basic_info_ext" rtcExt:saveProject="ObjectTracking" rtc:updateDate="2013-06-12T09:26:16+09:00" rtc:creationDate="2013-06-12T09:26:16+09:00" rtc:version="1.1.0" rtc:vendor="AIST" rtc:maxInstances="1" rtc:executionType="PeriodicExecutionContext" rtc:executionRate="1000.0" rtc:description="Objecttrack component" rtc:category="Category" rtc:componentKind="DataFlowComponent" rtc:activityType="PERIODIC" rtc:componentType="STATIC" rtc:name="ObjectTracking"/>
<rtc:Actions>
<rtc:OnInitialize xsi:type="rtcDoc:action_status_doc" rtc:implemented="true"/>
<rtc:OnFinalize xsi:type="rtcDoc:action_status_doc" rtc:implemented="false"/>
@@ -17,14 +17,6 @@
<rtc:OnAction xsi:type="rtcDoc:action_status_doc" rtc:implemented="false"/>
<rtc:OnModeChanged xsi:type="rtcDoc:action_status_doc" rtc:implemented="false"/>
</rtc:Actions>
- <rtc:ConfigurationSet>
- <rtc:Configuration xsi:type="rtcExt:configuration_ext" rtcExt:variableName="img_height" rtc:unit="" rtc:defaultValue="240" rtc:type="int" rtc:name="image_height">
- <rtcExt:Properties rtcExt:value="text" rtcExt:name="__widget__"/>
- </rtc:Configuration>
- <rtc:Configuration xsi:type="rtcExt:configuration_ext" rtcExt:variableName="img_width" rtc:unit="" rtc:defaultValue="320" rtc:type="int" rtc:name="image_width">
- <rtcExt:Properties rtcExt:value="text" rtcExt:name="__widget__"/>
- </rtc:Configuration>
- </rtc:ConfigurationSet>
<rtc:DataPorts xsi:type="rtcExt:dataport_ext" rtcExt:position="LEFT" rtcExt:variableName="orig_img" rtc:unit="" rtc:subscriptionType="" rtc:dataflowType="" rtc:interfaceType="" rtc:idlFile="" rtc:type="RTC::CameraImage" rtc:name="img_original" rtc:portType="DataInPort"/>
<rtc:DataPorts xsi:type="rtcExt:dataport_ext" rtcExt:position="LEFT" rtcExt:variableName="event" rtc:unit="" rtc:subscriptionType="" rtc:dataflowType="" rtc:interfaceType="" rtc:idlFile="" rtc:type="RTC::TimedLong" rtc:name="m_event" rtc:portType="DataInPort"/>
<rtc:DataPorts xsi:type="rtcExt:dataport_ext" rtcExt:position="LEFT" rtcExt:variableName="x" rtc:unit="" rtc:subscriptionType="" rtc:dataflowType="" rtc:interfaceType="" rtc:idlFile="" rtc:type="RTC::TimedLong" rtc:name="m_x" rtc:portType="DataInPort"/>
Deleted: branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/RTC.xml20130612093727
===================================================================
--- branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/RTC.xml20130612093727 2014-03-17 03:42:53 UTC (rev 121)
+++ branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/RTC.xml20130612093727 2014-03-17 06:00:55 UTC (rev 122)
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<rtc:RtcProfile rtc:version="0.2" rtc:id="RTC:VenderName:Category:ModuleName:1.0.0" xmlns:rtcExt="http://www.openrtp.org/namespaces/rtc_ext" xmlns:rtcDoc="http://www.openrtp.org/namespaces/rtc_doc" xmlns:rtc="http://www.openrtp.org/namespaces/rtc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <rtc:BasicInfo xsi:type="rtcExt:basic_info_ext" rtc:updateDate="2013-06-12T09:26:16+09:00" rtc:creationDate="2013-06-12T09:26:16+09:00" rtc:version="1.0.0" rtc:vendor="VenderName" rtc:maxInstances="1" rtc:executionType="PeriodicExecutionContext" rtc:executionRate="1000.0" rtc:description="ModuleDescription" rtc:category="Category" rtc:componentKind="DataFlowComponent" rtc:activityType="PERIODIC" rtc:componentType="STATIC" rtc:name="ModuleName">
- <rtcDoc:Doc rtcDoc:license="" rtcDoc:creator=""/>
- </rtc:BasicInfo>
- <rtc:Actions/>
-</rtc:RtcProfile>
Modified: branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/cmake/CMakeLists.txt
===================================================================
--- branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/cmake/CMakeLists.txt 2014-03-17 03:42:53 UTC (rev 121)
+++ branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/cmake/CMakeLists.txt 2014-03-17 06:00:55 UTC (rev 122)
@@ -2,8 +2,8 @@
set(PKG_LIBS -l${PROJECT_NAME_LOWER})
set(pkg_conf_file ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME_LOWER}.pc)
configure_file(${PROJECT_NAME_LOWER}.pc.in ${pkg_conf_file} @ONLY)
-install(FILES ${pkg_conf_file}
- DESTINATION ${LIB_INSTALL_DIR}/pkgconfig/ COMPONENT component)
+#install(FILES ${pkg_conf_file}
+# DESTINATION ${LIB_INSTALL_DIR}/pkgconfig/ COMPONENT component)
# Install CMake modules
set(cmake_config ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME_LOWER}-config.cmake)
@@ -14,5 +14,5 @@
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME_LOWER}-config-version.cmake.in
${cmake_version_config} @ONLY)
set(cmake_mods ${cmake_config} ${cmake_version_config})
-install(FILES ${cmake_mods} DESTINATION ${SHARE_INSTALL_DIR} COMPONENT library)
+#install(FILES ${cmake_mods} DESTINATION ${SHARE_INSTALL_DIR} COMPONENT library)
Modified: branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/cmake/cpack_options.cmake.in
===================================================================
--- branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/cmake/cpack_options.cmake.in 2014-03-17 03:42:53 UTC (rev 121)
+++ branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/cmake/cpack_options.cmake.in 2014-03-17 06:00:55 UTC (rev 122)
@@ -68,9 +68,9 @@
#
#
#
- set(CPACK_NSIS_MUI_ICON "@PROJECT_SOURCE_DIR@/cmake\\rt_middleware_logo.ico")
- set(CPACK_NSIS_MUI_UNIICON "@PROJECT_SOURCE_DIR@/cmake\\rt_middleware_logo.ico")
- set(CPACK_PACKAGE_ICON "@PROJECT_SOURCE_DIR@/cmake\\rt_middleware_logo.bmp")
+# set(CPACK_NSIS_MUI_ICON "@PROJECT_SOURCE_DIR@/cmake\\rt_middleware_logo.ico")
+# set(CPACK_NSIS_MUI_UNIICON "@PROJECT_SOURCE_DIR@/cmake\\rt_middleware_logo.ico")
+# set(CPACK_PACKAGE_ICON "@PROJECT_SOURCE_DIR@/cmake\\rt_middleware_logo.bmp")
set(CPACK_NSIS_HELP_LINK "http://www.openrtm.org")
set(CPACK_NSIS_URL_INFO_ABOUT "http://www.openrtm.org")
set(CPACK_NSIS_MODIFY_PATH ON)
@@ -90,5 +90,9 @@
set(CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS
" Delete \"$INSTDIR\\@PROJECT_NAME_LOWER at -config.cmake\"
Delete \"$INSTDIR\\@PROJECT_NAME_LOWER at -config-version.cmake\"")
+
+ELSE(WIN32)
+ set(CPACK_GENERATOR @LINUX_PACKAGE_GENERATOR@)
+ set(CPACK_PACKAGE_CONTACT @PROJECT_MAINTAINER@)
ENDIF (WIN32)
Modified: branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/cmake/wix.xsl.in
===================================================================
--- branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/cmake/wix.xsl.in 2014-03-17 03:42:53 UTC (rev 121)
+++ branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/cmake/wix.xsl.in 2014-03-17 06:00:55 UTC (rev 122)
@@ -1,99 +1,99 @@
-<?xml version="1.0" encoding="utf-8"?>
-<xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:wix="http://schemas.microsoft.com/wix/2006/wi">
- <xsl:output indent="yes" method="xml"/>
-
- <xsl:template match="/wix:Wix">
- <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
- <Product xmlns="http://schemas.microsoft.com/wix/2006/wi" Id="D1F114C5-3FD9-437F-8B45-1395632AE782" Name="@CPACK_PACKAGE_NAME@ @CPACK_PACKAGE_VERSION@" Language="1041" Codepage="932" Version="@CPACK_PACKAGE_VERSION@" Manufacturer="@CPACK_PACKAGE_VENDOR@" UpgradeCode="36999B33-9A8B-49D5-8347-389A645301C8">
- <Package InstallerVersion="300" Compressed="yes" Languages='1041' SummaryCodepage='932' />
- <Media Id="1" Cabinet="@CPACK_PACKAGE_NAME at .cab" EmbedCab="yes" />
- <Directory Id="TARGETDIR" Name="SourceDir" >
- <Directory Id="ProgramFilesFolder" Name="PFILE" >
- <Directory Id="OPENRTM_DIR" Name="OpenRTM-aist" >
- <!-- <Directory Id="INSTALLLOCATION" Name="@OPENRTM_VERSION_MAJOR at .@OPENRTM_VERSION_MINOR@" /> -->
- <Directory Id="INSTALLLOCATION" Name="1.1" />
- </Directory>
- </Directory>
- </Directory>
-
- <Feature Id="APPLICATIONS" Title="@CPACK_COMPONENT_COMPONENT_DISPLAY_NAME@" Level="1" Description="@CPACK_COMPONENT_COMPONENT_DESCRIPTION@" >
- <!-- Start Ripping through the xml -->
- <!--
- <xsl:apply-templates select="wix:Fragment/wix:DirectoryRef/wix:Component[contains(wix:File/@Source, '@PACKAGE_NAME@@PACKAGE_VERSION@\@RTC_NAME at .dll')]" />
- <xsl:apply-templates select="wix:Fragment/wix:DirectoryRef/wix:Component[contains(wix:File/@Source, '@PACKAGE_NAME@@PACKAGE_VERSION@\@RTC_NAME at .lib')]" />
- <xsl:apply-templates select="wix:Fragment/wix:DirectoryRef/wix:Component[contains(wix:File/@Source, '@PACKAGE_NAME@@PACKAGE_VERSION@\@RTC_NAME at Comp.exe')]" />
- <xsl:apply-templates select="wix:Fragment/wix:DirectoryRef/wix:Component[contains(wix:File/@Source, '@PACKAGE_NAME@@PACKAGE_VERSION@\RTC.xml')]" />
- -->
- <xsl:apply-templates select="wix:Fragment/wix:DirectoryRef/wix:Component[contains(wix:File/@Source, translate('\bin\@CPACK_PACKAGE_NAME at .dll','ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'))]" />
- <xsl:apply-templates select="wix:Fragment/wix:DirectoryRef/wix:Component[contains(wix:File/@Source, translate('\lib\@CPACK_PACKAGE_NAME at .lib','ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'))]" />
- <xsl:apply-templates select="wix:Fragment/wix:DirectoryRef/wix:Component[contains(wix:File/@Source, translate('\bin\@CPACK_PACKAGE_NAME at Comp.exe','ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'))]" />
- <xsl:apply-templates select="wix:Fragment/wix:DirectoryRef/wix:Component[contains(wix:File/@Source, 'RTC.xml')]" />
- </Feature>
-
- <Feature Id="DOCUMENTS" Title="@CPACK_COMPONENT_DOCUMENTATION_DISPLAY_NAME@" Level="1" Absent="allow" Description="@CPACK_COMPONENT_DOCUMENTATION_DESCRIPTION@" >
- <!-- Start Ripping through the xml -->
- <xsl:apply-templates select="wix:Fragment/wix:DirectoryRef/wix:Component[contains(wix:File/@Source, '@PACKAGE_NAME@@PACKAGE_VERSION@\doc')]" />
- </Feature>
-
- <!-- <Feature Id="SOURCES" Title="@CPACK_COMPONENT_SOURCES_DISPLAY_NAME@" Level="1" Absent="allow" Description="@CPACK_COMPONENT_SOURCES_DESCRIPTION@" >-->
- <!-- Start Ripping through the xml -->
- <!-- <xsl:apply-templates select="wix:Fragment/wix:DirectoryRef/wix:Component[contains(wix:File/@Source, '@CPACK_PACKAGE_INSTALL_DIRECTORY@\src')]" /> -->
- <!-- </Feature> -->
-
- <!--Tack on your specific wix options-->
- <UIRef Id="WixUI_FeatureTree" />
- <UIRef Id="WixUI_ErrorProgressText" />
- <!--
- <WixVariable Id="WixUILicenseRtf" Value="@CPACK_RESOURCE_FILE_LICENSE@"/>
- -->
- <!-- TODO: Add Wix Specific Dialogs and features. -->
- <!-- TODO: Add artwork -->
- <!-- TODO: Add ... -->
-
- </Product>
-
- <!--Output the fragment info which heat generates-->
- <xsl:copy-of select="wix:Fragment[wix:DirectoryRef/wix:Component]" />
- <xsl:apply-templates select="wix:Fragment[wix:DirectoryRef/@Id!='TARGETDIR' and wix:DirectoryRef/wix:Directory]" />
-
- </Wix>
- </xsl:template>
-
- <xsl:template match="wix:Fragment[wix:DirectoryRef/wix:Directory]" >
- <xsl:copy>
- <xsl:apply-templates select="wix:DirectoryRef" />
- </xsl:copy>
- </xsl:template>
-
- <xsl:template match="wix:DirectoryRef" >
- <xsl:copy>
- <xsl:choose>
- <xsl:when test="wix:Directory[@Name='components']" >
- <xsl:attribute name="Id">INSTALLLOCATION</xsl:attribute>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="Id"><xsl:value-of select="@Id" /></xsl:attribute>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:apply-templates />
- </xsl:copy>
- </xsl:template>
-
- <xsl:template match="wix:Directory" >
- <xsl:copy>
- <xsl:attribute name="Id"><xsl:value-of select="@Id" /></xsl:attribute>
- <xsl:attribute name="Name"><xsl:value-of select="@Name" /></xsl:attribute>
- </xsl:copy>
- </xsl:template>
-
- <xsl:template match="wix:Component">
- <xsl:element name="ComponentRef" xmlns="http://schemas.microsoft.com/wix/2006/wi" >
- <xsl:attribute name="Id">
- <xsl:value-of select="@Id" />
- </xsl:attribute>
- </xsl:element>
- </xsl:template>
-
-</xsl:stylesheet>
+<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:wix="http://schemas.microsoft.com/wix/2006/wi">
+ <xsl:output indent="yes" method="xml"/>
+
+ <xsl:template match="/wix:Wix">
+ <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
+ <Product xmlns="http://schemas.microsoft.com/wix/2006/wi" Id="8518A72E-3054-42C2-AE2C-48A8897EB30A" Name="@CPACK_PACKAGE_NAME@ @CPACK_PACKAGE_VERSION@" Language="1041" Codepage="932" Version="@CPACK_PACKAGE_VERSION@" Manufacturer="@CPACK_PACKAGE_VENDOR@" UpgradeCode="D6C1B0C4-5C91-4976-A683-275F02808EE1">
+ <Package InstallerVersion="300" Compressed="yes" Languages='1041' SummaryCodepage='932' />
+ <Media Id="1" Cabinet="@CPACK_PACKAGE_NAME at .cab" EmbedCab="yes" />
+ <Directory Id="TARGETDIR" Name="SourceDir" >
+ <Directory Id="ProgramFilesFolder" Name="PFILE" >
+ <Directory Id="OPENRTM_DIR" Name="OpenRTM-aist" >
+ <!-- <Directory Id="INSTALLLOCATION" Name="@OPENRTM_VERSION_MAJOR at .@OPENRTM_VERSION_MINOR@" /> -->
+ <Directory Id="INSTALLLOCATION" Name="1.1" />
+ </Directory>
+ </Directory>
+ </Directory>
+
+ <Feature Id="APPLICATIONS" Title="@CPACK_COMPONENT_COMPONENT_DISPLAY_NAME@" Level="1" Description="@CPACK_COMPONENT_COMPONENT_DESCRIPTION@" >
+ <!-- Start Ripping through the xml -->
+ <!--
+ <xsl:apply-templates select="wix:Fragment/wix:DirectoryRef/wix:Component[contains(wix:File/@Source, '@PACKAGE_NAME@@PACKAGE_VERSION@\@RTC_NAME at .dll')]" />
+ <xsl:apply-templates select="wix:Fragment/wix:DirectoryRef/wix:Component[contains(wix:File/@Source, '@PACKAGE_NAME@@PACKAGE_VERSION@\@RTC_NAME at .lib')]" />
+ <xsl:apply-templates select="wix:Fragment/wix:DirectoryRef/wix:Component[contains(wix:File/@Source, '@PACKAGE_NAME@@PACKAGE_VERSION@\@RTC_NAME at Comp.exe')]" />
+ <xsl:apply-templates select="wix:Fragment/wix:DirectoryRef/wix:Component[contains(wix:File/@Source, '@PACKAGE_NAME@@PACKAGE_VERSION@\RTC.xml')]" />
+ -->
+ <xsl:apply-templates select="wix:Fragment/wix:DirectoryRef/wix:Component[contains(wix:File/@Source, translate('\bin\@CPACK_PACKAGE_NAME at .dll','ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'))]" />
+ <xsl:apply-templates select="wix:Fragment/wix:DirectoryRef/wix:Component[contains(wix:File/@Source, translate('\lib\@CPACK_PACKAGE_NAME at .lib','ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'))]" />
+ <xsl:apply-templates select="wix:Fragment/wix:DirectoryRef/wix:Component[contains(wix:File/@Source, translate('\bin\@CPACK_PACKAGE_NAME at Comp.exe','ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'))]" />
+ <xsl:apply-templates select="wix:Fragment/wix:DirectoryRef/wix:Component[contains(wix:File/@Source, 'RTC.xml')]" />
+ </Feature>
+
+ <Feature Id="DOCUMENTS" Title="@CPACK_COMPONENT_DOCUMENTATION_DISPLAY_NAME@" Level="1" Absent="allow" Description="@CPACK_COMPONENT_DOCUMENTATION_DESCRIPTION@" >
+ <!-- Start Ripping through the xml -->
+ <xsl:apply-templates select="wix:Fragment/wix:DirectoryRef/wix:Component[contains(wix:File/@Source, '@PACKAGE_NAME@@PACKAGE_VERSION@\doc')]" />
+ </Feature>
+
+ <!-- <Feature Id="SOURCES" Title="@CPACK_COMPONENT_SOURCES_DISPLAY_NAME@" Level="1" Absent="allow" Description="@CPACK_COMPONENT_SOURCES_DESCRIPTION@" >-->
+ <!-- Start Ripping through the xml -->
+ <!-- <xsl:apply-templates select="wix:Fragment/wix:DirectoryRef/wix:Component[contains(wix:File/@Source, '@CPACK_PACKAGE_INSTALL_DIRECTORY@\src')]" /> -->
+ <!-- </Feature> -->
+
+ <!--Tack on your specific wix options-->
+ <UIRef Id="WixUI_FeatureTree" />
+ <UIRef Id="WixUI_ErrorProgressText" />
+ <!--
+ <WixVariable Id="WixUILicenseRtf" Value="@CPACK_RESOURCE_FILE_LICENSE@"/>
+ -->
+ <!-- TODO: Add Wix Specific Dialogs and features. -->
+ <!-- TODO: Add artwork -->
+ <!-- TODO: Add ... -->
+
+ </Product>
+
+ <!--Output the fragment info which heat generates-->
+ <xsl:copy-of select="wix:Fragment[wix:DirectoryRef/wix:Component]" />
+ <xsl:apply-templates select="wix:Fragment[wix:DirectoryRef/@Id!='TARGETDIR' and wix:DirectoryRef/wix:Directory]" />
+
+ </Wix>
+ </xsl:template>
+
+ <xsl:template match="wix:Fragment[wix:DirectoryRef/wix:Directory]" >
+ <xsl:copy>
+ <xsl:apply-templates select="wix:DirectoryRef" />
+ </xsl:copy>
+ </xsl:template>
+
+ <xsl:template match="wix:DirectoryRef" >
+ <xsl:copy>
+ <xsl:choose>
+ <xsl:when test="wix:Directory[@Name='components']" >
+ <xsl:attribute name="Id">INSTALLLOCATION</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="Id"><xsl:value-of select="@Id" /></xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:apply-templates />
+ </xsl:copy>
+ </xsl:template>
+
+ <xsl:template match="wix:Directory" >
+ <xsl:copy>
+ <xsl:attribute name="Id"><xsl:value-of select="@Id" /></xsl:attribute>
+ <xsl:attribute name="Name"><xsl:value-of select="@Name" /></xsl:attribute>
+ </xsl:copy>
+ </xsl:template>
+
+ <xsl:template match="wix:Component">
+ <xsl:element name="ComponentRef" xmlns="http://schemas.microsoft.com/wix/2006/wi" >
+ <xsl:attribute name="Id">
+ <xsl:value-of select="@Id" />
+ </xsl:attribute>
+ </xsl:element>
+ </xsl:template>
+
+</xsl:stylesheet>
Modified: branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/doc/CMakeLists.txt
===================================================================
--- branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/doc/CMakeLists.txt 2014-03-17 03:42:53 UTC (rev 121)
+++ branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/doc/CMakeLists.txt 2014-03-17 06:00:55 UTC (rev 122)
@@ -1,40 +1,40 @@
cmake_policy(SET CMP0002 OLD)
-find_package(Doxygen)
-if(DOXYGEN_FOUND)
- # Search for Sphinx
- #set(SPHINX_PATH "" CACHE PATH
- # "Path to the directory containing the sphinx-build program")
- #find_program(SPHINX_BUILD sphinx-build PATHS ${SPHINX_PATH})
- #if(NOT SPHINX_BUILD)
- # message(FATAL_ERROR
- # "Sphinx was not found. Set SPHINX_PATH to the directory containing the sphinx-build executable, or disable BUILD_DOCUMENTATION.")
- #endif(NOT SPHINX_BUILD)
-
- set(html_dir "${CMAKE_CURRENT_BINARY_DIR}/html")
- set(doxygen_dir "${html_dir}/doxygen")
- file(MAKE_DIRECTORY ${html_dir})
- file(MAKE_DIRECTORY ${doxygen_dir})
-
- # Doxygen part
- set(doxyfile "${CMAKE_CURRENT_BINARY_DIR}/doxyfile")
- configure_file(doxyfile.in ${doxyfile})
+find_package(Doxygen)
+if(DOXYGEN_FOUND)
+ # Search for Sphinx
+ #set(SPHINX_PATH "" CACHE PATH
+ # "Path to the directory containing the sphinx-build program")
+ #find_program(SPHINX_BUILD sphinx-build PATHS ${SPHINX_PATH})
+ #if(NOT SPHINX_BUILD)
+ # message(FATAL_ERROR
+ # "Sphinx was not found. Set SPHINX_PATH to the directory containing the sphinx-build executable, or disable BUILD_DOCUMENTATION.")
+ #endif(NOT SPHINX_BUILD)
+
+ set(html_dir "${CMAKE_CURRENT_BINARY_DIR}/html")
+ set(doxygen_dir "${html_dir}/doxygen")
+ file(MAKE_DIRECTORY ${html_dir})
+ file(MAKE_DIRECTORY ${doxygen_dir})
+
+ # Doxygen part
+ set(doxyfile "${CMAKE_CURRENT_BINARY_DIR}/doxyfile")
+ configure_file(doxyfile.in ${doxyfile})
add_custom_target(${PROJECT_NAME}_doxygen_doc ${DOXYGEN_EXECUTABLE} ${doxyfile})
-
- # Sphinx part
- #set(conf_dir "${CMAKE_CURRENT_BINARY_DIR}/conf")
- #file(MAKE_DIRECTORY "${conf_dir}")
- #file(MAKE_DIRECTORY "${conf_dir}/_static")
- #set(conf_py "${conf_dir}/conf.py")
- #configure_file(conf.py.in ${conf_py})
- #add_custom_target(sphinx_doc ALL sphinx-build -b html -c ${conf_dir}
- # ${CMAKE_CURRENT_SOURCE_DIR}/content ${CMAKE_CURRENT_BINARY_DIR}/html
- # DEPENDS doxygen_doc)
- #install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html" DESTINATION
- # "components/share/doc/${PROJECT_NAME_LOWER}-${PROJECT_VERSION_MAJOR}"
- # COMPONENT documentation)
-else(DOXYGEN_FOUND)
- message(FATAL_ERROR
- "Doxygen was not found. Cannot build documentation. Disable BUILD_DOCUMENTATION to continue")
-endif(DOXYGEN_FOUND)
-
+
+ # Sphinx part
+ #set(conf_dir "${CMAKE_CURRENT_BINARY_DIR}/conf")
+ #file(MAKE_DIRECTORY "${conf_dir}")
+ #file(MAKE_DIRECTORY "${conf_dir}/_static")
+ #set(conf_py "${conf_dir}/conf.py")
+ #configure_file(conf.py.in ${conf_py})
+ #add_custom_target(sphinx_doc ALL sphinx-build -b html -c ${conf_dir}
+ # ${CMAKE_CURRENT_SOURCE_DIR}/content ${CMAKE_CURRENT_BINARY_DIR}/html
+ # DEPENDS doxygen_doc)
+ #install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html" DESTINATION
+ # "components/share/doc/${PROJECT_NAME_LOWER}-${PROJECT_VERSION_MAJOR}"
+ # COMPONENT documentation)
+else(DOXYGEN_FOUND)
+ message(FATAL_ERROR
+ "Doxygen was not found. Cannot build documentation. Disable BUILD_DOCUMENTATION to continue")
+endif(DOXYGEN_FOUND)
+
Modified: branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/doc/content/index.txt
===================================================================
--- branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/doc/content/index.txt 2014-03-17 03:42:53 UTC (rev 121)
+++ branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/doc/content/index.txt 2014-03-17 06:00:55 UTC (rev 122)
@@ -1,147 +1,145 @@
-ObjectTrackingName - English
-========================
-
-.. toctree::
- :hidden:
-
- index_j
-
-
-Introduction
-============
-
-
-For a full list of classes and functions, see the `API documentation`_.
-
-.. _`API Documentation`:
- doxygen/html/index.html
-
-Requirements
-============
-
-ObjectTracking uses the `CMake build system`. You will need at least version
-2.8 to be able to build the component.
-
-.. _`CMAke build system`:
- http://www.cmake.org
-
-
-Installation
-============
-
-Binary
-------
-
-Users of Windows can install the component using the binary installer. This
-will install the component and all its necessary dependencies. It is the
-recommended method of installation in Windows.
-
-- Download the installer from the website.
-- Double-click the executable file to begin installation.
-- Follow the instructions to install the component.
-- You may need to restart your computer for environment variable changes
- to take effect before using the component.
-
-The component can be launched by double-clicking the
-``ObjectTrackingComp`` executable. The ``ObjectTracking`` library
-is available for loading into a manager, using the initialisation function
-``ObjectTrackingInit``.
-
-From source
------------
-
-Follow these steps to install ObjectTracking from source in any operating
-system:
-
-- Download the source, either from the repository or a source archive,
- and extract it somewhere::
-
- tar -xvzf ObjectTracking-1.0.0.tar.gz
-
-- Change to the directory containing the extracted source::
-
- cd ObjectTracking-1.0.0
-
-- Create a directory called ``build``::
-
- mkdir build
-
-- Change to that directory::
-
- cd build
-
-- Run cmake or cmake-gui::
-
- cmake ../
-
-- If no errors occurred, run make::
-
- make
-
-- Finally, install the component. Ensure the necessary permissions to
- install into the chosen prefix are available::
-
- make install
-
-- The install destination can be changed by executing ccmake and changing
- the variable ``CMAKE_INSTALL_PREFIX``::
-
- ccmake ../
-
-The component is now ready for use. See the next section for instructions on
-configuring the component.
-
-ObjectTracking can be launched in stand-alone mode by executing the
-``ObjectTrackingComp`` executable (installed into ``${prefix}/components/bin``).
-Alternatively, ``libObjectTracking.so`` can be loaded into a manager, using the
-initialisation function ``ObjectTrackingInit``. This shared object can be found in
-``${prefix}/components/lib`` or ``${prefix}/components/lib64``.
-
-
-Configuration
-=============
-
-The available configuration parameters are described below:
-
-================ ================== ================ ======
-Parameter Data type Default Value Effect
-================ ================== ================ ======
-image_height int 240
-image_width int 320
-================ ================== ================ ======
-
-Ports
-=====
-
-The ports provided by the component are described below:
-
-=============== =========== ============================== =======
-Name Type Data type Purpose
-=============== =========== ============================== =======
-img_original InPort RTC::CameraImage
-m_event InPort RTC::TimedLong
-m_x InPort RTC::TimedLong
-m_y InPort RTC::TimedLong
-img_output OutPort RTC::CameraImage
-img_hist OutPort RTC::CameraImage
-=============== =========== ============================== =======
-
-Examples
-========
-
-An example configuration file is provided in the
-``${prefix}/components/share/ObjectTracking/examples/conf/`` directory.
-
-Changelog
-=========
-
-
-
-License
-=======
-
-This software is developed at the National Institute of Advanced
-Industrial Science and Technology. Approval number H23PRO-????. This
-software is licensed under the Lesser General Public License. See
-COPYING.LESSER.
-
+ObjectTrackingName - English
+========================
+
+.. toctree::
+ :hidden:
+
+ index_j
+
+
+Introduction
+============
+
+
+For a full list of classes and functions, see the `API documentation`_.
+
+.. _`API Documentation`:
+ doxygen/html/index.html
+
+Requirements
+============
+
+ObjectTracking uses the `CMake build system`. You will need at least version
+2.8 to be able to build the component.
+
+.. _`CMAke build system`:
+ http://www.cmake.org
+
+
+Installation
+============
+
+Binary
+------
+
+Users of Windows can install the component using the binary installer. This
+will install the component and all its necessary dependencies. It is the
+recommended method of installation in Windows.
+
+- Download the installer from the website.
+- Double-click the executable file to begin installation.
+- Follow the instructions to install the component.
+- You may need to restart your computer for environment variable changes
+ to take effect before using the component.
+
+The component can be launched by double-clicking the
+``ObjectTrackingComp`` executable. The ``ObjectTracking`` library
+is available for loading into a manager, using the initialisation function
+``ObjectTrackingInit``.
+
+From source
+-----------
+
+Follow these steps to install ObjectTracking from source in any operating
+system:
+
+- Download the source, either from the repository or a source archive,
+ and extract it somewhere::
+
+ tar -xvzf ObjectTracking-1.0.0.tar.gz
+
+- Change to the directory containing the extracted source::
+
+ cd ObjectTracking-1.0.0
+
+- Create a directory called ``build``::
+
+ mkdir build
+
+- Change to that directory::
+
+ cd build
+
+- Run cmake or cmake-gui::
+
+ cmake ../
+
+- If no errors occurred, run make::
+
+ make
+
+- Finally, install the component. Ensure the necessary permissions to
+ install into the chosen prefix are available::
+
+ make install
+
+- The install destination can be changed by executing ccmake and changing
+ the variable ``CMAKE_INSTALL_PREFIX``::
+
+ ccmake ../
+
+The component is now ready for use. See the next section for instructions on
+configuring the component.
+
+ObjectTracking can be launched in stand-alone mode by executing the
+``ObjectTrackingComp`` executable (installed into ``${prefix}/components/bin``).
+Alternatively, ``libObjectTracking.so`` can be loaded into a manager, using the
+initialisation function ``ObjectTrackingInit``. This shared object can be found in
+``${prefix}/components/lib`` or ``${prefix}/components/lib64``.
+
+
+Configuration
+=============
+
+The available configuration parameters are described below:
+
+================ ================== ================ ======
+Parameter Data type Default Value Effect
+================ ================== ================ ======
+================ ================== ================ ======
+
+Ports
+=====
+
+The ports provided by the component are described below:
+
+=============== =========== ============================== =======
+Name Type Data type Purpose
+=============== =========== ============================== =======
+img_original InPort RTC::CameraImage
+m_event InPort RTC::TimedLong
+m_x InPort RTC::TimedLong
+m_y InPort RTC::TimedLong
+img_output OutPort RTC::CameraImage
+img_hist OutPort RTC::CameraImage
+=============== =========== ============================== =======
+
+Examples
+========
+
+An example configuration file is provided in the
+``${prefix}/components/share/ObjectTracking/examples/conf/`` directory.
+
+Changelog
+=========
+
+
+
+License
+=======
+
+This software is developed at the National Institute of Advanced
+Industrial Science and Technology. Approval number H23PRO-????. This
+software is licensed under the Lesser General Public License. See
+COPYING.LESSER.
+
Modified: branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/doc/content/index_j.txt
===================================================================
--- branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/doc/content/index_j.txt 2014-03-17 03:42:53 UTC (rev 121)
+++ branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/doc/content/index_j.txt 2014-03-17 06:00:55 UTC (rev 122)
@@ -1,137 +1,135 @@
-ObjectTracking - æ¥æ¬èª
-=======================
-
-
-ã¯ããã«
-========
-
-ã¯ã©ã¹ã«ã¤ãã¦ã¯ã `APIããã¥ã¡ã³ãã¼ã·ã§ã³`_ ã«åç
§ãã¦ãã ããã
-
-.. _`APIããã¥ã¡ã³ãã¼ã·ã§ã³`:
- doxygen/html/index.html
-
-æ¡ä»¶
-====
-
-ObjectTrackingã¯OpenRTM-aist 1.0.0以ä¸ã®C++çãå¿
è¦ã§ãã
-
-ObjectTracking㯠CMake_ ã使ãã¾ããCMake 2.8以ä¸ãå¿
è¦ã§ãã
-
-.. _CMAke:
- http://www.cmake.org
-
-ã¤ã³ã¹ãã¼ã«
-============
-
-ã¤ã³ã¹ãã¼ã©
-------------
-
-Windowsã®ã¦ã¼ã¶ã¯ã¤ã³ã¹ãã¼ã©ããã±ã¼ã¸ã使ç¨ãã¦ã³ã³ãã¼ãã³ããã¤ã³ã¹ãã¼ã«
-ãããã¨ãã§ãã¾ããããã¯ã³ã³ãã¼ãã³ãåã³ãã®ãã¹ã¦ã®å¿
è¦ãªã©ã¤ãã©ãªã
-ã¤ã³ã¹ãã¼ã«ãã¾ããWindowsã§ã¤ã³ã¹ãã¼ã«ããå ´åãã¤ã³ã¹ãã¼ã©ã®ä½¿ç¨ãæ¨å¥¨ãã¦ã¾ãã
-
-- ã¤ã³ã¹ãã¼ã©ããã¦ã³ãã¼ããã¦ãã ããã
-- ã¤ã³ã¹ãã¼ã«ãå§ããããã«ã¤ã³ã¹ãã¼ã©ãããã«ã¯ãªãã¯ãã¦ãã ããã
-- æ示ã«ãããã£ã¦ã³ã³ãã¼ãã³ããã¤ã³ã¹ãã¼ã«ãã¦ãã ããã
-- ç°å¢å¤æ°ã®å¤æ´ãé©ç¨ãããããã³ã³ãã¼ãã³ãã使ç¨ããåã«ã³ã³ãã¥ã¼ã¿ã¼ã
- åèµ·åããå¿
è¦ãããããããã¾ããã
-
-ObjectTracking㯠``ObjectTrackingComp`` ã®å®è¡ãããã«ã¯ãªãã¯ãã¦å®è¡ãããã¨ã
-ã§ãã¾ãããããã¯ã ``ObjectTracking`` ãåæåé¢æ°ã® ``ObjectTrackingInit`` ãå©ç¨ãã¦ã
-ããã¼ã¸ã£ã«ãã¼ããããã¨ãã§ãã¾ãã
-
-ã½ã¼ã¹ãã
-----------
-
-ã½ã¼ã¹ã使ãå ´åã¯ä»¥ä¸ã®æé ã§ã¤ã³ã¹ãã¼ã«ãã¦ãã ããã
-
-- ã½ã¼ã¹ããã¦ã³ãã¼ããã¦è§£åãã¦ãã ãã::
-
- tar -xvzf ObjectTracking-1.0.0.tar.gz
-
-- 解åããããã©ã«ãã«å
¥ã£ã¦ãã ãã::
-
- cd ObjectTracking-1.0.0
-
-- ``build`` ãã©ã«ããä½ã£ã¦ãã ãã::
-
- mkdir build
-
-- `` build`` ãã©ã«ãã«å
¥ã£ã¦ãã ãã::
-
- cd build
-
-- CMakeãå®è¡ãã¦ãã ãã::
-
- cmake ../
-
-- ã¨ã©ã¼ãåºç¡ãå ´åãmakeãå®è¡ãã¦ãã ãã::
-
- make
-
-- ``make install`` ã§ã³ã³ãã¼ãã³ããã¤ã³ã¹ãã¼ã«ãã¦ãã ãããé¸æããã
- ã¤ã³ã¹ãã¼ã«å ´æã«æ¸ãè¾¼ã¿æ¨©éããããã確èªãã¦ãã ãã::
-
- ``make install``
-
-- ã¤ã³ã¹ãã¼ã«ããå ´æã¯ccmakeãå®è¡ã㦠``CMAKE_INSTALL_PREFIX`` ã
- è¨å®ãããã¨ã§å¤æ´ãå¯è½ã§ãã
-
- ccmake ../
-
-ããã¾ã§ã§ãã³ã³ãã¼ãã³ãã使ããããã«ãªãã¾ãããã³ã³ãã£ã°ã¬ã¼ã·ã§ã³ã¯æ¬¡ã®ã»ã¯ã·ã§ã³ã
-åç
§ãã¦ãã ããã
-
-ObjectTracking㯠``ObjectTrackingComp`` ãå®è¡ï¼ ``${prefix}/components/bin`` ã«
-ã¤ã³ã¹ãã¼ã«ããã¾ãï¼ãããã¨ã§ã¹ã¿ã³ãã¢ãã¼ã³ã¢ã¼ãã§å®è¡ãããã¨ãã§ãã¾ãã
-ãããã¯ã ``libObjectTracking.so`` ãåæåé¢æ°ã® ``ObjectTrackingInit`` ãå©ç¨ãã¦ã
-ããã¼ã¸ã£ã«ãã¼ããããã¨ãã§ãã¾ãããã®ã©ã¤ãã©ãªã¯ ``${prefix}/components/lib``
-ã¾ã㯠``${prefix}/components/lib64`` ã«ã¤ã³ã¹ãã¼ã«ããã¾ãã
-
-
-ã³ã³ãã£ã°ã¬ã¼ã·ã§ã³
-====================
-
-使ããã³ã³ãã£ã°ã¬ã¼ã·ã§ã³ãã©ã¡ã¼ã¿ã¯ä»¥ä¸ã®ãã¼ãã«ãåç
§
-ãã¦ãã ããã
-
-================ ================== ================ ====
-ãã©ã¡ã¼ã¿ ãã¼ã¿å ããã©ã«ãå¤ æå³
-================ ================== ================ ====
-image_height int 240
-image_width int 320
-================ ================== ================ ====
-
-ãã¼ã
-======
-
-ã³ã³ãã¼ãã³ãã«ãã£ã¦æä¾ããããã¼ãã¯ä»¥ä¸ã®ãã¼ãã«ã§è¿°ã¹ããã¦ãã¾ãã
-
-=============== =========== ============================== ====
-ãã¼ãå ãã¼ãå ãã¼ã¿å æå³
-=============== =========== ============================== ====
-img_original InPort RTC::CameraImage
-m_event InPort RTC::TimedLong
-m_x InPort RTC::TimedLong
-m_y InPort RTC::TimedLong
-img_output OutPort RTC::CameraImage
-img_hist OutPort RTC::CameraImage
-=============== =========== ============================== ====
-
-ä¾
-==
-
-ä¾ã®rtc.confãã¡ã¤ã«ã¯ ``${prefix}/components/share/ObjectTracking/examples/conf/``
-ãã©ã«ãã«ã¤ã³ã¹ãã¼ã«ããã¦ãã¾ãã
-
-Changelog
-=========
-
-
-License
-=======
-
-ãã®ã½ããã¦ã§ã¢ã¯ç£æ¥æè¡ç·åç 究æã§éçºããã¦ãã¾ããæ¿èªçªå·ã¯H23PRO-????
-ã§ãããã®ã½ããã¦ã§ã¢ã¯ Lesser General Public License (LGPL) ã©ã¤ã»ã³ã¹ã¨ãã¦
-å
¬éããã¦ã¾ããCOPYING.LESSER ãåç
§ãã¦ãã ããã
-
+ObjectTracking - æ¥æ¬èª
+=======================
+
+
+ã¯ããã«
+========
+
+ã¯ã©ã¹ã«ã¤ãã¦ã¯ã `APIããã¥ã¡ã³ãã¼ã·ã§ã³`_ ã«åç
§ãã¦ãã ããã
+
+.. _`APIããã¥ã¡ã³ãã¼ã·ã§ã³`:
+ doxygen/html/index.html
+
+æ¡ä»¶
+====
+
+ObjectTrackingã¯OpenRTM-aist 1.0.0以ä¸ã®C++çãå¿
è¦ã§ãã
+
+ObjectTracking㯠CMake_ ã使ãã¾ããCMake 2.8以ä¸ãå¿
è¦ã§ãã
+
+.. _CMAke:
+ http://www.cmake.org
+
+ã¤ã³ã¹ãã¼ã«
+============
+
+ã¤ã³ã¹ãã¼ã©
+------------
+
+Windowsã®ã¦ã¼ã¶ã¯ã¤ã³ã¹ãã¼ã©ããã±ã¼ã¸ã使ç¨ãã¦ã³ã³ãã¼ãã³ããã¤ã³ã¹ãã¼ã«
+ãããã¨ãã§ãã¾ããããã¯ã³ã³ãã¼ãã³ãåã³ãã®ãã¹ã¦ã®å¿
è¦ãªã©ã¤ãã©ãªã
+ã¤ã³ã¹ãã¼ã«ãã¾ããWindowsã§ã¤ã³ã¹ãã¼ã«ããå ´åãã¤ã³ã¹ãã¼ã©ã®ä½¿ç¨ãæ¨å¥¨ãã¦ã¾ãã
+
+- ã¤ã³ã¹ãã¼ã©ããã¦ã³ãã¼ããã¦ãã ããã
+- ã¤ã³ã¹ãã¼ã«ãå§ããããã«ã¤ã³ã¹ãã¼ã©ãããã«ã¯ãªãã¯ãã¦ãã ããã
+- æ示ã«ãããã£ã¦ã³ã³ãã¼ãã³ããã¤ã³ã¹ãã¼ã«ãã¦ãã ããã
+- ç°å¢å¤æ°ã®å¤æ´ãé©ç¨ãããããã³ã³ãã¼ãã³ãã使ç¨ããåã«ã³ã³ãã¥ã¼ã¿ã¼ã
+ åèµ·åããå¿
è¦ãããããããã¾ããã
+
+ObjectTracking㯠``ObjectTrackingComp`` ã®å®è¡ãããã«ã¯ãªãã¯ãã¦å®è¡ãããã¨ã
+ã§ãã¾ãããããã¯ã ``ObjectTracking`` ãåæåé¢æ°ã® ``ObjectTrackingInit`` ãå©ç¨ãã¦ã
+ããã¼ã¸ã£ã«ãã¼ããããã¨ãã§ãã¾ãã
+
+ã½ã¼ã¹ãã
+----------
+
+ã½ã¼ã¹ã使ãå ´åã¯ä»¥ä¸ã®æé ã§ã¤ã³ã¹ãã¼ã«ãã¦ãã ããã
+
+- ã½ã¼ã¹ããã¦ã³ãã¼ããã¦è§£åãã¦ãã ãã::
+
+ tar -xvzf ObjectTracking-1.0.0.tar.gz
+
+- 解åããããã©ã«ãã«å
¥ã£ã¦ãã ãã::
+
+ cd ObjectTracking-1.0.0
+
+- ``build`` ãã©ã«ããä½ã£ã¦ãã ãã::
+
+ mkdir build
+
+- `` build`` ãã©ã«ãã«å
¥ã£ã¦ãã ãã::
+
+ cd build
+
+- CMakeãå®è¡ãã¦ãã ãã::
+
+ cmake ../
+
+- ã¨ã©ã¼ãåºç¡ãå ´åãmakeãå®è¡ãã¦ãã ãã::
+
+ make
+
+- ``make install`` ã§ã³ã³ãã¼ãã³ããã¤ã³ã¹ãã¼ã«ãã¦ãã ãããé¸æããã
+ ã¤ã³ã¹ãã¼ã«å ´æã«æ¸ãè¾¼ã¿æ¨©éããããã確èªãã¦ãã ãã::
+
+ ``make install``
+
+- ã¤ã³ã¹ãã¼ã«ããå ´æã¯ccmakeãå®è¡ã㦠``CMAKE_INSTALL_PREFIX`` ã
+ è¨å®ãããã¨ã§å¤æ´ãå¯è½ã§ãã
+
+ ccmake ../
+
+ããã¾ã§ã§ãã³ã³ãã¼ãã³ãã使ããããã«ãªãã¾ãããã³ã³ãã£ã°ã¬ã¼ã·ã§ã³ã¯æ¬¡ã®ã»ã¯ã·ã§ã³ã
+åç
§ãã¦ãã ããã
+
+ObjectTracking㯠``ObjectTrackingComp`` ãå®è¡ï¼ ``${prefix}/components/bin`` ã«
+ã¤ã³ã¹ãã¼ã«ããã¾ãï¼ãããã¨ã§ã¹ã¿ã³ãã¢ãã¼ã³ã¢ã¼ãã§å®è¡ãããã¨ãã§ãã¾ãã
+ãããã¯ã ``libObjectTracking.so`` ãåæåé¢æ°ã® ``ObjectTrackingInit`` ãå©ç¨ãã¦ã
+ããã¼ã¸ã£ã«ãã¼ããããã¨ãã§ãã¾ãããã®ã©ã¤ãã©ãªã¯ ``${prefix}/components/lib``
+ã¾ã㯠``${prefix}/components/lib64`` ã«ã¤ã³ã¹ãã¼ã«ããã¾ãã
+
+
+ã³ã³ãã£ã°ã¬ã¼ã·ã§ã³
+====================
+
+使ããã³ã³ãã£ã°ã¬ã¼ã·ã§ã³ãã©ã¡ã¼ã¿ã¯ä»¥ä¸ã®ãã¼ãã«ãåç
§
+ãã¦ãã ããã
+
+================ ================== ================ ====
+ãã©ã¡ã¼ã¿ ãã¼ã¿å ããã©ã«ãå¤ æå³
+================ ================== ================ ====
+================ ================== ================ ====
+
+ãã¼ã
+======
+
+ã³ã³ãã¼ãã³ãã«ãã£ã¦æä¾ããããã¼ãã¯ä»¥ä¸ã®ãã¼ãã«ã§è¿°ã¹ããã¦ãã¾ãã
+
+=============== =========== ============================== ====
+ãã¼ãå ãã¼ãå ãã¼ã¿å æå³
+=============== =========== ============================== ====
+img_original InPort RTC::CameraImage
+m_event InPort RTC::TimedLong
+m_x InPort RTC::TimedLong
+m_y InPort RTC::TimedLong
+img_output OutPort RTC::CameraImage
+img_hist OutPort RTC::CameraImage
+=============== =========== ============================== ====
+
+ä¾
+==
+
+ä¾ã®rtc.confãã¡ã¤ã«ã¯ ``${prefix}/components/share/ObjectTracking/examples/conf/``
+ãã©ã«ãã«ã¤ã³ã¹ãã¼ã«ããã¦ãã¾ãã
+
+Changelog
+=========
+
+
+License
+=======
+
+ãã®ã½ããã¦ã§ã¢ã¯ç£æ¥æè¡ç·åç 究æã§éçºããã¦ãã¾ããæ¿èªçªå·ã¯H23PRO-????
+ã§ãããã®ã½ããã¦ã§ã¢ã¯ Lesser General Public License (LGPL) ã©ã¤ã»ã³ã¹ã¨ãã¦
+å
¬éããã¦ã¾ããCOPYING.LESSER ãåç
§ãã¦ãã ããã
+
Modified: branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/idl/CMakeLists.txt
===================================================================
--- branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/idl/CMakeLists.txt 2014-03-17 03:42:53 UTC (rev 121)
+++ branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/idl/CMakeLists.txt 2014-03-17 06:00:55 UTC (rev 122)
@@ -1,56 +1,56 @@
-set(idls )
-
-install(FILES ${idls} DESTINATION ${INC_INSTALL_DIR}/idl
- COMPONENT idl)
-
-macro(_IDL_OUTPUTS _idl _dir _result)
- set(${_result} ${_dir}/${_idl}SK.cc ${_dir}/${_idl}.hh
- ${_dir}/${_idl}DynSK.cc)
-endmacro(_IDL_OUTPUTS)
-
-macro(_COMPILE_IDL _idl_file)
- if(NOT WIN32)
- execute_process(COMMAND rtm-config --prefix OUTPUT_VARIABLE OPENRTM_DIR
- OUTPUT_STRIP_TRAILING_WHITESPACE)
- execute_process(COMMAND rtm-config --idlflags OUTPUT_VARIABLE OPENRTM_IDLFLAGS
- OUTPUT_STRIP_TRAILING_WHITESPACE)
- separate_arguments(OPENRTM_IDLFLAGS)
- execute_process(COMMAND rtm-config --idlc OUTPUT_VARIABLE OPENRTM_IDLC
- OUTPUT_STRIP_TRAILING_WHITESPACE)
- set(_rtm_skelwrapper_command "rtm-skelwrapper")
- else(NOT WIN32)
- set(_rtm_skelwrapper_command "rtm-skelwrapper.py")
- endif(NOT WIN32)
- get_filename_component(_idl ${_idl_file} NAME_WE)
- set(_idl_srcs_var ${_idl}_SRCS)
- _IDL_OUTPUTS(${_idl} ${CMAKE_CURRENT_BINARY_DIR} ${_idl_srcs_var})
-
- add_custom_command(OUTPUT ${${_idl_srcs_var}}
- COMMAND python ${OPENRTM_DIR}/bin/${_rtm_skelwrapper_command} --include-dir= --skel-suffix=Skel --stub-suffix=Stub --idl-file=${_idl}.idl
- COMMAND ${OPENRTM_IDLC} ${OPENRTM_IDLFLAGS} ${_idl_file}
- WORKING_DIRECTORY ${CURRENT_BINARY_DIR}
- DEPENDS ${_idl_file}
- COMMENT "Compiling ${_idl_file}" VERBATIM)
- add_custom_target(${_idl}_TGT DEPENDS ${${_idl_srcs_var}})
- set(ALL_IDL_SRCS ${ALL_IDL_SRCS} ${${_idl_srcs_var}})
- if(NOT TARGET ALL_IDL_TGT)
- add_custom_target(ALL_IDL_TGT)
- endif(NOT TARGET ALL_IDL_TGT)
- add_dependencies(ALL_IDL_TGT ${_idl}_TGT)
-endmacro(_COMPILE_IDL)
-
-# Module exposed to the user
-macro(OPENRTM_COMPILE_IDL_FILES)
- foreach(idl ${ARGN})
- _COMPILE_IDL(${idl})
- endforeach(idl)
-endmacro(OPENRTM_COMPILE_IDL_FILES)
-
-
-OPENRTM_COMPILE_IDL_FILES(${idls})
-set(ALL_IDL_SRCS ${ALL_IDL_SRCS} PARENT_SCOPE)
+set(idls )
+
+#install(FILES ${idls} DESTINATION ${INC_INSTALL_DIR}/idl
+# COMPONENT idl)
+
+macro(_IDL_OUTPUTS _idl _dir _result)
+ set(${_result} ${_dir}/${_idl}SK.cc ${_dir}/${_idl}.hh
+ ${_dir}/${_idl}DynSK.cc)
+endmacro(_IDL_OUTPUTS)
+
+macro(_COMPILE_IDL _idl_file)
+ if(NOT WIN32)
+ execute_process(COMMAND rtm-config --prefix OUTPUT_VARIABLE OPENRTM_DIR
+ OUTPUT_STRIP_TRAILING_WHITESPACE)
+ execute_process(COMMAND rtm-config --idlflags OUTPUT_VARIABLE OPENRTM_IDLFLAGS
+ OUTPUT_STRIP_TRAILING_WHITESPACE)
+ separate_arguments(OPENRTM_IDLFLAGS)
+ execute_process(COMMAND rtm-config --idlc OUTPUT_VARIABLE OPENRTM_IDLC
+ OUTPUT_STRIP_TRAILING_WHITESPACE)
+ set(_rtm_skelwrapper_command "rtm-skelwrapper")
+ else(NOT WIN32)
+ set(_rtm_skelwrapper_command "rtm-skelwrapper.py")
+ endif(NOT WIN32)
+ get_filename_component(_idl ${_idl_file} NAME_WE)
+ set(_idl_srcs_var ${_idl}_SRCS)
+ _IDL_OUTPUTS(${_idl} ${CMAKE_CURRENT_BINARY_DIR} ${_idl_srcs_var})
+
+ add_custom_command(OUTPUT ${${_idl_srcs_var}}
+ COMMAND python ${OPENRTM_DIR}/bin/${_rtm_skelwrapper_command} --include-dir= --skel-suffix=Skel --stub-suffix=Stub --idl-file=${_idl}.idl
+ COMMAND ${OPENRTM_IDLC} ${OPENRTM_IDLFLAGS} ${_idl_file}
+ WORKING_DIRECTORY ${CURRENT_BINARY_DIR}
+ DEPENDS ${_idl_file}
+ COMMENT "Compiling ${_idl_file}" VERBATIM)
+ add_custom_target(${_idl}_TGT DEPENDS ${${_idl_srcs_var}})
+ set(ALL_IDL_SRCS ${ALL_IDL_SRCS} ${${_idl_srcs_var}})
+ if(NOT TARGET ALL_IDL_TGT)
+ add_custom_target(ALL_IDL_TGT)
+ endif(NOT TARGET ALL_IDL_TGT)
+ add_dependencies(ALL_IDL_TGT ${_idl}_TGT)
+endmacro(_COMPILE_IDL)
+
+# Module exposed to the user
+macro(OPENRTM_COMPILE_IDL_FILES)
+ foreach(idl ${ARGN})
+ _COMPILE_IDL(${idl})
+ endforeach(idl)
+endmacro(OPENRTM_COMPILE_IDL_FILES)
+
+
+OPENRTM_COMPILE_IDL_FILES(${idls})
+set(ALL_IDL_SRCS ${ALL_IDL_SRCS} PARENT_SCOPE)
FILTER_LIST("${ALL_IDL_SRCS}" "hh$" idl_headers)
-install(FILES ${idl_headers}
- DESTINATION ${INC_INSTALL_DIR}/${PROJECT_NAME_LOWER}/idl
- COMPONENT headers)
-
+#install(FILES ${idl_headers}
+# DESTINATION ${INC_INSTALL_DIR}/${PROJECT_NAME_LOWER}/idl
+# COMPONENT headers)
+
Modified: branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/include/ObjectTracking/CMakeLists.txt
===================================================================
--- branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/include/ObjectTracking/CMakeLists.txt 2014-03-17 03:42:53 UTC (rev 121)
+++ branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/include/ObjectTracking/CMakeLists.txt 2014-03-17 06:00:55 UTC (rev 122)
@@ -1,7 +1,7 @@
set(hdrs ObjectTracking.h
- PARENT_SCOPE
+# PARENT_SCOPE
)
-install(FILES ${hdrs} DESTINATION ${INC_INSTALL_DIR}/${PROJECT_NAME_LOWER}
- COMPONENT library)
+#install(FILES ${hdrs} DESTINATION ${INC_INSTALL_DIR}/${PROJECT_NAME_LOWER}
+# COMPONENT library)
Modified: branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/include/ObjectTracking/ObjectTracking.h
===================================================================
--- branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/include/ObjectTracking/ObjectTracking.h 2014-03-17 03:42:53 UTC (rev 121)
+++ branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/include/ObjectTracking/ObjectTracking.h 2014-03-17 06:00:55 UTC (rev 122)
@@ -1,335 +1,323 @@
-// -*- C++ -*-
-/*!
- * @file ObjectTracking.h
- * @brief Objecttrack component
- * @date $Date$
- *
- * $Id$
- */
-
-#ifndef OBJECTTRACKING_H
-#define OBJECTTRACKING_H
-
-#include <rtm/Manager.h>
-#include <rtm/DataFlowComponentBase.h>
-#include <rtm/CorbaPort.h>
-#include <rtm/DataInPort.h>
-#include <rtm/DataOutPort.h>
-#include <rtm/idl/BasicDataTypeSkel.h>
-#include <rtm/idl/ExtendedDataTypesSkel.h>
-#include <rtm/idl/InterfaceDataTypesSkel.h>
-
-#include <cv.h>
-#include <cvaux.h>
-#include <highgui.h>
-
-#define SEGMENT 150 // cvSnakeImageÅp¢é§ä_Ì
-#define WINDOW_WIDTH 17 // cvSnakeImageÅŬlðTõ·éßTÌæÌ
-#define WINDOW_HEIGHT 17 // cvSnakeImageÅŬlðTõ·éßTÌæ̳
-#define HISTIMAGE_WIDTH 320 // qXgOæÌ
-#define HISTIMAGE_HEIGHT 200 // qXgOæ̳
-#define H_DIMENSION 16 // qXgO̳
-#define H_RANGE_MIN 0
-#define H_RANGE_MAX 180
-#define V_MIN 10 // ¾xÌŬl
-#define V_MAX 256 // ¾xÌÅål
-#define S_MIN 30 // ÊxÌŬl
-#define S_MAX 256 // ÊxÌŬl
-#define HIDDEN_BACKPROJECTION 0 // obNvWFNVæð\¦³¹È¢tOl
-#define SHOW_BACKPROJECTION 1 // obNvWFNVæð\¦³¹étOl
-#define SELECT_OFF 0 // úÇÕÌæªÝè³êĢȢƫÌtOl
-#define SELECT_ON 1 // úÇÕÌæªÝè³êÄ¢éÆ«ÌtOl
-#define TRACKING_STOP 0 // gbLOð~ßétOl
-#define TRACKING_START -1 // gbLOðJn·étOl
-#define TRACKING_NOW 1 // gbLOð¦·tOl
-#define HIDDEN_HISTOGRAM 0 // qXgOð\¦³¹È¢tOl
-#define SHOW_HISTOGRAM 1 // qXgOð\¦³¹étOl
-#define ITERATION_SNAKE 10 // cvSnakeImage̽ñ
-
-// Service implementation headers
-// <rtc-template block="service_impl_h">
-
-// </rtc-template>
-
-// Service Consumer stub headers
-// <rtc-template block="consumer_stub_h">
-
-// </rtc-template>
-
-using namespace RTC;
-
-/*!
- * @class ObjectTracking
- * @brief Objecttrack component
- *
- */
-class ObjectTracking
- : public RTC::DataFlowComponentBase
-{
- public:
- /*!
- * @brief constructor
- * @param manager Maneger Object
- */
- ObjectTracking(RTC::Manager* manager);
-
- /*!
- * @brief destructor
- */
- ~ObjectTracking();
-
- // <rtc-template block="public_attribute">
-
- // </rtc-template>
-
- // <rtc-template block="public_operation">
-
- // </rtc-template>
-
- /***
- *
- * The initialize action (on CREATED->ALIVE transition)
- * formaer rtc_init_entry()
- *
- * @return RTC::ReturnCode_t
- *
- *
- */
- virtual RTC::ReturnCode_t onInitialize();
-
- /***
- *
- * The finalize action (on ALIVE->END transition)
- * formaer rtc_exiting_entry()
- *
- * @return RTC::ReturnCode_t
- *
- *
- */
- // virtual RTC::ReturnCode_t onFinalize();
-
- /***
- *
- * The startup action when ExecutionContext startup
- * former rtc_starting_entry()
- *
- * @param ec_id target ExecutionContext Id
- *
- * @return RTC::ReturnCode_t
- *
- *
- */
- // virtual RTC::ReturnCode_t onStartup(RTC::UniqueId ec_id);
-
- /***
- *
- * The shutdown action when ExecutionContext stop
- * former rtc_stopping_entry()
- *
- * @param ec_id target ExecutionContext Id
- *
- * @return RTC::ReturnCode_t
- *
- *
- */
- // virtual RTC::ReturnCode_t onShutdown(RTC::UniqueId ec_id);
-
- /***
- *
- * The activated action (Active state entry action)
- * former rtc_active_entry()
- *
- * @param ec_id target ExecutionContext Id
- *
- * @return RTC::ReturnCode_t
- *
- *
- */
- virtual RTC::ReturnCode_t onActivated(RTC::UniqueId ec_id);
-
- /***
- *
- * The deactivated action (Active state exit action)
- * former rtc_active_exit()
- *
- * @param ec_id target ExecutionContext Id
- *
- * @return RTC::ReturnCode_t
- *
- *
- */
- virtual RTC::ReturnCode_t onDeactivated(RTC::UniqueId ec_id);
-
- /***
- *
- * The execution action that is invoked periodically
- * former rtc_active_do()
- *
- * @param ec_id target ExecutionContext Id
- *
- * @return RTC::ReturnCode_t
- *
- *
- */
- virtual RTC::ReturnCode_t onExecute(RTC::UniqueId ec_id);
-
- /***
- *
- * The aborting action when main logic error occurred.
- * former rtc_aborting_entry()
- *
- * @param ec_id target ExecutionContext Id
- *
- * @return RTC::ReturnCode_t
- *
- *
- */
- // virtual RTC::ReturnCode_t onAborting(RTC::UniqueId ec_id);
-
- /***
- *
- * The error action in ERROR state
- * former rtc_error_do()
- *
- * @param ec_id target ExecutionContext Id
- *
- * @return RTC::ReturnCode_t
- *
- *
- */
- // virtual RTC::ReturnCode_t onError(RTC::UniqueId ec_id);
-
- /***
- *
- * The reset action that is invoked resetting
- * This is same but different the former rtc_init_entry()
- *
- * @param ec_id target ExecutionContext Id
- *
- * @return RTC::ReturnCode_t
- *
- *
- */
- // virtual RTC::ReturnCode_t onReset(RTC::UniqueId ec_id);
-
- /***
- *
- * The state update action that is invoked after onExecute() action
- * no corresponding operation exists in OpenRTm-aist-0.2.0
- *
- * @param ec_id target ExecutionContext Id
- *
- * @return RTC::ReturnCode_t
- *
- *
- */
- // virtual RTC::ReturnCode_t onStateUpdate(RTC::UniqueId ec_id);
-
- /***
- *
- * The action that is invoked when execution context's rate is changed
- * no corresponding operation exists in OpenRTm-aist-0.2.0
- *
- * @param ec_id target ExecutionContext Id
- *
- * @return RTC::ReturnCode_t
- *
- *
- */
- // virtual RTC::ReturnCode_t onRateChanged(RTC::UniqueId ec_id);
-
-
- protected:
- // <rtc-template block="protected_attribute">
-
- // </rtc-template>
-
- // <rtc-template block="protected_operation">
-
- // </rtc-template>
-
- // Configuration variable declaration
- // <rtc-template block="config_declare">
- /*!
- *
- * - Name: img_height
- * - DefaultValue: 240
- */
- int m_img_height;
- /*!
- *
- * - Name: img_width
- * - DefaultValue: 320
- */
- int m_img_width;
-
- // </rtc-template>
-
- // DataInPort declaration
- // <rtc-template block="inport_declare">
- RTC::CameraImage m_orig_img;
- /*!
- */
- InPort<RTC::CameraImage> m_orig_imgIn;
- RTC::TimedLong m_event;
- /*!
- */
- InPort<RTC::TimedLong> m_eventIn;
- RTC::TimedLong m_x;
- /*!
- */
- InPort<RTC::TimedLong> m_xIn;
- RTC::TimedLong m_y;
- /*!
- */
- InPort<RTC::TimedLong> m_yIn;
-
- // </rtc-template>
-
-
- // DataOutPort declaration
- // <rtc-template block="outport_declare">
- RTC::CameraImage m_out_img;
- /*!
- */
- OutPort<RTC::CameraImage> m_out_imgOut;
- RTC::CameraImage m_hist_img;
- /*!
- */
- OutPort<RTC::CameraImage> m_hist_imgOut;
-
- // </rtc-template>
-
- // CORBA Port declaration
- // <rtc-template block="corbaport_declare">
-
- // </rtc-template>
-
- // Service declaration
- // <rtc-template block="service_declare">
-
- // </rtc-template>
-
- // Consumer declaration
- // <rtc-template block="consumer_declare">
-
- // </rtc-template>
-
- private:
- // <rtc-template block="private_attribute">
-
- // </rtc-template>
-
- // <rtc-template block="private_operation">
-
- // </rtc-template>
-
-};
-
-
-extern "C"
-{
- DLL_EXPORT void ObjectTrackingInit(RTC::Manager* manager);
-};
-
-#endif // OBJECTTRACKING_H
+// -*- C++ -*-
+/*!
+ * @file ObjectTracking.h
+ * @brief Objecttrack component
+ * @date $Date$
+ *
+ * $Id$
+ */
+
+#ifndef OBJECTTRACKING_H
+#define OBJECTTRACKING_H
+
+#include <rtm/Manager.h>
+#include <rtm/DataFlowComponentBase.h>
+#include <rtm/CorbaPort.h>
+#include <rtm/DataInPort.h>
+#include <rtm/DataOutPort.h>
+#include <rtm/idl/BasicDataTypeSkel.h>
+#include <rtm/idl/ExtendedDataTypesSkel.h>
+#include <rtm/idl/InterfaceDataTypesSkel.h>
+
+#include <cv.h>
+#include <cvaux.h>
+#include <highgui.h>
+
+#define SEGMENT 150 /* cvSnakeImageã§ç¨ããå¶å¾¡ç¹ã®æ° */
+#define WINDOW_WIDTH 17 /* cvSnakeImageã§æå°å¤ãæ¢ç´¢ããè¿åé åã®å¹
*/
+#define WINDOW_HEIGHT 17 /* cvSnakeImageã§æå°å¤ãæ¢ç´¢ããè¿åé åã®é«ã */
+#define HISTIMAGE_WIDTH 320 /* ãã¹ãã°ã©ã ç»åã®å¹
*/
+#define HISTIMAGE_HEIGHT 200 /* ãã¹ãã°ã©ã ç»åã®é«ã */
+#define H_DIMENSION 16 /* ãã¹ãã°ã©ã ã®æ¬¡å
æ° */
+#define H_RANGE_MIN 0
+#define H_RANGE_MAX 180
+#define V_MIN 10 /* æ度ã®æå°å¤ */
+#define V_MAX 256 /* æ度ã®æå¤§å¤ */
+#define S_MIN 30 /* 彩度ã®æå°å¤ */
+#define S_MAX 256 /* 彩度ã®æå°å¤ */
+#define HIDDEN_BACKPROJECTION 0 /* ããã¯ããã¸ã§ã¯ã·ã§ã³ç»åã表示ãããªããã©ã°å¤ */
+#define SHOW_BACKPROJECTION 1 /* ããã¯ããã¸ã§ã¯ã·ã§ã³ç»åã表示ããããã©ã°å¤ */
+#define SELECT_OFF 0 /* åæ追跡é åãè¨å®ããã¦ããªãã¨ãã®ãã©ã°å¤ */
+#define SELECT_ON 1 /* åæ追跡é åãè¨å®ããã¦ããã¨ãã®ãã©ã°å¤ */
+#define TRACKING_STOP 0 /* ãã©ããã³ã°ãæ¢ãããã©ã°å¤ */
+#define TRACKING_START -1 /* ãã©ããã³ã°ãéå§ãããã©ã°å¤ */
+#define TRACKING_NOW 1 /* ãã©ããã³ã°ä¸ã示ããã©ã°å¤ */
+#define HIDDEN_HISTOGRAM 0 /* ãã¹ãã°ã©ã ã表示ãããªããã©ã°å¤ */
+#define SHOW_HISTOGRAM 1 /* ãã¹ãã°ã©ã ã表示ããããã©ã°å¤ */
+#define ITERATION_SNAKE 10 /* cvSnakeImageã®å復åæ° */
+
+// Service implementation headers
+// <rtc-template block="service_impl_h">
+
+// </rtc-template>
+
+// Service Consumer stub headers
+// <rtc-template block="consumer_stub_h">
+
+// </rtc-template>
+
+using namespace RTC;
+
+/*!
+ * @class ObjectTracking
+ * @brief Objecttrack component
+ *
+ */
+class ObjectTracking
+ : public RTC::DataFlowComponentBase
+{
+ public:
+ /*!
+ * @brief constructor
+ * @param manager Maneger Object
+ */
+ ObjectTracking(RTC::Manager* manager);
+
+ /*!
+ * @brief destructor
+ */
+ ~ObjectTracking();
+
+ // <rtc-template block="public_attribute">
+
+ // </rtc-template>
+
+ // <rtc-template block="public_operation">
+
+ // </rtc-template>
+
+ /***
+ *
+ * The initialize action (on CREATED->ALIVE transition)
+ * formaer rtc_init_entry()
+ *
+ * @return RTC::ReturnCode_t
+ *
+ *
+ */
+ virtual RTC::ReturnCode_t onInitialize();
+
+ /***
+ *
+ * The finalize action (on ALIVE->END transition)
+ * formaer rtc_exiting_entry()
+ *
+ * @return RTC::ReturnCode_t
+ *
+ *
+ */
+ // virtual RTC::ReturnCode_t onFinalize();
+
+ /***
+ *
+ * The startup action when ExecutionContext startup
+ * former rtc_starting_entry()
+ *
+ * @param ec_id target ExecutionContext Id
+ *
+ * @return RTC::ReturnCode_t
+ *
+ *
+ */
+ // virtual RTC::ReturnCode_t onStartup(RTC::UniqueId ec_id);
+
+ /***
+ *
+ * The shutdown action when ExecutionContext stop
+ * former rtc_stopping_entry()
+ *
+ * @param ec_id target ExecutionContext Id
+ *
+ * @return RTC::ReturnCode_t
+ *
+ *
+ */
+ // virtual RTC::ReturnCode_t onShutdown(RTC::UniqueId ec_id);
+
+ /***
+ *
+ * The activated action (Active state entry action)
+ * former rtc_active_entry()
+ *
+ * @param ec_id target ExecutionContext Id
+ *
+ * @return RTC::ReturnCode_t
+ *
+ *
+ */
+ virtual RTC::ReturnCode_t onActivated(RTC::UniqueId ec_id);
+
+ /***
+ *
+ * The deactivated action (Active state exit action)
+ * former rtc_active_exit()
+ *
+ * @param ec_id target ExecutionContext Id
+ *
+ * @return RTC::ReturnCode_t
+ *
+ *
+ */
+ virtual RTC::ReturnCode_t onDeactivated(RTC::UniqueId ec_id);
+
+ /***
+ *
+ * The execution action that is invoked periodically
+ * former rtc_active_do()
+ *
+ * @param ec_id target ExecutionContext Id
+ *
+ * @return RTC::ReturnCode_t
+ *
+ *
+ */
+ virtual RTC::ReturnCode_t onExecute(RTC::UniqueId ec_id);
+
+ /***
+ *
+ * The aborting action when main logic error occurred.
+ * former rtc_aborting_entry()
+ *
+ * @param ec_id target ExecutionContext Id
+ *
+ * @return RTC::ReturnCode_t
+ *
+ *
+ */
+ // virtual RTC::ReturnCode_t onAborting(RTC::UniqueId ec_id);
+
+ /***
+ *
+ * The error action in ERROR state
+ * former rtc_error_do()
+ *
+ * @param ec_id target ExecutionContext Id
+ *
+ * @return RTC::ReturnCode_t
+ *
+ *
+ */
+ // virtual RTC::ReturnCode_t onError(RTC::UniqueId ec_id);
+
+ /***
+ *
+ * The reset action that is invoked resetting
+ * This is same but different the former rtc_init_entry()
+ *
+ * @param ec_id target ExecutionContext Id
+ *
+ * @return RTC::ReturnCode_t
+ *
+ *
+ */
+ // virtual RTC::ReturnCode_t onReset(RTC::UniqueId ec_id);
+
+ /***
+ *
+ * The state update action that is invoked after onExecute() action
+ * no corresponding operation exists in OpenRTm-aist-0.2.0
+ *
+ * @param ec_id target ExecutionContext Id
+ *
+ * @return RTC::ReturnCode_t
+ *
+ *
+ */
+ // virtual RTC::ReturnCode_t onStateUpdate(RTC::UniqueId ec_id);
+
+ /***
+ *
+ * The action that is invoked when execution context's rate is changed
+ * no corresponding operation exists in OpenRTm-aist-0.2.0
+ *
+ * @param ec_id target ExecutionContext Id
+ *
+ * @return RTC::ReturnCode_t
+ *
+ *
+ */
+ // virtual RTC::ReturnCode_t onRateChanged(RTC::UniqueId ec_id);
+
+
+ protected:
+ // <rtc-template block="protected_attribute">
+
+ // </rtc-template>
+
+ // <rtc-template block="protected_operation">
+
+ // </rtc-template>
+
+ // Configuration variable declaration
+ // <rtc-template block="config_declare">
+
+ // </rtc-template>
+
+ // DataInPort declaration
+ // <rtc-template block="inport_declare">
+ RTC::CameraImage m_orig_img;
+ /*!
+ */
+ InPort<RTC::CameraImage> m_orig_imgIn;
+ RTC::TimedLong m_event;
+ /*!
+ */
+ InPort<RTC::TimedLong> m_eventIn;
+ RTC::TimedLong m_x;
+ /*!
+ */
+ InPort<RTC::TimedLong> m_xIn;
+ RTC::TimedLong m_y;
+ /*!
+ */
+ InPort<RTC::TimedLong> m_yIn;
+
+ // </rtc-template>
+
+
+ // DataOutPort declaration
+ // <rtc-template block="outport_declare">
+ RTC::CameraImage m_out_img;
+ /*!
+ */
+ OutPort<RTC::CameraImage> m_out_imgOut;
+ RTC::CameraImage m_hist_img;
+ /*!
+ */
+ OutPort<RTC::CameraImage> m_hist_imgOut;
+
+ // </rtc-template>
+
+ // CORBA Port declaration
+ // <rtc-template block="corbaport_declare">
+
+ // </rtc-template>
+
+ // Service declaration
+ // <rtc-template block="service_declare">
+
+ // </rtc-template>
+
+ // Consumer declaration
+ // <rtc-template block="consumer_declare">
+
+ // </rtc-template>
+
+ private:
+ // <rtc-template block="private_attribute">
+
+ // </rtc-template>
+
+ // <rtc-template block="private_operation">
+
+ // </rtc-template>
+
+};
+
+
+extern "C"
+{
+ DLL_EXPORT void ObjectTrackingInit(RTC::Manager* manager);
+};
+
+#endif // OBJECTTRACKING_H
Modified: branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/src/CMakeLists.txt
===================================================================
--- branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/src/CMakeLists.txt 2014-03-17 03:42:53 UTC (rev 121)
+++ branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/src/CMakeLists.txt 2014-03-17 06:00:55 UTC (rev 122)
@@ -1,63 +1,69 @@
-set(comp_srcs ObjectTracking.cpp )
-set(standalone_srcs ObjectTrackingComp.cpp)
-
+set(comp_srcs ObjectTracking.cpp )
+set(standalone_srcs ObjectTrackingComp.cpp)
+
find_package(OpenCV REQUIRED)
-if (DEFINED OPENRTM_INCLUDE_DIRS)
- string(REGEX REPLACE "-I" ";"
- OPENRTM_INCLUDE_DIRS "${OPENRTM_INCLUDE_DIRS}")
- string(REGEX REPLACE " ;" ";"
- OPENRTM_INCLUDE_DIRS "${OPENRTM_INCLUDE_DIRS}")
-endif (DEFINED OPENRTM_INCLUDE_DIRS)
-
-if (DEFINED OPENRTM_LIBRARY_DIRS)
- string(REGEX REPLACE "-L" ";"
- OPENRTM_LIBRARY_DIRS "${OPENRTM_LIBRARY_DIRS}")
- string(REGEX REPLACE " ;" ";"
- OPENRTM_LIBRARY_DIRS "${OPENRTM_LIBRARY_DIRS}")
-endif (DEFINED OPENRTM_LIBRARY_DIRS)
-
-if (DEFINED OPENRTM_LIBRARIES)
- string(REGEX REPLACE "-l" ";"
- OPENRTM_LIBRARIES "${OPENRTM_LIBRARIES}")
- string(REGEX REPLACE " ;" ";"
- OPENRTM_LIBRARIES "${OPENRTM_LIBRARIES}")
-endif (DEFINED OPENRTM_LIBRARIES)
-
-include_directories(${PROJECT_SOURCE_DIR}/include)
-include_directories(${PROJECT_SOURCE_DIR}/include/${PROJECT_NAME})
-include_directories(${PROJECT_BINARY_DIR})
-include_directories(${PROJECT_BINARY_DIR}/idl)
-include_directories(${OPENRTM_INCLUDE_DIRS})
-include_directories(${OMNIORB_INCLUDE_DIRS})
-add_definitions(${OPENRTM_CFLAGS})
-add_definitions(${OMNIORB_CFLAGS})
-
-MAP_ADD_STR(comp_hdrs "../" comp_headers)
-
-link_directories(${OPENRTM_LIBRARY_DIRS})
-link_directories(${OMNIORB_LIBRARY_DIRS})
-
-add_library(${PROJECT_NAME} ${LIB_TYPE} ${comp_srcs}
- ${comp_headers} ${ALL_IDL_SRCS})
-set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "")
-set_source_files_properties(${ALL_IDL_SRCS} PROPERTIES GENERATED 1)
-add_dependencies(${PROJECT_NAME} ALL_IDL_TGT)
+if (DEFINED OPENRTM_INCLUDE_DIRS)
+ string(REGEX REPLACE "-I" ";"
+ OPENRTM_INCLUDE_DIRS "${OPENRTM_INCLUDE_DIRS}")
+ string(REGEX REPLACE " ;" ";"
+ OPENRTM_INCLUDE_DIRS "${OPENRTM_INCLUDE_DIRS}")
+endif (DEFINED OPENRTM_INCLUDE_DIRS)
+
+if (DEFINED OPENRTM_LIBRARY_DIRS)
+ string(REGEX REPLACE "-L" ";"
+ OPENRTM_LIBRARY_DIRS "${OPENRTM_LIBRARY_DIRS}")
+ string(REGEX REPLACE " ;" ";"
+ OPENRTM_LIBRARY_DIRS "${OPENRTM_LIBRARY_DIRS}")
+endif (DEFINED OPENRTM_LIBRARY_DIRS)
+
+if (DEFINED OPENRTM_LIBRARIES)
+ string(REGEX REPLACE "-l" ";"
+ OPENRTM_LIBRARIES "${OPENRTM_LIBRARIES}")
+ string(REGEX REPLACE " ;" ";"
+ OPENRTM_LIBRARIES "${OPENRTM_LIBRARIES}")
+endif (DEFINED OPENRTM_LIBRARIES)
+
+include_directories(${PROJECT_SOURCE_DIR}/include)
+include_directories(${PROJECT_SOURCE_DIR}/include/${PROJECT_NAME})
+include_directories(${PROJECT_BINARY_DIR})
+include_directories(${PROJECT_BINARY_DIR}/idl)
+include_directories(${OPENRTM_INCLUDE_DIRS})
+include_directories(${OMNIORB_INCLUDE_DIRS})
+add_definitions(${OPENRTM_CFLAGS})
+add_definitions(${OMNIORB_CFLAGS})
+
+MAP_ADD_STR(comp_hdrs "../" comp_headers)
+
+link_directories(${OPENRTM_LIBRARY_DIRS})
+link_directories(${OMNIORB_LIBRARY_DIRS})
+
+add_library(${PROJECT_NAME} ${LIB_TYPE} ${comp_srcs}
+ ${comp_headers} ${ALL_IDL_SRCS})
+set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "")
+set_source_files_properties(${ALL_IDL_SRCS} PROPERTIES GENERATED 1)
+add_dependencies(${PROJECT_NAME} ALL_IDL_TGT)
target_link_libraries(${PROJECT_NAME} ${OPENRTM_LIBRARIES} ${OpenCV_LIBS})
-
-add_executable(${PROJECT_NAME}Comp ${standalone_srcs}
- ${comp_srcs} ${comp_headers} ${ALL_IDL_SRCS})
+
+add_executable(${PROJECT_NAME}Comp ${standalone_srcs}
+ ${comp_srcs} ${comp_headers} ${ALL_IDL_SRCS})
target_link_libraries(${PROJECT_NAME}Comp ${OPENRTM_LIBRARIES} ${OpenCV_LIBS})
+
+#install(TARGETS ${PROJECT_NAME} ${PROJECT_NAME}Comp
+# EXPORT ${PROJECT_NAME}
+# RUNTIME DESTINATION ${BIN_INSTALL_DIR} COMPONENT component
+# LIBRARY DESTINATION ${LIB_INSTALL_DIR} COMPONENT component
+# ARCHIVE DESTINATION ${LIB_INSTALL_DIR} COMPONENT component)
+#install(EXPORT ${PROJECT_NAME}
+# DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}
+# FILE ${PROJECT_NAME}Depends.cmake)
+install(TARGETS ${PROJECT_NAME} ${PROJECT_NAME}Comp
+ EXPORT ${PROJECT_NAME}
+ RUNTIME DESTINATION ${INSTALL_PREFIX} COMPONENT component
+ LIBRARY DESTINATION ${INSTALL_PREFIX} COMPONENT component
+ ARCHIVE DESTINATION ${INSTALL_PREFIX} COMPONENT component)
+
-install(TARGETS ${PROJECT_NAME} ${PROJECT_NAME}Comp
- EXPORT ${PROJECT_NAME}
- RUNTIME DESTINATION ${BIN_INSTALL_DIR} COMPONENT component
- LIBRARY DESTINATION ${LIB_INSTALL_DIR} COMPONENT component
- ARCHIVE DESTINATION ${LIB_INSTALL_DIR} COMPONENT component)
-install(EXPORT ${PROJECT_NAME}
- DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}
- FILE ${PROJECT_NAME}Depends.cmake)
-
if (SolutionDir)
if (MSVC)
add_custom_command(
Modified: branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/src/ObjectTracking.cpp
===================================================================
--- branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/src/ObjectTracking.cpp 2014-03-17 03:42:53 UTC (rev 121)
+++ branches/newCMakeForVC2010/ImageProcessing/opencv/components/ObjectTracking/src/ObjectTracking.cpp 2014-03-17 06:00:55 UTC (rev 122)
@@ -1,656 +1,636 @@
-// -*- C++ -*-
-/*!
- * @file ObjectTracking.cpp
- * @brief Objecttrack component
- * @date $Date$
- *
- * $Id$
- */
-
-#include "ObjectTracking.h"
-
-// Module specification
-// <rtc-template block="module_spec">
-static const char* objecttracking_spec[] =
- {
- "implementation_id", "ObjectTracking",
- "type_name", "ObjectTracking",
- "description", "Objecttrack component",
- "version", "1.0.0",
- "vendor", "AIST",
- "category", "Category",
- "activity_type", "PERIODIC",
- "kind", "DataFlowComponent",
- "max_instance", "1",
- "language", "C++",
- "lang_type", "compile",
- // Configuration variables
- "conf.default.image_height", "240",
- "conf.default.image_width", "320",
- // Widget
- "conf.__widget__.image_height", "text",
- "conf.__widget__.image_width", "text",
- // Constraints
- ""
- };
-// </rtc-template>
-
-IplImage *inputImage = NULL; //üͳê½IplImage
-IplImage *resultImage = NULL; // Ê\¦pIplImage
-IplImage *hsvImage = NULL; // HSV\FnpIplImage
-IplImage *hueImage = NULL; // HSV\FnÌH`lpIplImage
-IplImage *maskImage = NULL; // }XNæpIplImage
-IplImage *backprojectImage = NULL; // obNvWFNVæpIplImage
-IplImage *histImage = NULL; // qXgO`æpIplImage
-IplImage *grayImage = NULL; // O[XP[æpIplImage
-
-CvHistogram *hist = NULL; // qXgOp\¢Ì
-
-IplImage *frameImage; // Lv`æpIplImage
-CvCapture *capture; // L[üÍÊði[·éÏ
-int count = 0;
-int g_temp_w = 0;
-int g_temp_h = 0;
-
-// [hIðptO
-int backprojectMode = HIDDEN_BACKPROJECTION;
-int selectObject = SELECT_OFF;
-int trackObject = TRACKING_STOP;
-int showHist = SHOW_HISTOGRAM;
-
-// CamShiftgbLOpÏ
-CvPoint origin;
-CvRect selection;
-CvRect trackWindow;
-CvBox2D trackRegion;
-CvConnectedComp trackComp;
-
-// qXgOpÏ
-int hdims = H_DIMENSION; // qXgO̳
-float hRangesArray[] = {H_RANGE_MIN, H_RANGE_MAX}; //qXgOÌW
-float *hRanges = hRangesArray;
-int vmin = V_MIN;
-int vmax = V_MAX;
-
-//char *windowNameObjectTracking = "CaptureImage";
-
-//
-// }EXhbOÉæÁÄúÇÕÌæðwè·é
-//
-// ø:
-// event : }EX¶{^ÌóÔ
-// x : }EXª»Ý|CgµÄ¢éxÀW
-// y : }EXª»Ý|CgµÄ¢éyÀW
-// flags : {vOÅÍ¢gp
-// param : {vOÅÍ¢gp
-//
-static void on_mouse( int event, int x, int y, int flags, void* param ){
- // æªæ¾³êĢȯêÎAðsíÈ¢
- if( resultImage == NULL ){
- return;
- }
-
- // ´_ÌÊuɶÄyÌlð½]iæ̽]ÅÍÈ¢j
- if( resultImage->origin == 1 ){
- y = resultImage->height - y;
- }
- // }EX̶{^ª³êÄ¢êÎȺÌðs¤
- if( selectObject == SELECT_ON ){
- selection.x = MIN( x, origin.x );
- selection.y = MIN( y, origin.y );
- selection.width = selection.x + CV_IABS( x - origin.x );
- selection.height = selection.y + CV_IABS( y - origin.y );
-
- selection.x = MAX( selection.x, 0 );
- selection.y = MAX( selection.y, 0 );
- selection.width = MIN( selection.width, resultImage->width );
- selection.height = MIN( selection.height, resultImage->height );
- selection.width = selection.width - selection.x;
- selection.height = selection.height - selection.y;
- }
- // }EX̶{^ÌóÔÉæÁÄðªò
- switch( event ){
- case CV_EVENT_LBUTTONDOWN:
- // }EX̶{^ª³ê½ÌÅ êÎA
- // ´_¨æÑIð³ê½ÌæðÝè
- origin = cvPoint( x, y );
- selection = cvRect( x, y, 0, 0 );
- selectObject = SELECT_ON;
- break;
- case CV_EVENT_LBUTTONUP:
- // }EX̶{^ª£³ê½Æ«AwidthÆheightªÇ¿çà³Å êÎA
- // trackObjecttOðTRACKING_STARTÉ·é
- selectObject = SELECT_OFF;
- if( selection.width > 0 && selection.height > 0 ){
- trackObject = TRACKING_START;
- }
- break;
- }
-}
-
-//
-// üͳê½1ÂÌFlðRGBÉÏ··é
-//
-// ø:
-// hue : HSV\Fnɨ¯éFlH
-// ßèlF
-// CvScalar: RGBÌFîñªBGRÌÅi[³ê½Rei
-//
-CvScalar hsv2rgb( float hue ){
- IplImage *rgbValue, *hsvValue;
- rgbValue = cvCreateImage( cvSize(1,1), IPL_DEPTH_8U, 3 );
- hsvValue = cvCreateImage( cvSize(1,1), IPL_DEPTH_8U, 3 );
-
- hsvValue->imageData[0] = hue; // FlH
- hsvValue->imageData[1] = 255; // ÊxlS
- hsvValue->imageData[2] = 255; // ¾xlV
-
- // HSV\FnðRGB\FnÉÏ··é
- cvCvtColor( hsvValue, rgbValue, CV_HSV2BGR );
-
- return cvScalar( (unsigned char)rgbValue->imageData[0],
- (unsigned char)rgbValue->imageData[1],
- (unsigned char)rgbValue->imageData[2],
- 0 );
-
- // ððú·é
- cvReleaseImage( &rgbValue );
- cvReleaseImage( &hsvValue );
-}
-
-
-//
-// }EXIð³ê½úÇÕÌæɨ¯éHSVÌHlÅqXgOð쬵AqXgOÌ`æÜÅðs¤
-//
-// ø:
-// hist : mainÅé¾³ê½qXgOp\¢Ì
-// hsvImage : üÍæªHSV\FnÉÏ·³ê½ãÌIplImage
-// maskImage : }XNæpIplImage
-// selection : }EXÅIð³ê½é`Ìæ
-//
-void CalculateHist( CvHistogram *hist, IplImage *hsvImage, IplImage *maskImage, CvRect selection ){
- int i;
- int binW; // qXgOÌerÌAæãÅÌ
- int val; // qXgOÌpx
- float maxVal; // qXgOÌÅåpx
-
-
- // hsvæÌeæfªlÌÍÍàÉüÁÄ¢é©`FbNµA
- // }XNæmaskImageð쬷é
- cvInRangeS( hsvImage,
- cvScalar( H_RANGE_MIN, S_MIN, MIN(V_MIN,V_MAX), 0 ),
- cvScalar( H_RANGE_MAX, S_MAX, MAX(V_MIN,V_MAX), 0 ),
- maskImage );
- // hsvImage̤¿AÆÉKvÈH`lðhueImageƵĪ£·é
- cvSplit( hsvImage, hueImage, 0, 0, 0 );
- // trackObjectªTRACKING_STARTóÔÈçAȺÌðs¤
- if( trackObject == TRACKING_START ){
- // ÇÕÌæÌqXgOvZÆhistImageÖÌ`æ
- maxVal = 0.0;
-
- cvSetImageROI( hueImage, selection );
- cvSetImageROI( maskImage, selection );
- // qXgOðvZµAÅålðßé
- cvCalcHist( &hueImage, hist, 0, maskImage );
- cvGetMinMaxHistValue( hist, 0, &maxVal, 0, 0 );
- // qXgOÌc²ipxjð0-255Ì_Ci~bNWɳK»
- if( maxVal == 0.0 ){
- cvConvertScale( hist->bins, hist->bins, 0.0, 0 );
- } else{
- cvConvertScale( hist->bins, hist->bins, 255.0 / maxVal, 0 );
- }
- // hue,maskæÉÝè³ê½ROIðZbg
- cvResetImageROI( hueImage );
- cvResetImageROI( maskImage );
-
- trackWindow = selection;
- // trackObjectðTRACKING_NOWÉ·é
- trackObject = TRACKING_NOW;
-
- // qXgOæð[NA
- cvSetZero( histImage );
- // erÌðßé
- binW = histImage->width / hdims;
- // qXgOð`æ·é
- for( i = 0; i < hdims; i++ ){
- val = cvRound( cvGetReal1D(hist->bins,i) * histImage->height / 255 );
- CvScalar color = hsv2rgb( i * 180.0 / hdims );
- cvRectangle( histImage,
- cvPoint( i * binW, histImage->height ),
- cvPoint( (i+1) * binW, histImage->height - val ),
- color,
- -1,
- 8,
- 0 );
- }
- }
-}
-
-/*!
- * @brief constructor
- * @param manager Maneger Object
- */
-ObjectTracking::ObjectTracking(RTC::Manager* manager)
- // <rtc-template block="initializer">
- : RTC::DataFlowComponentBase(manager),
- m_orig_imgIn("img_original", m_orig_img),
- m_eventIn("m_event", m_event),
- m_xIn("m_x", m_x),
- m_yIn("m_y", m_y),
- m_out_imgOut("img_output", m_out_img),
- m_hist_imgOut("img_hist", m_hist_img)
-
- // </rtc-template>
-{
-}
-
-/*!
- * @brief destructor
- */
-ObjectTracking::~ObjectTracking()
-{
-}
-
-
-
-RTC::ReturnCode_t ObjectTracking::onInitialize()
-{
- // Registration: InPort/OutPort/Service
- // <rtc-template block="registration">
- // Set InPort buffers
- addInPort("img_original", m_orig_imgIn);
- addInPort("m_event", m_eventIn);
- addInPort("m_x", m_xIn);
- addInPort("m_y", m_yIn);
-
- // Set OutPort buffer
- addOutPort("img_output", m_out_imgOut);
- addOutPort("img_hist", m_hist_imgOut);
-
- // Set service provider to Ports
-
- // Set service consumers to Ports
-
- // Set CORBA Service Ports
-
- // </rtc-template>
-
- // <rtc-template block="bind_config">
- // Bind variables and configuration variable
- bindParameter("image_height", m_img_height, "240");
- bindParameter("image_width", m_img_width, "320");
- // </rtc-template>
-
- return RTC::RTC_OK;
-}
-
-/*
-RTC::ReturnCode_t ObjectTracking::onFinalize()
-{
- return RTC::RTC_OK;
-}
-*/
-
-/*
-RTC::ReturnCode_t ObjectTracking::onStartup(RTC::UniqueId ec_id)
-{
- return RTC::RTC_OK;
-}
-*/
-
-/*
-RTC::ReturnCode_t ObjectTracking::onShutdown(RTC::UniqueId ec_id)
-{
- return RTC::RTC_OK;
-}
-*/
-
-
-RTC::ReturnCode_t ObjectTracking::onActivated(RTC::UniqueId ec_id)
-{
- g_temp_w = 0;
- g_temp_h = 0;
-
- //emÛ
- inputImage = NULL;
- resultImage = NULL;
- hsvImage = NULL;
- hueImage = NULL;
- maskImage = NULL;
- backprojectImage = NULL;
- grayImage = NULL;
- histImage = NULL;
-
- return RTC::RTC_OK;
-}
-
-
-RTC::ReturnCode_t ObjectTracking::onDeactivated(RTC::UniqueId ec_id)
-{
- //©çðú
- if(inputImage != NULL){
- cvReleaseImage(&inputImage);
- }
- if(resultImage != NULL){
- cvReleaseImage(&resultImage);
- }
- if(hsvImage != NULL){
- cvReleaseImage(&hsvImage);
- }
- if(hueImage != NULL){
- cvReleaseImage(&hueImage);
- }
- if(hueImage != NULL){
- cvReleaseImage(&maskImage);
- }
- if(backprojectImage != NULL){
- cvReleaseImage(&backprojectImage);
- }
- if(grayImage != NULL){
- cvReleaseImage(&grayImage);
- }
- if(histImage != NULL){
- cvReleaseImage(&histImage);
- }
-
- return RTC::RTC_OK;
-}
-
-
-RTC::ReturnCode_t ObjectTracking::onExecute(RTC::UniqueId ec_id)
-{
- int key; // L[üÍÊði[·éÏ
- int i;
- int j;
-
- int x;
- int y;
- int mouse_event;
-
- // SnakepÌp[^
- float alpha = 1.0; // A±GlM[ÌdÝp[^
- float beta = 0.5; // ȦÌdÝp[^
- float gamma = 1.5; // æGlM[ÌdÝp[^
- CvPoint pt[SEGMENT]; // §ä_ÌÀW
- CvSize window; // ŬlðTõ·éßTTCY
- window.width = WINDOW_WIDTH;
- window.height = WINDOW_HEIGHT;
- CvTermCriteria crit;
- crit.type = CV_TERMCRIT_ITER; // I¹ðÌÝè
- crit.max_iter = ITERATION_SNAKE; // ÖÌÅå½
-
- if(m_orig_imgIn.isNew()){
-
- m_orig_imgIn.read();
-
- //emÛ
- if(inputImage == NULL){
- inputImage = cvCreateImage(cvSize(m_orig_img.width, m_orig_img.height), IPL_DEPTH_8U, 3);
- }
- if(g_temp_w != m_orig_img.width || g_temp_h != m_orig_img.height){
- cvReleaseImage(&inputImage);
- inputImage = cvCreateImage(cvSize(m_orig_img.width, m_orig_img.height), IPL_DEPTH_8U, 3);
- }
- if(resultImage == NULL){
- resultImage = cvCreateImage(cvSize(m_orig_img.width, m_orig_img.height), IPL_DEPTH_8U, 3);
- }
- if(g_temp_w != m_orig_img.width || g_temp_h != m_orig_img.height){
- cvReleaseImage(&resultImage);
- resultImage = cvCreateImage(cvSize(m_orig_img.width, m_orig_img.height), IPL_DEPTH_8U, 3);
- }
- resultImage->origin = inputImage->origin;
- if(hsvImage == NULL){
- hsvImage = cvCreateImage(cvSize(m_orig_img.width, m_orig_img.height), IPL_DEPTH_8U, 3);
- }
- if(g_temp_w != m_orig_img.width || g_temp_h != m_orig_img.height){
- cvReleaseImage(&hsvImage);
- hsvImage = cvCreateImage(cvSize(m_orig_img.width, m_orig_img.height), IPL_DEPTH_8U, 3);
- }
- if(hueImage == NULL){
- hueImage = cvCreateImage(cvSize(m_orig_img.width, m_orig_img.height), IPL_DEPTH_8U, 1);
- }
- if(g_temp_w != m_orig_img.width || g_temp_h != m_orig_img.height){
- cvReleaseImage(&hueImage);
- hueImage = cvCreateImage(cvSize(m_orig_img.width, m_orig_img.height), IPL_DEPTH_8U, 1);
- }
- if(maskImage == NULL){
- maskImage = cvCreateImage(cvSize(m_orig_img.width, m_orig_img.height), IPL_DEPTH_8U, 1);
- }
- if(g_temp_w != m_orig_img.width || g_temp_h != m_orig_img.height){
- cvReleaseImage(&maskImage);
- maskImage = cvCreateImage(cvSize(m_orig_img.width, m_orig_img.height), IPL_DEPTH_8U, 1);
- }
- if(backprojectImage == NULL){
- backprojectImage = cvCreateImage(cvSize(m_orig_img.width, m_orig_img.height), IPL_DEPTH_8U, 1);
- }
- if(g_temp_w != m_orig_img.width || g_temp_h != m_orig_img.height){
- cvReleaseImage(&backprojectImage);
- backprojectImage = cvCreateImage(cvSize(m_orig_img.width, m_orig_img.height), IPL_DEPTH_8U, 1);
- }
- if(grayImage == NULL){
- grayImage = cvCreateImage(cvSize(m_orig_img.width, m_orig_img.height), IPL_DEPTH_8U, 1);
- }
- if(g_temp_w != m_orig_img.width || g_temp_h != m_orig_img.height){
- cvReleaseImage(&grayImage);
- grayImage = cvCreateImage(cvSize(m_orig_img.width, m_orig_img.height), IPL_DEPTH_8U, 1);
- }
- // qXgO\¢ÌÌgpðé¾
- if(hist == NULL){
- hist = cvCreateHist( 1, &hdims, CV_HIST_ARRAY, &hRanges, 1 );
- }
- // qXgOpÌæðmÛµA[NA
- if(histImage == NULL){
- histImage = cvCreateImage( cvSize(HISTIMAGE_WIDTH, HISTIMAGE_HEIGHT), IPL_DEPTH_8U, 3 );
- }
- if(g_temp_w != m_orig_img.width || g_temp_h != m_orig_img.height){
- cvReleaseImage(&histImage);
- histImage = cvCreateImage(cvSize(m_orig_img.width, m_orig_img.height), IPL_DEPTH_8U, 3);
- }
- cvSetZero( histImage );
-
- //InPortÌfÌæ¾
- memcpy(inputImage->imageData,(void *)&(m_orig_img.pixels[0]),m_orig_img.pixels.length());
-
- // Lv`³ê½æðresultImageÉRs[µAHSV\FnÉÏ·µÄhsvImageÉi[
- cvCopy( inputImage, resultImage, NULL );
- cvCvtColor( resultImage, hsvImage, CV_BGR2HSV );
-
- //WindowÌEventîñÌæ¾Éηé
- if(m_eventIn.isNew() && m_xIn.isNew() && m_yIn.isNew()){
- m_xIn.read();
- m_yIn.read();
- m_eventIn.read();
-
- x = m_x.data;
- y = m_y.data;
- mouse_event = m_event.data;
-
- on_mouse(mouse_event, x, y, 0, 0);
-
- x= 0;
- y= 0;
- mouse_event = 0;
- }
-
- // trackObjecttOªTRACKING_STOPÈOÈçAȺÌðs¤
- if( trackObject != TRACKING_STOP ){
-
- //ÇÕÌæÌqXgOvZÆ`æ
- CalculateHist( hist, hsvImage, maskImage, selection );
-
- // obNvWFNVðvZ·é
- cvCalcBackProject( &hueImage, backprojectImage, hist );
- // backProjection̤¿A}XNª1Å éƳ꽪ÌÝc·
- cvAnd( backprojectImage, maskImage, backprojectImage, 0 );
-
- // CamShift@ÉæéÌæÇÕðÀs·é
- cvCamShift( backprojectImage,
- trackWindow,
- cvTermCriteria( CV_TERMCRIT_EPS | CV_TERMCRIT_ITER, 10, 1 ),
- &trackComp,
- &trackRegion );
-
- trackWindow = trackComp.rect;
-
- // SnakeImagepÌO[XP[æð쬷é
- cvCvtColor( resultImage, grayImage, CV_BGR2GRAY );
-
- if( backprojectMode == SHOW_BACKPROJECTION ){
- cvCvtColor( backprojectImage, resultImage, CV_GRAY2BGR );
- }
- if( resultImage->origin == 1 ){
- trackRegion.angle = -trackRegion.angle;
- }
-
- // CamShiftÅÌÌæÇÕÊðSnakeÌúÊuÉÝè·é
- for( i=0; i<SEGMENT; i++ ){
- pt[i].x = cvRound( trackRegion.size.width
- * cos(i * 6.28 / SEGMENT + trackRegion.angle)
- / 2.0 + trackRegion.center.x );
- pt[i].y = cvRound( trackRegion.size.height
- * sin(i * 6.28 / SEGMENT + trackRegion.angle)
- / 2.0 + trackRegion.center.y );
- }
- // SnakeÉæéÖsoðÀs·é
- for( i=0; i<ITERATION_SNAKE; i++ ){
- cvSnakeImage( grayImage,
- pt,
- SEGMENT,
- &alpha,
- &beta,
- &gamma,
- CV_VALUE,
- window,
- crit,
- 1);
- // eÖs_ÌÔÉüðТÄÖsüð`æ·é
- for( j=0; j<SEGMENT; j++ ){
- if( j < SEGMENT-1 ){
- cvLine( resultImage, pt[j], pt[j+1],
- cvScalar(0,0,255,0), 2, 8, 0 );
- }
- else{
- cvLine( resultImage, pt[j], pt[0],
- cvScalar(0,0,255,0), 2, 8, 0 );
- }
- }
- }
- }
-
- // }EXÅIðÌúÇÕÌæÌFð½]³¹é
- if( selectObject == SELECT_ON && selection.width > 0 && selection.height > 0 ){
-
- cvSetImageROI( resultImage, selection );
- cvXorS( resultImage, cvScalarAll(255), resultImage, 0 );
- cvResetImageROI( resultImage );
- }
- // backprojectImageÌÀW´_ª¶ãÌêAãºð½]³¹é
- if( backprojectImage->origin == 0 ){
- cvFlip( backprojectImage, backprojectImage, 0 );
- }
-
- // æð\¦·é
- //cvShowImage( windowNameObjectTracking, resultImage );
- //key = cvWaitKey(1);
-
- // æf[^ÌTCYæ¾
- double len = (resultImage->nChannels * resultImage->width * resultImage->height);
- double leng = (histImage->nChannels * histImage->width * histImage->height);
- m_out_img.pixels.length(len);
- m_hist_img.pixels.length(leng);
-
- // YÌC[WðMemCopy·é
- memcpy((void *)&(m_out_img.pixels[0]), resultImage->imageData, len);
- memcpy((void *)&(m_hist_img.pixels[0]), histImage->imageData, leng);
-
- // ½]µ½æf[^ðOutPort©çoÍ·éB
- m_out_img.width = inputImage->width;
- m_out_img.height = inputImage->height;
-
- m_hist_img.width = inputImage->width;
- m_hist_img.height = inputImage->height;
-
- m_out_imgOut.write();
- m_hist_imgOut.write();
-
- if(inputImage != NULL){
- cvReleaseImage(&inputImage);
- }
- if(resultImage != NULL){
- cvReleaseImage(&resultImage);
- }
- if(hsvImage != NULL){
- cvReleaseImage(&hsvImage);
- }
- if(hueImage != NULL){
- cvReleaseImage(&hueImage);
- }
- if(hueImage != NULL){
- cvReleaseImage(&maskImage);
- }
- if(backprojectImage != NULL){
- cvReleaseImage(&backprojectImage);
- }
- if(grayImage != NULL){
- cvReleaseImage(&grayImage);
- }
- if(histImage != NULL){
- cvReleaseImage(&histImage);
- }
-
- }
-
- return RTC::RTC_OK;
-}
-
-/*
-RTC::ReturnCode_t ObjectTracking::onAborting(RTC::UniqueId ec_id)
-{
- return RTC::RTC_OK;
-}
-*/
-
-/*
-RTC::ReturnCode_t ObjectTracking::onError(RTC::UniqueId ec_id)
-{
- return RTC::RTC_OK;
-}
-*/
-
-/*
-RTC::ReturnCode_t ObjectTracking::onReset(RTC::UniqueId ec_id)
-{
- return RTC::RTC_OK;
-}
-*/
-
-/*
-RTC::ReturnCode_t ObjectTracking::onStateUpdate(RTC::UniqueId ec_id)
-{
- return RTC::RTC_OK;
-}
-*/
-
-/*
-RTC::ReturnCode_t ObjectTracking::onRateChanged(RTC::UniqueId ec_id)
-{
- return RTC::RTC_OK;
-}
-*/
-
-
-
-extern "C"
-{
-
- void ObjectTrackingInit(RTC::Manager* manager)
- {
- coil::Properties profile(objecttracking_spec);
- manager->registerFactory(profile,
- RTC::Create<ObjectTracking>,
- RTC::Delete<ObjectTracking>);
- }
-
-};
-
-
+// -*- C++ -*-
+/*!
+ * @file ObjectTracking.cpp
+ * @brief Objecttrack component
+ * @date $Date$
+ *
+ * $Id$
+ */
+
+#include "ObjectTracking.h"
+
+// Module specification
+// <rtc-template block="module_spec">
+static const char* objecttracking_spec[] =
+ {
+ "implementation_id", "ObjectTracking",
+ "type_name", "ObjectTracking",
+ "description", "Objecttrack component",
+ "version", "1.1.0",
+ "vendor", "AIST",
+ "category", "Category",
+ "activity_type", "PERIODIC",
+ "kind", "DataFlowComponent",
+ "max_instance", "1",
+ "language", "C++",
+ "lang_type", "compile",
+ ""
+ };
+// </rtc-template>
+
+IplImage *inputImage = NULL; /* å
¥åãããIplImage */
+IplImage *resultImage = NULL; /* å¦ççµæ表示ç¨IplImage */
+IplImage *hsvImage = NULL; /* HSV表è²ç³»ç¨IplImage */
+IplImage *hueImage = NULL; /* HSV表è²ç³»ã®Hãã£ã³ãã«ç¨IplImage */
+IplImage *maskImage = NULL; /* ãã¹ã¯ç»åç¨IplImage */
+IplImage *backprojectImage = NULL; /* ããã¯ããã¸ã§ã¯ã·ã§ã³ç»åç¨IplImage */
+IplImage *histImage = NULL; /* ãã¹ãã°ã©ã æç»ç¨IplImage */
+IplImage *grayImage = NULL; /* ã°ã¬ã¼ã¹ã±ã¼ã«ç»åç¨IplImage */
+
+CvHistogram *hist = NULL; /* ãã¹ãã°ã©ã å¦çç¨æ§é ä½ */
+
+IplImage *frameImage; /* ãã£ããã£ç»åç¨IplImage */
+CvCapture *capture; /* ãã¼å
¥åçµæãæ ¼ç´ããå¤æ° */
+int count = 0;
+int g_temp_w = 0;
+int g_temp_h = 0;
+
+/* å¦çã¢ã¼ãé¸æç¨ãã©ã° */
+int backprojectMode = HIDDEN_BACKPROJECTION;
+int selectObject = SELECT_OFF;
+int trackObject = TRACKING_STOP;
+int showHist = SHOW_HISTOGRAM;
+
+/* CamShiftãã©ããã³ã°ç¨å¤æ° */
+CvPoint origin;
+CvRect selection;
+CvRect trackWindow;
+CvBox2D trackRegion;
+CvConnectedComp trackComp;
+
+/* ãã¹ãã°ã©ã ç¨å¤æ° */
+int hdims = H_DIMENSION; /* ãã¹ãã°ã©ã ã®æ¬¡å
æ° */
+float hRangesArray[] = {H_RANGE_MIN, H_RANGE_MAX}; /* ãã¹ãã°ã©ã ã®ã¬ã³ã¸ */
+float *hRanges = hRangesArray;
+int vmin = V_MIN;
+int vmax = V_MAX;
+
+//
+// ãã¦ã¹ãã©ãã°ã«ãã£ã¦åæ追跡é åãæå®ãã
+//
+// å¼æ°:
+// event : ãã¦ã¹å·¦ãã¿ã³ã®ç¶æ
+// x : ãã¦ã¹ãç¾å¨ãã¤ã³ããã¦ããx座æ¨
+// y : ãã¦ã¹ãç¾å¨ãã¤ã³ããã¦ããy座æ¨
+// flags : æ¬ããã°ã©ã ã§ã¯æªä½¿ç¨
+// param : æ¬ããã°ã©ã ã§ã¯æªä½¿ç¨
+//
+static void on_mouse( int event, int x, int y, int flags, void* param ){
+ /* ç»åãåå¾ããã¦ããªããã°ãå¦çãè¡ããªã */
+ if( resultImage == NULL ){
+ return;
+ }
+
+ /* åç¹ã®ä½ç½®ã«å¿ãã¦yã®å¤ãå転ï¼ç»åã®å転ã§ã¯ãªãï¼ */
+ if( resultImage->origin == 1 ){
+ y = resultImage->height - y;
+ }
+ /* ãã¦ã¹ã®å·¦ãã¿ã³ãæ¼ããã¦ããã°ä»¥ä¸ã®å¦çãè¡ã */
+ if( selectObject == SELECT_ON ){
+ selection.x = MIN( x, origin.x );
+ selection.y = MIN( y, origin.y );
+ selection.width = selection.x + CV_IABS( x - origin.x );
+ selection.height = selection.y + CV_IABS( y - origin.y );
+
+ selection.x = MAX( selection.x, 0 );
+ selection.y = MAX( selection.y, 0 );
+ selection.width = MIN( selection.width, resultImage->width );
+ selection.height = MIN( selection.height, resultImage->height );
+ selection.width = selection.width - selection.x;
+ selection.height = selection.height - selection.y;
+ }
+ /* ãã¦ã¹ã®å·¦ãã¿ã³ã®ç¶æ
ã«ãã£ã¦å¦çãåå² */
+ switch( event ){
+ case CV_EVENT_LBUTTONDOWN:
+ /* ãã¦ã¹ã®å·¦ãã¿ã³ãæ¼ãããã®ã§ããã°ãåç¹ããã³é¸æãããé åãè¨å® */
+ origin = cvPoint( x, y );
+ selection = cvRect( x, y, 0, 0 );
+ selectObject = SELECT_ON;
+ break;
+ case CV_EVENT_LBUTTONUP:
+ /* ãã¦ã¹ã®å·¦ãã¿ã³ãé¢ãããã¨ããwidthã¨heightãã©ã¡ããæ£ã§ããã°ã*/
+ /* trackObjectãã©ã°ãTRACKING_STARTã«ãã */
+ selectObject = SELECT_OFF;
+ if( selection.width > 0 && selection.height > 0 ){
+ trackObject = TRACKING_START;
+ }
+ break;
+ }
+}
+
+//
+// å
¥åããã1ã¤ã®è²ç¸å¤ãRGBã«å¤æãã
+//
+// å¼æ°:
+// hue : HSV表è²ç³»ã«ãããè²ç¸å¤H
+// æ»ãå¤ï¼
+// CvScalar: RGBã®è²æ
å ±ãBGRã®é ã§æ ¼ç´ãããã³ã³ãã
+//
+CvScalar hsv2rgb( float hue ){
+ IplImage *rgbValue, *hsvValue;
+ rgbValue = cvCreateImage( cvSize(1,1), IPL_DEPTH_8U, 3 );
+ hsvValue = cvCreateImage( cvSize(1,1), IPL_DEPTH_8U, 3 );
+
+ hsvValue->imageData[0] = hue; /* è²ç¸å¤H */
+ hsvValue->imageData[1] = 255; /* 彩度å¤S */
+ hsvValue->imageData[2] = 255; /* æ度å¤V */
+
+ /* HSV表è²ç³»ãRGB表è²ç³»ã«å¤æãã */
+ cvCvtColor( hsvValue, rgbValue, CV_HSV2BGR );
+
+ return cvScalar( (unsigned char)rgbValue->imageData[0],
+ (unsigned char)rgbValue->imageData[1],
+ (unsigned char)rgbValue->imageData[2],
+ 0 );
+
+ /* ã¡ã¢ãªã解æ¾ãã */
+ cvReleaseImage( &rgbValue );
+ cvReleaseImage( &hsvValue );
+}
+
+
+//
+// ãã¦ã¹é¸æãããåæ追跡é åã«ãããHSVã®Hå¤ã§ãã¹ãã°ã©ã ãä½æãããã¹ãã°ã©ã ã®æç»ã¾ã§ãè¡ã
+//
+// å¼æ°:
+// hist : mainã§å®£è¨ããããã¹ãã°ã©ã ç¨æ§é ä½
+// hsvImage : å
¥åç»åãHSV表è²ç³»ã«å¤æãããå¾ã®IplImage
+// maskImage : ãã¹ã¯ç»åç¨IplImage
+// selection : ãã¦ã¹ã§é¸æãããç©å½¢é å
+//
+void CalculateHist( CvHistogram *hist, IplImage *hsvImage, IplImage *maskImage, CvRect selection ){
+ int i;
+ int binW; /* ãã¹ãã°ã©ã ã®åãã³ã®ãç»åä¸ã§ã®å¹
*/
+ int val; /* ãã¹ãã°ã©ã ã®é »åº¦ */
+ float maxVal; /* ãã¹ãã°ã©ã ã®æå¤§é »åº¦ */
+
+ /* hsvç»åã®åç»ç´ ãå¤ã®ç¯å²å
ã«å
¥ã£ã¦ããããã§ãã¯ãã */
+ /* ãã¹ã¯ç»åmaskImageãä½æãã */
+ cvInRangeS( hsvImage,
+ cvScalar( H_RANGE_MIN, S_MIN, MIN(V_MIN,V_MAX), 0 ),
+ cvScalar( H_RANGE_MAX, S_MAX, MAX(V_MIN,V_MAX), 0 ),
+ maskImage );
+ /* hsvImageã®ãã¡ãã¨ãã«å¿
è¦ãªHãã£ã³ãã«ãhueImageã¨ãã¦åé¢ãã */
+ cvSplit( hsvImage, hueImage, 0, 0, 0 );
+ /* trackObjectãTRACKING_STARTç¶æ
ãªãã以ä¸ã®å¦çãè¡ã */
+ if( trackObject == TRACKING_START ){
+ /* 追跡é åã®ãã¹ãã°ã©ã è¨ç®ã¨histImageã¸ã®æç» */
+ maxVal = 0.0;
+ cvSetImageROI( hueImage, selection );
+ cvSetImageROI( maskImage, selection );
+
+ /* ãã¹ãã°ã©ã ãè¨ç®ããæ大å¤ãæ±ãã */
+ cvCalcHist( &hueImage, hist, 0, maskImage );
+ cvGetMinMaxHistValue( hist, 0, &maxVal, 0, 0 );
+
+ /* ãã¹ãã°ã©ã ã®ç¸¦è»¸ï¼é »åº¦ï¼ã0-255ã®ãã¤ãããã¯ã¬ã³ã¸ã«æ£è¦å */
+ if( maxVal == 0.0 ){
+ cvConvertScale( hist->bins, hist->bins, 0.0, 0 );
+ } else{
+ cvConvertScale( hist->bins, hist->bins, 255.0 / maxVal, 0 );
+ }
+
+ /* hue,maskç»åã«è¨å®ãããROIããªã»ãã */
+ cvResetImageROI( hueImage );
+ cvResetImageROI( maskImage );
+ trackWindow = selection;
+
+ /* trackObjectãTRACKING_NOWã«ãã */
+ trackObject = TRACKING_NOW;
+
+ /* ãã¹ãã°ã©ã ç»åãã¼ãã¯ãªã¢ */
+ cvSetZero( histImage );
+ /* åãã³ã®å¹
ã決ãã */
+ binW = histImage->width / hdims;
+ /* ãã¹ãã°ã©ã ãæç»ãã */
+ for( i = 0; i < hdims; i++ ){
+ val = cvRound( cvGetReal1D(hist->bins,i) * histImage->height / 255 );
+ CvScalar color = hsv2rgb( i * 180.0 / hdims );
+ cvRectangle( histImage,
+ cvPoint( i * binW, histImage->height ),
+ cvPoint( (i+1) * binW, histImage->height - val ),
+ color,
+ -1,
+ 8,
+ 0 );
+ }
+ }
+}
+
+/*!
+ * @brief constructor
+ * @param manager Maneger Object
+ */
+ObjectTracking::ObjectTracking(RTC::Manager* manager)
+ // <rtc-template block="initializer">
+ : RTC::DataFlowComponentBase(manager),
+ m_orig_imgIn("img_original", m_orig_img),
+ m_eventIn("m_event", m_event),
+ m_xIn("m_x", m_x),
+ m_yIn("m_y", m_y),
+ m_out_imgOut("img_output", m_out_img),
+ m_hist_imgOut("img_hist", m_hist_img)
+
+ // </rtc-template>
+{
+}
+
+/*!
+ * @brief destructor
+ */
+ObjectTracking::~ObjectTracking()
+{
+}
+
+
+
+RTC::ReturnCode_t ObjectTracking::onInitialize()
+{
+ // Registration: InPort/OutPort/Service
+ // <rtc-template block="registration">
+ // Set InPort buffers
+ addInPort("img_original", m_orig_imgIn);
+ addInPort("m_event", m_eventIn);
+ addInPort("m_x", m_xIn);
+ addInPort("m_y", m_yIn);
+
+ // Set OutPort buffer
+ addOutPort("img_output", m_out_imgOut);
+ addOutPort("img_hist", m_hist_imgOut);
+
+ // Set service provider to Ports
+
+ // Set service consumers to Ports
+
+ // Set CORBA Service Ports
+
+ // </rtc-template>
+
+ // <rtc-template block="bind_config">
+ // </rtc-template>
+
+ return RTC::RTC_OK;
+}
+
+/*
+RTC::ReturnCode_t ObjectTracking::onFinalize()
+{
+ return RTC::RTC_OK;
+}
+*/
+
+/*
+RTC::ReturnCode_t ObjectTracking::onStartup(RTC::UniqueId ec_id)
+{
+ return RTC::RTC_OK;
+}
+*/
+
+/*
+RTC::ReturnCode_t ObjectTracking::onShutdown(RTC::UniqueId ec_id)
+{
+ return RTC::RTC_OK;
+}
+*/
+
+
+RTC::ReturnCode_t ObjectTracking::onActivated(RTC::UniqueId ec_id)
+{
+ g_temp_w = 0;
+ g_temp_h = 0;
+
+ inputImage = NULL;
+ resultImage = NULL;
+ hsvImage = NULL;
+ hueImage = NULL;
+ maskImage = NULL;
+ backprojectImage = NULL;
+ grayImage = NULL;
+ histImage = NULL;
+
+ return RTC::RTC_OK;
+}
+
+
+RTC::ReturnCode_t ObjectTracking::onDeactivated(RTC::UniqueId ec_id)
+{
+ if(inputImage != NULL){
+ cvReleaseImage(&inputImage);
+ }
+ if(resultImage != NULL){
+ cvReleaseImage(&resultImage);
+ }
+ if(hsvImage != NULL){
+ cvReleaseImage(&hsvImage);
+ }
+ if(hueImage != NULL){
+ cvReleaseImage(&hueImage);
+ }
+ if(hueImage != NULL){
+ cvReleaseImage(&maskImage);
+ }
+ if(backprojectImage != NULL){
+ cvReleaseImage(&backprojectImage);
+ }
+ if(grayImage != NULL){
+ cvReleaseImage(&grayImage);
+ }
+ if(histImage != NULL){
+ cvReleaseImage(&histImage);
+ }
+
+ return RTC::RTC_OK;
+}
+
+
+RTC::ReturnCode_t ObjectTracking::onExecute(RTC::UniqueId ec_id)
+{
+ int i;
+ int j;
+
+ int x;
+ int y;
+ int mouse_event;
+
+ /* Snakeç¨ã®ãã©ã¡ã¼ã¿ */
+ float alpha = 1.0; /* é£ç¶ã¨ãã«ã®ã¼ã®éã¿ãã©ã¡ã¼ã¿ */
+ float beta = 0.5; /* æ²çã®éã¿ãã©ã¡ã¼ã¿ */
+ float gamma = 1.5; /* ç»åã¨ãã«ã®ã¼ã®éã¿ãã©ã¡ã¼ã¿ */
+ CvPoint pt[SEGMENT]; /* å¶å¾¡ç¹ã®åº§æ¨ */
+ CvSize window; /* æå°å¤ãæ¢ç´¢ããè¿åãµã¤ãº */
+ window.width = WINDOW_WIDTH;
+ window.height = WINDOW_HEIGHT;
+ CvTermCriteria crit;
+ crit.type = CV_TERMCRIT_ITER; /* çµäºæ¡ä»¶ã®è¨å® */
+ crit.max_iter = ITERATION_SNAKE; /* é¢æ°ã®æ大åå¾©æ° */
+
+ if(m_orig_imgIn.isNew()){
+
+ m_orig_imgIn.read();
+
+ /* åã¡ã¢ãªç¢ºä¿ */
+ if(inputImage == NULL){
+ inputImage = cvCreateImage(cvSize(m_orig_img.width, m_orig_img.height), IPL_DEPTH_8U, 3);
+ }
+ if(g_temp_w != m_orig_img.width || g_temp_h != m_orig_img.height){
+ cvReleaseImage(&inputImage);
+ inputImage = cvCreateImage(cvSize(m_orig_img.width, m_orig_img.height), IPL_DEPTH_8U, 3);
+ }
+ if(resultImage == NULL){
+ resultImage = cvCreateImage(cvSize(m_orig_img.width, m_orig_img.height), IPL_DEPTH_8U, 3);
+ }
+ if(g_temp_w != m_orig_img.width || g_temp_h != m_orig_img.height){
+ cvReleaseImage(&resultImage);
+ resultImage = cvCreateImage(cvSize(m_orig_img.width, m_orig_img.height), IPL_DEPTH_8U, 3);
+ }
+ resultImage->origin = inputImage->origin;
+ if(hsvImage == NULL){
+ hsvImage = cvCreateImage(cvSize(m_orig_img.width, m_orig_img.height), IPL_DEPTH_8U, 3);
+ }
+ if(g_temp_w != m_orig_img.width || g_temp_h != m_orig_img.height){
+ cvReleaseImage(&hsvImage);
+ hsvImage = cvCreateImage(cvSize(m_orig_img.width, m_orig_img.height), IPL_DEPTH_8U, 3);
+ }
+ if(hueImage == NULL){
+ hueImage = cvCreateImage(cvSize(m_orig_img.width, m_orig_img.height), IPL_DEPTH_8U, 1);
+ }
+ if(g_temp_w != m_orig_img.width || g_temp_h != m_orig_img.height){
+ cvReleaseImage(&hueImage);
+ hueImage = cvCreateImage(cvSize(m_orig_img.width, m_orig_img.height), IPL_DEPTH_8U, 1);
+ }
+ if(maskImage == NULL){
+ maskImage = cvCreateImage(cvSize(m_orig_img.width, m_orig_img.height), IPL_DEPTH_8U, 1);
+ }
+ if(g_temp_w != m_orig_img.width || g_temp_h != m_orig_img.height){
+ cvReleaseImage(&maskImage);
+ maskImage = cvCreateImage(cvSize(m_orig_img.width, m_orig_img.height), IPL_DEPTH_8U, 1);
+ }
+ if(backprojectImage == NULL){
+ backprojectImage = cvCreateImage(cvSize(m_orig_img.width, m_orig_img.height), IPL_DEPTH_8U, 1);
+ }
+ if(g_temp_w != m_orig_img.width || g_temp_h != m_orig_img.height){
+ cvReleaseImage(&backprojectImage);
+ backprojectImage = cvCreateImage(cvSize(m_orig_img.width, m_orig_img.height), IPL_DEPTH_8U, 1);
+ }
+ if(grayImage == NULL){
+ grayImage = cvCreateImage(cvSize(m_orig_img.width, m_orig_img.height), IPL_DEPTH_8U, 1);
+ }
+ if(g_temp_w != m_orig_img.width || g_temp_h != m_orig_img.height){
+ cvReleaseImage(&grayImage);
+ grayImage = cvCreateImage(cvSize(m_orig_img.width, m_orig_img.height), IPL_DEPTH_8U, 1);
+ }
+ /* ãã¹ãã°ã©ã æ§é ä½ã®ä½¿ç¨ãå®£è¨ */
+ if(hist == NULL){
+ hist = cvCreateHist( 1, &hdims, CV_HIST_ARRAY, &hRanges, 1 );
+ }
+ /* ãã¹ãã°ã©ã ç¨ã®ç»åã確ä¿ããã¼ãã¯ãªã¢ */
+ if(histImage == NULL){
+ histImage = cvCreateImage( cvSize(HISTIMAGE_WIDTH, HISTIMAGE_HEIGHT), IPL_DEPTH_8U, 3 );
+ }
+ if(g_temp_w != m_orig_img.width || g_temp_h != m_orig_img.height){
+ cvReleaseImage(&histImage);
+ histImage = cvCreateImage(cvSize(m_orig_img.width, m_orig_img.height), IPL_DEPTH_8U, 3);
+ }
+ cvSetZero( histImage );
+
+ /* InPortã®æ åã®åå¾ */
+ memcpy(inputImage->imageData,(void *)&(m_orig_img.pixels[0]),m_orig_img.pixels.length());
+
+ /* ãã£ããã£ãããç»åãresultImageã«ã³ãã¼ããHSV表è²ç³»ã«å¤æãã¦hsvImageã«æ ¼ç´ */
+ cvCopy( inputImage, resultImage, NULL );
+ cvCvtColor( resultImage, hsvImage, CV_BGR2HSV );
+
+ /* Windowã®Eventæ
å ±ã®åå¾ã«å¯¾ããå¦ç */
+ if(m_eventIn.isNew() && m_xIn.isNew() && m_yIn.isNew()){
+ m_xIn.read();
+ m_yIn.read();
+ m_eventIn.read();
+
+ x = m_x.data;
+ y = m_y.data;
+ mouse_event = m_event.data;
+
+ on_mouse(mouse_event, x, y, 0, 0);
+
+ x= 0;
+ y= 0;
+ mouse_event = 0;
+ }
+
+ /* trackObjectãã©ã°ãTRACKING_STOP以å¤ãªãã以ä¸ã®å¦çãè¡ã */
+ if( trackObject != TRACKING_STOP ){
+
+ /* 追跡é åã®ãã¹ãã°ã©ã è¨ç®ã¨æç» */
+ CalculateHist( hist, hsvImage, maskImage, selection );
+
+ /* ããã¯ããã¸ã§ã¯ã·ã§ã³ãè¨ç®ãã */
+ cvCalcBackProject( &hueImage, backprojectImage, hist );
+ /* backProjectionã®ãã¡ããã¹ã¯ã1ã§ããã¨ãããé¨åã®ã¿æ®ã */
+ cvAnd( backprojectImage, maskImage, backprojectImage, 0 );
+
+ /* CamShiftæ³ã«ããé å追跡ãå®è¡ãã */
+ cvCamShift( backprojectImage,
+ trackWindow,
+ cvTermCriteria( CV_TERMCRIT_EPS | CV_TERMCRIT_ITER, 10, 1 ),
+ &trackComp,
+ &trackRegion );
+
+ trackWindow = trackComp.rect;
+
+ /* SnakeImageç¨ã®ã°ã¬ã¼ã¹ã±ã¼ã«ç»åãä½æãã */
+ cvCvtColor( resultImage, grayImage, CV_BGR2GRAY );
+
+ if( backprojectMode == SHOW_BACKPROJECTION ){
+ cvCvtColor( backprojectImage, resultImage, CV_GRAY2BGR );
+ }
+ if( resultImage->origin == 1 ){
+ trackRegion.angle = -trackRegion.angle;
+ }
+
+ /* CamShiftã§ã®é å追跡çµæãSnakeã®åæä½ç½®ã«è¨å®ãã */
+ for( i=0; i<SEGMENT; i++ ){
+ pt[i].x = cvRound( trackRegion.size.width
+ * cos(i * 6.28 / SEGMENT + trackRegion.angle)
+ / 2.0 + trackRegion.center.x );
+ pt[i].y = cvRound( trackRegion.size.height
+ * sin(i * 6.28 / SEGMENT + trackRegion.angle)
+ / 2.0 + trackRegion.center.y );
+ }
+ /* Snakeã«ãã輪éæ½åºãå®è¡ãã */
+ for( i=0; i<ITERATION_SNAKE; i++ ){
+ cvSnakeImage( grayImage,
+ pt,
+ SEGMENT,
+ &alpha,
+ &beta,
+ &gamma,
+ CV_VALUE,
+ window,
+ crit,
+ 1);
+ /* å輪éç¹ã®éã«ç·ãã²ãã¦è¼ªéç·ãæç»ãã */
+ for( j=0; j<SEGMENT; j++ ){
+ if( j < SEGMENT-1 ){
+ cvLine( resultImage, pt[j], pt[j+1],
+ cvScalar(0,0,255,0), 2, 8, 0 );
+ }
+ else{
+ cvLine( resultImage, pt[j], pt[0],
+ cvScalar(0,0,255,0), 2, 8, 0 );
+ }
+ }
+ }
+ }
+
+ /* ãã¦ã¹ã§é¸æä¸ã®åæ追跡é åã®è²ãå転ããã */
+ if( selectObject == SELECT_ON && selection.width > 0 && selection.height > 0 ){
+
+ cvSetImageROI( resultImage, selection );
+ cvXorS( resultImage, cvScalarAll(255), resultImage, 0 );
+ cvResetImageROI( resultImage );
+ }
+ /* backprojectImageã®åº§æ¨åç¹ãå·¦ä¸ã®å ´åãä¸ä¸ãå転ããã */
+ if( backprojectImage->origin == 0 ){
+ cvFlip( backprojectImage, backprojectImage, 0 );
+ }
+
+ /* ç»åãã¼ã¿ã®ãµã¤ãºåå¾ */
+ double len = (resultImage->nChannels * resultImage->width * resultImage->height);
+ double leng = (histImage->nChannels * histImage->width * histImage->height);
+ m_out_img.pixels.length(len);
+ m_hist_img.pixels.length(leng);
+
+ /* 該å½ã®ã¤ã¡ã¼ã¸ãMemCopyãã */
+ memcpy((void *)&(m_out_img.pixels[0]), resultImage->imageData, len);
+ memcpy((void *)&(m_hist_img.pixels[0]), histImage->imageData, leng);
+
+ /* å転ããç»åãã¼ã¿ãOutPortããåºåãã */
+ m_out_img.width = inputImage->width;
+ m_out_img.height = inputImage->height;
+
+ m_hist_img.width = inputImage->width;
+ m_hist_img.height = inputImage->height;
+
+ m_out_imgOut.write();
+ m_hist_imgOut.write();
+
+ if(inputImage != NULL){
+ cvReleaseImage(&inputImage);
+ }
+ if(resultImage != NULL){
+ cvReleaseImage(&resultImage);
+ }
+ if(hsvImage != NULL){
+ cvReleaseImage(&hsvImage);
+ }
+ if(hueImage != NULL){
+ cvReleaseImage(&hueImage);
+ }
+ if(hueImage != NULL){
+ cvReleaseImage(&maskImage);
+ }
+ if(backprojectImage != NULL){
+ cvReleaseImage(&backprojectImage);
+ }
+ if(grayImage != NULL){
+ cvReleaseImage(&grayImage);
+ }
+ if(histImage != NULL){
+ cvReleaseImage(&histImage);
+ }
+ }
+
+ return RTC::RTC_OK;
+}
+
+/*
+RTC::ReturnCode_t ObjectTracking::onAborting(RTC::UniqueId ec_id)
+{
+ return RTC::RTC_OK;
+}
+*/
+
+/*
+RTC::ReturnCode_t ObjectTracking::onError(RTC::UniqueId ec_id)
+{
+ return RTC::RTC_OK;
+}
+*/
+
+/*
+RTC::ReturnCode_t ObjectTracking::onReset(RTC::UniqueId ec_id)
+{
+ return RTC::RTC_OK;
+}
+*/
+
+/*
+RTC::ReturnCode_t ObjectTracking::onStateUpdate(RTC::UniqueId ec_id)
+{
+ return RTC::RTC_OK;
+}
+*/
+
+/*
+RTC::ReturnCode_t ObjectTracking::onRateChanged(RTC::UniqueId ec_id)
+{
+ return RTC::RTC_OK;
+}
+*/
+
+
+
+extern "C"
+{
+
+ void ObjectTrackingInit(RTC::Manager* manager)
+ {
+ coil::Properties profile(objecttracking_spec);
+ manager->registerFactory(profile,
+ RTC::Create<ObjectTracking>,
+ RTC::Delete<ObjectTracking>);
+ }
+
+};
+
+
More information about the openrtm-commit
mailing list