TrackingGroupStatechartContext.cpp
Go to the documentation of this file.
1
/*
2
* This file is part of ArmarX.
3
*
4
* Copyright (C) 2014-2016, 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 RobotSkillTemplates::TrackingGroup
19
* @author Manfred Kroehnert ( Manfred dot Kroehnert at kit dot edu )
20
* @date 2015
21
* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
22
* GNU General Public License
23
*/
24
25
#include "
TrackingGroupStatechartContext.h
"
26
27
//#include <RobotAPI/libraries/core/remoterobot/RemoteRobot.h>
28
//#include <RobotAPI/libraries/core/Pose.h>
29
30
#include <
ArmarXCore/core/Component.h
>
31
#include <
ArmarXCore/core/system/ImportExportComponent.h
>
32
#include <
ArmarXCore/statechart/Statechart.h
>
33
34
namespace
armarx::TrackingGroup
35
{
36
void
37
TrackingGroupStatechartContext::onInitStatechartContext
()
38
{
39
// Register dependencies
40
// usingProxy(getProperty<std::string>("KinematicUnitName").getValue());
41
// usingProxy(getProperty<std::string>("KinematicUnitObserverName").getValue());
42
// usingProxy(getProperty<std::string>("RobotStateComponentName").getValue());
43
// usingProxy(getProperty<std::string>("TCPControlUnitName").getValue());
44
}
45
46
void
47
TrackingGroupStatechartContext::onConnectStatechartContext
()
48
{
49
50
// retrieve proxies
51
// robotStateComponent = getProxy<RobotStateComponentInterfacePrx>(getProperty<std::string>("RobotStateComponentName").getValue());
52
// kinematicUnitPrx = getProxy<KinematicUnitInterfacePrx>(getProperty<std::string>("KinematicUnitName").getValue());
53
// kinematicUnitObserverPrx = getProxy<KinematicUnitObserverInterfacePrx>(getProperty<std::string>("KinematicUnitObserverName").getValue());
54
// tcpControlPrx = getProxy<TCPControlUnitInterfacePrx>(getProperty<std::string>("TCPControlUnitName").getValue());
55
56
// // initialize remote robot
57
// remoteRobot.reset(new RemoteRobot(robotStateComponent->getSynchronizedRobot()));
58
}
59
60
PropertyDefinitionsPtr
61
TrackingGroupStatechartContext::createPropertyDefinitions()
62
{
63
return
PropertyDefinitionsPtr
(
64
new
TrackingGroupStatechartContextProperties
(
getConfigIdentifier
()));
65
}
66
}
// namespace armarx::TrackingGroup
TrackingGroupStatechartContext.h
armarx::TrackingGroup::TrackingGroupStatechartContext::onInitStatechartContext
void onInitStatechartContext() override
onInitStatechartonInitStatechartContext can be implemented by subclasses
Definition:
TrackingGroupStatechartContext.cpp:37
armarx::TrackingGroup::TrackingGroupStatechartContext::onConnectStatechartContext
void onConnectStatechartContext() override
onConnectStatechartContext can be implemented by subclasses
Definition:
TrackingGroupStatechartContext.cpp:47
Statechart.h
Component.h
armarx::TrackingGroup::TrackingGroupStatechartContextProperties
Definition:
TrackingGroupStatechartContext.h:43
armarx::Component::getConfigIdentifier
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
Definition:
Component.cpp:79
IceUtil::Handle< class PropertyDefinitionContainer >
armarx::PropertyDefinitionsPtr
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
Definition:
forward_declarations.h:35
armarx::TrackingGroup
Definition:
DetectObject.h:29
ImportExportComponent.h
RobotSkillTemplates
statecharts
TrackingGroup
TrackingGroupStatechartContext.cpp
Generated on Sat Mar 29 2025 09:17:33 for armarx_documentation by
1.8.17