LocalizationJob.cpp
Go to the documentation of this file.
1/*
2* This file is part of ArmarX.
3*
4* ArmarX is free software; you can redistribute it and/or modify
5* it under the terms of the GNU General Public License version 2 as
6* published by the Free Software Foundation.
7*
8* ArmarX is distributed in the hope that it will be useful, but
9* WITHOUT ANY WARRANTY; without even the implied warranty of
10* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11* GNU General Public License for more details.
12*
13* You should have received a copy of the GNU General Public License
14* along with this program. If not, see <http://www.gnu.org/licenses/>.
15*
16* @package MemoryX::Core
17* @author Kai Welke <welke@kit.edu>
18* @copyright 2012 Kai Welke
19* @license http://www.gnu.org/licenses/gpl-2.0.txt
20* GNU General Public License
21*/
22
23#include "LocalizationJob.h"
24
25#include "LocalizationQuery.h"
27
28namespace memoryx
29{
30 void
32 std::string recognitionMethod,
33 const std::vector<std::string>& classNames)
34 {
35 this->localizationQuery = LocalizationQueryPtr::dynamicCast(query->ice_clone());
36 this->classNames = classNames;
37 this->classNamesToBeLocalized = classNames;
38 this->recognitionMethod = recognitionMethod;
39 }
40
41 std::string
43 {
44 return recognitionMethod;
45 }
46
47 std::vector<std::string>
49 {
50 return classNames;
51 }
52
53 std::vector<std::string>
55 {
56 return classNamesToBeLocalized;
57 }
58
59 void
61 const std::vector<std::string>& classNamesToBeLocalized)
62 {
63 this->classNamesToBeLocalized = classNamesToBeLocalized;
64 }
65
66 std::string
68 {
69 return localizationQuery->queryName;
70 }
71
74 {
75 return localizationQuery;
76 }
77
78 void
80 {
81 localizationQuery->setJobFinished(recognitionMethod);
82 }
83} // namespace memoryx
std::vector< std::string > getAllClassNames()
std::vector< std::string > getClassNamesToBeLocalized()
void setClassNamesToBeLocalized(const std::vector< std::string > &classNamesToBeLocalized)
IceInternal::Handle< LocalizationQuery > getQuery()
void init(IceInternal::Handle< LocalizationQuery > query, std::string recognitionMethod, const std::vector< std::string > &classNames)
VirtualRobot headers.