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 <
RobotComponents/components/MotionPlanning/Tasks/MotionPlanningTask.h
>
27
28
#include <RobotComponents/interface/components/MotionPlanning/Tasks/BiRRT/Task.h>
29
#include <
ArmarXCore/core/system/FactoryCollectionBase.h
>
30
#include <
RobotComponents/components/MotionPlanning/CSpace/SimoxCSpace.h
>
31
32
namespace
armarx::birrt
33
{
34
class
Task
:
public
virtual
MotionPlanningTaskWithDefaultMembers
,
35
public
virtual
TaskBase
36
{
37
public
:
38
Task
(
const
CSpaceBasePtr& cspace,
39
const
VectorXf& startCfg,
40
const
VectorXf& goalCfg,
41
const
std::string& taskName =
"BiRRTTask"
,
42
//general
43
Ice::Long
maximalPlanningTimeInSeconds = 300,
44
float
dcdStep = 0.01f);
45
46
// MotionPlanningTaskControlInterface interface
47
public
:
48
void
abortTask
(const::Ice::Current&)
override
;
49
Path
getPath
(const::Ice::Current&)
const override
;
50
51
// MotionPlanningTaskBase interface
52
public
:
53
void
run
(
const
RemoteObjectNodePrxList&, const::Ice::Current&)
override
;
54
55
SimoxCSpacePtr
getOriginalCSpace
()
const
;
56
57
protected
:
58
59
Task
() =
default
;
60
61
mutable
std::mutex
mtx
;
62
Path
solution
= {{},
"BiRRT-Path"
};
63
std::atomic_bool
taskIsAborted
{
false
};
64
private
:
65
template
<
class
Base,
class
Derived>
friend
class ::armarx::GenericFactory;
66
67
};
68
69
}
70
71
namespace
armarx
72
{
73
using
BiRRTTask
=
birrt::Task
;
74
using
BiRRTTaskPtr
=
IceUtil::Handle<BiRRTTask>
;
75
using
BiRRTTaskHandle
=
RemoteHandle<MotionPlanningTaskControlInterfacePrx>
;
76
77
}
armarx::birrt::Task::taskIsAborted
std::atomic_bool taskIsAborted
Definition:
Task.h:63
armarx::MotionPlanningTaskWithDefaultMembers
Definition:
MotionPlanningTask.h:142
FactoryCollectionBase.h
armarx::birrt::Task::getPath
Path getPath(const ::Ice::Current &) const override
Definition:
Task.cpp:59
armarx::birrt::Task::abortTask
void abortTask(const ::Ice::Current &) override
Definition:
Task.cpp:55
IceInternal::Handle< SimoxCSpace >
armarx::birrt::Task::Task
Task()=default
armarx::birrt::Task::run
void run(const RemoteObjectNodePrxList &, const ::Ice::Current &) override
Definition:
Task.cpp:65
armarx::birrt::Task::mtx
std::mutex mtx
Definition:
Task.h:61
armarx::birrt::Task::solution
Path solution
Definition:
Task.h:62
armarx::birrt::Task
Definition:
Task.h:34
MotionPlanningTask.h
armarx::VariantType::Long
const VariantTypeId Long
Definition:
Variant.h:917
armarx::birrt
Definition:
Task.cpp:37
SimoxCSpace.h
IceUtil::Handle
Definition:
forward_declarations.h:29
armarx::RemoteHandle
The RemoteHandle class wrapps a ClientSideRemoteHandleControlBlock and can be used just as a Ice prox...
Definition:
RemoteHandle.h:45
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:228
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition:
ArmarXTimeserver.cpp:28
RobotComponents
components
MotionPlanning
Tasks
BiRRT
Task.h
Generated on Sat Oct 12 2024 09:14:12 for armarx_documentation by
1.8.17