File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
include/moveit/task_constructor Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -180,6 +180,8 @@ class Stage
180
180
const std::string& name () const ;
181
181
void setName (const std::string& name);
182
182
183
+ uint32_t introspectionId () const ;
184
+
183
185
/* * set computation timeout (in seconds)
184
186
*
185
187
* The logic of the individual stage should ensure this limit is respected.
Original file line number Diff line number Diff line change @@ -283,6 +283,13 @@ void Stage::setName(const std::string& name) {
283
283
pimpl_->name_ = name;
284
284
}
285
285
286
+ uint32_t Stage::introspectionId () const {
287
+ if (!pimpl_->introspection_ )
288
+ throw std::runtime_error (
289
+ " Introspection not available. Initialize the full Task before calling introspectionId()" );
290
+ return const_cast <const moveit::task_constructor::Introspection*>(pimpl_->introspection_ )->stageId (this );
291
+ }
292
+
286
293
void Stage::forwardProperties (const InterfaceState& source, InterfaceState& dest) {
287
294
const PropertyMap& src = source.properties ();
288
295
PropertyMap& dst = dest.properties ();
You can’t perform that action at this time.
0 commit comments