PDF
AuboStudio SDK  0.6.3
arcs::aubo_scope::FeatureContributionModel Class Reference

FeatureContributionModel This interface provides functionality for adding, updating and removing features in AuboScope. More...

#include <feature_contribution_model.h>

Public Member Functions

 FeatureContributionModel (FeatureContributionModel &f)
 FeatureContributionModel (FeatureContributionModel &&f)
 ~FeatureContributionModel ()
FeaturePtr addFeature (const std::string &idKey, const std::string &suggestedName, const std::vector< double > &pose)
 Add a feature to the current AuboScope installation.
FeaturePtr getFeature (const std::string &idKey)
 Returns the feature previously added by this AuboCap using the same idKey identifier.
void updateFeature (const std::string &idKey, const std::vector< double > &newPose)
 Update the pose of an existing feature added by this AuboCap.
void renameFeature (const std::string &idKey, const std::string &newName)
void removeFeature (const std::string &idKey)
 Remove a feature added by this AuboCap from AuboScope.

Private Member Functions

 FeatureContributionModel ()

Private Attributes

void * d_ { nullptr }

Friends

class DataSwitch

Detailed Description

FeatureContributionModel This interface provides functionality for adding, updating and removing features in AuboScope.

Note: This interface must only be used in an installation contribution.

Definition at line 28 of file feature_contribution_model.h.

Constructor & Destructor Documentation

◆ FeatureContributionModel() [1/3]

arcs::aubo_scope::FeatureContributionModel::FeatureContributionModel ( FeatureContributionModel & f)

References FeatureContributionModel().

Referenced by FeatureContributionModel(), and FeatureContributionModel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FeatureContributionModel() [2/3]

arcs::aubo_scope::FeatureContributionModel::FeatureContributionModel ( FeatureContributionModel && f)

References FeatureContributionModel().

Here is the call graph for this function:

◆ ~FeatureContributionModel()

arcs::aubo_scope::FeatureContributionModel::~FeatureContributionModel ( )

◆ FeatureContributionModel() [3/3]

arcs::aubo_scope::FeatureContributionModel::FeatureContributionModel ( )
private

Member Function Documentation

◆ addFeature()

FeaturePtr arcs::aubo_scope::FeatureContributionModel::addFeature ( const std::string & idKey,
const std::string & suggestedName,
const std::vector< double > & pose )

Add a feature to the current AuboScope installation.

This makes it selectable by the end user. The feature is not modifiable by the end user.

Parameters
idKeyThe key to identify this feature by.
suggestedNameSuggested name for the feature.
poseThe pose of the feature with respect to the robot base.
Returns
The feature created and registered in AuboScope.
Exceptions
FeatureAlreadyAddedExceptionIf a feature has previously been added the same idKey identifier.
IllegalFeatureNameExceptionIf the suggested name does not match required regex.

◆ getFeature()

FeaturePtr arcs::aubo_scope::FeatureContributionModel::getFeature ( const std::string & idKey)

Returns the feature previously added by this AuboCap using the same idKey identifier.

Use this to verify if the feature is present in the current installation.

Parameters
idKeyThe key to identify this feature by.
Returns
The feature previously added by this AuboCap. Returns null if no feature exists in the current installation.

◆ removeFeature()

void arcs::aubo_scope::FeatureContributionModel::removeFeature ( const std::string & idKey)

Remove a feature added by this AuboCap from AuboScope.

Program nodes using the feature will be become undefined because the feature is no longer resolvable.

Parameters
idKeyThe key used to add the feature with.
Exceptions
FeatureNotFoundExceptionIf no feature exists with the provided idKey.

◆ renameFeature()

void arcs::aubo_scope::FeatureContributionModel::renameFeature ( const std::string & idKey,
const std::string & newName )

◆ updateFeature()

void arcs::aubo_scope::FeatureContributionModel::updateFeature ( const std::string & idKey,
const std::vector< double > & newPose )

Update the pose of an existing feature added by this AuboCap.

Parameters
idKeyThe key to identify the feature.
newPoseThe new pose to set for the feature.
Exceptions
FeatureNotFoundExceptionIf no feature exists with the provided idKey.

◆ DataSwitch

friend class DataSwitch
friend

Definition at line 123 of file feature_contribution_model.h.

References DataSwitch.

Referenced by DataSwitch.

Member Data Documentation

◆ d_

void* arcs::aubo_scope::FeatureContributionModel::d_ { nullptr }
private

Definition at line 125 of file feature_contribution_model.h.


The documentation for this class was generated from the following file: