GraspCandidateProvider.cpp
Go to the documentation of this file.
1
2
3
//#include <ArmarXCore/core/application/properties/PluginAll.h>
4
//#include <ArmarXGui/libraries/RemoteGui/ConfigIntrospection.h>
5
6
7
#include "
GraspCandidateProvider.h
"
8
9
////boilerplate (properties / cycle)
10
//namespace arches
11
//{
12
// std::string GraspCandidateCollisionFilter::getDefaultName() const
13
// {
14
// return "GraspCandidateCollisionFilter";
15
// }
16
17
// armarx::PropertyDefinitionsPtr
18
// GraspCandidateCollisionFilter::createPropertyDefinitions()
19
// {
20
// armarx::PropertyDefinitionsPtr ptr =
21
// new visionx::PointCloudProcessorPropertyDefinitions(getConfigIdentifier());
22
// ptr->optional(_cfg_buf.getWriteBuffer(), "", "");
23
// ptr->optional(_provider.ref_frame_name_default,
24
// "ReferenceFrame",
25
// "ReferenceFrame (if not set, autodetection is performed)");
26
// ptr->optional(_upstream_gc_provider_csv,
27
// "UpstreamGraspCandidateProviderCSV",
28
// "Upstream Provider(s) (if empty all)");
29
// ptr->topic(_gc_topic,
30
// "GraspCandidatesTopicName",
31
// "GraspCandidatesTopic",
32
// "Name of the Grasp Candidate Topic");
33
// ptr->topic(_service_request_topic,
34
// "ServiceRequestsTopicName",
35
// "ServiceRequests",
36
// "Name of the ServiceRequestsTopic");
37
// return ptr;
38
// }
39
40
// void GraspCandidateCollisionFilter::onInitPointCloudProcessor()
41
// {
42
// ARMARX_TRACE;
43
// ARMARX_INFO << "init...";
44
// setDebugObserverBatchModeEnabled(true);
45
// getProperty(_provider.name, "ProviderName");
46
// ARMARX_INFO << "init...done!";
47
// }
48
// void GraspCandidateCollisionFilter::onConnectPointCloudProcessor()
49
// {
50
// ARMARX_TRACE;
51
// ARMARX_INFO << "connect...";
52
// ARMARX_INFO << "prov frame";
53
// {
54
// ARMARX_TRACE;
55
// _provider.info = getPointCloudProvider(_provider.name, true);
56
// _provider.proxy = _provider.info.proxy;
57
// ARMARX_CHECK_NOT_NULL(_provider.proxy) << VAROUT(_provider.name);
58
// _provider.ref_frame_name_used =
59
// _provider.ref_frame_name_default.empty() ?
60
// getPointCloudFrame(_provider.name, _provider.ref_frame_name_default) :
61
// _provider.ref_frame_name_default;
62
// ARMARX_CHECK_EXPRESSION(!_provider.ref_frame_name_used.empty())
63
// << VAROUT(_provider.name) << " default = "
64
// << VAROUT(_provider.ref_frame_name_default);
65
// ARMARX_INFO << "Provider '" << _provider.name
66
// << "' has ref frame '" << _provider.ref_frame_name_used << "'";
67
// }
68
// ARMARX_INFO << "robot";
69
// _robot = addRobot("grounding", VirtualRobot::RobotIO::eStructure);
70
// ARMARX_INFO << "gui";
71
// createOrUpdateRemoteGuiTab(_cfg_buf);
72
// ARMARX_INFO << "configure gc observer";
73
// getGraspCandidateObserverComponentPlugin().setUpstreamGraspCandidateProvidersFromCSV(_upstream_gc_provider_csv);
74
// ARMARX_INFO << "configure colision checker!";
75
// // _gc_col_checker.reset(getRobotNameHelper(), _robot);
76
// ARMARX_INFO << "start reporting gc config!";
77
// startPeriodicTask("reportConfigTask", [&]()
78
// {
79
// _gc_topic->reportProviderInfo(getName(), getProviderInfo());
80
// }, 1000, false);
81
// ARMARX_INFO << "connect...done!";
82
// }
83
84
// void GraspCandidateCollisionFilter::requestService(
85
// const std::string& providerName,
86
// Ice::Int relativeTimeoutMS,
87
// const Ice::Current&)
88
// {
89
// if (providerName == getName() || providerName == "AllGraspProviders")
90
// {
91
// ///TODO do not ignore this!
92
// _service_request_topic->requestService(getProperty<std::string>("ServiceRequestsTopicName").getValue(), relativeTimeoutMS);
93
// }
94
// }
95
// armarx::grasping::ProviderInfoPtr GraspCandidateCollisionFilter::getProviderInfo() const
96
// {
97
// armarx::grasping::ProviderInfoPtr info = new armarx::grasping::ProviderInfo();
98
// info->objectType = armarx::grasping::AnyObject;
99
// return info;
100
// }
101
//}
102
103
GraspCandidateProvider.h
RobotAPI
libraries
GraspingUtility
GraspCandidateProvider.cpp
Generated on Sat Oct 12 2024 09:14:10 for armarx_documentation by
1.8.17