Task.h
Go to the documentation of this file.
1
/*
2
* This file is part of ArmarX.
3
*
4
* Copyright (C) 2011-2017, High Performance Humanoid Technologies (H2T), Karlsruhe Institute of Technology (KIT), all rights reserved.
5
*
6
* ArmarX is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License version 2 as
8
* published by the Free Software Foundation.
9
*
10
* ArmarX is distributed in the hope that it will be useful, but
11
* WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*
18
* @package ArmarX
19
* @author Mirko Waechter( mirko.waechter at kit dot edu)
20
* @date 2017
21
* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
22
* GNU General Public License
23
*/
24
#pragma once
25
26
#include <
ArmarXCore/core/system/FactoryCollectionBase.h
>
27
28
#include <
RobotComponents/components/MotionPlanning/CSpace/SimoxCSpace.h
>
29
#include <
RobotComponents/components/MotionPlanning/Tasks/MotionPlanningTask.h
>
30
#include <RobotComponents/interface/components/MotionPlanning/Tasks/BiRRT/Task.h>
31
32
namespace
armarx::birrt
33
{
34
class
Task
:
public
virtual
MotionPlanningTaskWithDefaultMembers
,
public
virtual
TaskBase
35
{
36
public
:
37
Task
(
const
CSpaceBasePtr& cspace,
38
const
VectorXf& startCfg,
39
const
VectorXf& goalCfg,
40
const
std::string& taskName =
"BiRRTTask"
,
41
//general
42
Ice::Long
maximalPlanningTimeInSeconds = 300,
43
float
dcdStep = 0.01f);
44
45
// MotionPlanningTaskControlInterface interface
46
public
:
47
void
abortTask
(const ::Ice::Current&)
override
;
48
Path
getPath
(const ::Ice::Current&)
const override
;
49
50
// MotionPlanningTaskBase interface
51
public
:
52
void
run
(
const
RemoteObjectNodePrxList&, const ::Ice::Current&)
override
;
53
54
SimoxCSpacePtr
getOriginalCSpace
()
const
;
55
56
protected
:
57
Task
() =
default
;
58
59
mutable
std::mutex
mtx
;
60
Path
solution
= {{},
"BiRRT-Path"
};
61
std::atomic_bool
taskIsAborted
{
false
};
62
63
private
:
64
template
<
class
Base,
class
Derived>
65
friend
class ::armarx::GenericFactory;
66
};
67
68
}
// namespace armarx::birrt
69
70
namespace
armarx
71
{
72
using
BiRRTTask
=
birrt::Task
;
73
using
BiRRTTaskPtr
=
IceUtil::Handle<BiRRTTask>
;
74
using
BiRRTTaskHandle
=
RemoteHandle<MotionPlanningTaskControlInterfacePrx>
;
75
76
}
// namespace armarx
armarx::birrt::Task::taskIsAborted
std::atomic_bool taskIsAborted
Definition:
Task.h:61
armarx::MotionPlanningTaskWithDefaultMembers
Definition:
MotionPlanningTask.h:167
FactoryCollectionBase.h
armarx::birrt::Task::getPath
Path getPath(const ::Ice::Current &) const override
Definition:
Task.cpp:70
armarx::birrt::Task::abortTask
void abortTask(const ::Ice::Current &) override
Definition:
Task.cpp:65
IceInternal::Handle< SimoxCSpace >
armarx::birrt::Task::Task
Task()=default
armarx::birrt::Task::run
void run(const RemoteObjectNodePrxList &, const ::Ice::Current &) override
Definition:
Task.cpp:77
armarx::birrt::Task::mtx
std::mutex mtx
Definition:
Task.h:59
armarx::birrt::Task::solution
Path solution
Definition:
Task.h:60
armarx::birrt::Task
Definition:
Task.h:34
MotionPlanningTask.h
armarx::VariantType::Long
const VariantTypeId Long
Definition:
Variant.h:918
armarx::birrt
Definition:
Task.cpp:39
SimoxCSpace.h
IceUtil::Handle
Definition:
forward_declarations.h:30
armarx::RemoteHandle
The RemoteHandle class wrapps a ClientSideRemoteHandleControlBlock and can be used just as a Ice prox...
Definition:
RemoteHandle.h:46
armarx::armem::server::ltm::detail::mixin::Path
std::filesystem::path Path
Definition:
DiskStorageMixin.h:17
armarx::birrt::Task::getOriginalCSpace
SimoxCSpacePtr getOriginalCSpace() const
Definition:
Task.cpp:253
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition:
ArmarXTimeserver.cpp:27
RobotComponents
components
MotionPlanning
Tasks
BiRRT
Task.h
Generated on Sat Mar 29 2025 09:17:32 for armarx_documentation by
1.8.17