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 #include "LocalizationQuery.h"
26 
27 namespace memoryx
28 {
29  void LocalizationJob::init(IceInternal::Handle<LocalizationQuery> query, std::string recognitionMethod, const std::vector<std::string>& classNames)
30  {
31  this->localizationQuery = LocalizationQueryPtr::dynamicCast(query->ice_clone());
32  this->classNames = classNames;
33  this->classNamesToBeLocalized = classNames;
34  this->recognitionMethod = recognitionMethod;
35  }
36 
38  {
39  return recognitionMethod;
40  }
41 
42  std::vector<std::string> LocalizationJob::getAllClassNames()
43  {
44  return classNames;
45  }
46 
48  {
49  return classNamesToBeLocalized;
50  }
51 
52  void LocalizationJob::setClassNamesToBeLocalized(const std::vector<std::string>& classNamesToBeLocalized)
53  {
54  this->classNamesToBeLocalized = classNamesToBeLocalized;
55  }
56 
58  {
59  return localizationQuery->queryName;
60  }
61 
63  {
64  return localizationQuery;
65  }
66 
68  {
69  localizationQuery->setJobFinished(recognitionMethod);
70  }
71 }
memoryx::LocalizationJob::setClassNamesToBeLocalized
void setClassNamesToBeLocalized(const std::vector< std::string > &classNamesToBeLocalized)
Definition: LocalizationJob.cpp:52
memoryx::LocalizationJob::getQueryName
std::string getQueryName()
Definition: LocalizationJob.cpp:57
memoryx::LocalizationJob::getQuery
IceInternal::Handle< LocalizationQuery > getQuery()
Definition: LocalizationJob.cpp:62
LocalizationQuery.h
memoryx
VirtualRobot headers.
Definition: CommonPlacesTester.cpp:48
ObjectRecognitionWrapper.h
IceInternal::Handle
Definition: forward_declarations.h:8
LocalizationJob.h
memoryx::LocalizationJob::getAllClassNames
std::vector< std::string > getAllClassNames()
Definition: LocalizationJob.cpp:42
memoryx::LocalizationJob::setFinished
void setFinished()
Definition: LocalizationJob.cpp:67
memoryx::LocalizationJob::init
void init(IceInternal::Handle< LocalizationQuery > query, std::string recognitionMethod, const std::vector< std::string > &classNames)
Definition: LocalizationJob.cpp:29
memoryx::LocalizationJob::getClassNamesToBeLocalized
std::vector< std::string > getClassNamesToBeLocalized()
Definition: LocalizationJob.cpp:47
memoryx::LocalizationJob::getRecognitionMethod
std::string getRecognitionMethod()
Definition: LocalizationJob.cpp:37