File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
include/moveit/task_constructor Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -180,6 +180,8 @@ class Stage
180180 const std::string& name () const ;
181181 void setName (const std::string& name);
182182
183+ uint32_t introspectionId () const ;
184+
183185 /* * set computation timeout (in seconds)
184186 *
185187 * 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,12 @@ void Stage::setName(const std::string& name) {
283283 pimpl_->name_ = name;
284284}
285285
286+ uint32_t Stage::introspectionId () const {
287+ if (!pimpl_->introspection_ )
288+ throw std::runtime_error (" Task is not initialized yet or Introspection was disabled." );
289+ return const_cast <const moveit::task_constructor::Introspection*>(pimpl_->introspection_ )->stageId (this );
290+ }
291+
286292void Stage::forwardProperties (const InterfaceState& source, InterfaceState& dest) {
287293 const PropertyMap& src = source.properties ();
288294 PropertyMap& dst = dest.properties ();
You can’t perform that action at this time.
0 commit comments