Go to the documentation of this file.
16 defs->optional(this->objectScaling,
"Editor.ObjectScaling",
17 "Scaling factor that is applied to all intractable objects.");
19 defs->optional(this->confidenceThreshold,
"Editor.ConfidenceThreshold",
20 "Only objects with a confidence greater than this value are shown.");
27 return "InteractiveMemoryEditor";
33 providerInfo.objectType = objpose::ObjectType::KnownObject;
35 for (
const auto& dataset : objectFinder.
getDatasets())
39 for (
const auto& obj: objects)
41 providerInfo.supportedObjects.push_back(
armarx::toIce(obj.id()));
55 objectVizTask->start();
67 void ObjectMemoryEditor::run()
74 .objectScaling = objectScaling,
75 .confidenceThreshold = confidenceThreshold,
76 .availableObjects = providerInfo.supportedObjects,
79 Editor editor(
arviz, properties,
90 while (objectVizTask and not objectVizTask->isStopped())
94 metronome.waitForNextTick();
104 const objpose::provider::RequestObjectsInput &
input,
const Ice::Current & )
106 objpose::provider::RequestObjectsOutput output;
108 for (
const auto &
id:
input.objectIDs)
110 output.results[id].success =
false;
std::string getDefaultName() const override
Retrieve default name of component.
void onInitComponent() override
Pure virtual hook for the subclass.
ObjectPoseSeq fetchObjectPoses() const
Fetch all known object poses.
std::vector< ObjectPose > ObjectPoseSeq
void setDebugObserverBatchModeEnabled(bool enable)
objpose::ProviderInfo getProviderInfo(const Ice::Current &=Ice::emptyCurrent) override
objpose::ObjectPoseTopicPrx objectPoseTopic
Provides access to the armarx::objpose::ObjectPoseStorageInterface (aka the object memory).
void toIce(std::map< IceKeyT, IceValueT > &iceMap, const boost::container::flat_map< CppKeyT, CppValueT > &cppMap)
objpose::provider::RequestObjectsOutput requestObjects(const objpose::provider::RequestObjectsInput &input, const Ice::Current &) override
std::vector< ObjectInfo > findAllObjectsOfDataset(const std::string &dataset, bool checkPaths=true) const
ReaderT::InputType & input
void onConnectComponent() override
Pure virtual hook for the subclass.
std::vector< ProvidedObjectPose > ProvidedObjectPoseSeq
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
objpose::AABB toIce(const simox::AxisAlignedBoundingBox &aabb)
Default component property definition container.
armarx::viz::Client arviz
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
void onExitComponent() override
Hook for subclass.
std::string getName() const
Retrieve name of object.
static Frequency Hertz(std::int64_t hertz)
void onDisconnectComponent() override
Hook for subclass.
std::vector< std::string > getDatasets() const
objpose::ObjectPoseClient getClient() const
This file offers overloads of toIce() and fromIce() functions for STL container types.