|
|
Abstract PropertyUser class. More...
#include <ArmarXCore/core/application/properties/PropertyUser.h>
Inheritance diagram for PropertyUser:Classes | |
| struct | Impl |
Public Member Functions | |
| virtual PropertyDefinitionsPtr | createPropertyDefinitions ()=0 |
| Creates the property definition container. | |
| std::vector< std::string > | getComponentProxyNames () |
| Ice::PropertiesPtr | getIceProperties () const |
| Returns the set of Ice properties. | |
| template<typename PropertyType> | |
| Property< PropertyType > | getProperty (const std::string &name) |
| Property creation and retrieval. | |
| template<typename PropertyType> | |
| Property< PropertyType > | getProperty (const std::string &name) const |
Hack to allow using getProperty in const-modified methods. | |
| template<class T> | |
| void | getProperty (std::atomic< T > &val, const std::string &name) const |
| template<class T> | |
| void | getProperty (T &val, const std::string &name) const |
| template<class T> | |
| std::vector< T > | getPropertyAsCSV (const std::string &name, const std::string &splitBy=",;", bool trimElements=true, bool removeEmptyElements=true) |
| template<class ContainerT> | |
| void | getPropertyAsCSV (ContainerT &val, const std::string &name, const std::string &splitBy=",;", bool trimElements=true, bool removeEmptyElements=true) |
| PropertyDefinitionsPtr | getPropertyDefinitions () |
| Returns the component's property definition container. | |
| std::vector< std::string > | getSubscribedTopicNames () |
| std::vector< std::string > | getTopicProxyNames () |
| bool | hasProperty (const std::string &name) |
| virtual void | icePropertiesUpdated (const std::set< std::string > &changedProperties) |
| This method is called when new Properties are set via setIceProperties(). | |
| virtual void | injectPropertyDefinitions (PropertyDefinitionsPtr &) |
| Called after createPropertyDefinitions by Component to inject propertes of ComponentPlugin. | |
| PropertyUser () | |
| virtual void | setIceProperties (Ice::PropertiesPtr properties) |
| Sets the Ice properties. | |
| bool | tryAddProperty (const std::string &propertyName, const std::string &value) |
| virtual void | updateIceProperties (const std::map< std::string, std::string > &changes) |
| void | updateProperties () |
| void | updateProxies (IceManagerPtr) |
| ~PropertyUser () override | |
Abstract PropertyUser class.
PropertyUser provides the interface to create a PropertyDefinition as well as the access to each property which has been defined.
Properties can be updated by calling PropertyUser::setIceProperties(). A class inheriting from PropertyUser can react to property changes by overriding PropertyUser::propertiesUpdated();
Definition at line 63 of file PropertyUser.h.
| PropertyUser | ( | ) |
|
override |
Definition at line 54 of file PropertyUser.cpp.
|
pure virtual |
Creates the property definition container.
Implemented in ik_demo, AffordanceExtraction, AffordancePipelineVisualization, AffordanceUpdateListener, Application, ArMarkerExternalCameraCalibration, ArmarXFileLogger, ArmarXGuiApp, ArmarXPhysicsWorldVisualization, ArmarXSimulatorWindow, ArmarXTimeserver, ProprioceptionStressTest, LegacyRobotStateMemoryAdapter, MemoryNameSystem, GraspMemory, HumanMemory, LaserScansMemory, ObjectMemory, ReasoningMemory, RobotStateMemory, VisionMemory, AronComponentConfigExample, ArticulatedObjectLocalizerExample, ArticulatedObjectLocalizerDynamicSimulation, ArVizExample, ArVizInteractExample, ArVizStorage, AStarPathPlannerTestComponent, ATINetFTUnit, BlurrinessMetric, CartographerMapRegistration, CoFusionProcessor, CollisionCheckerComponent, Component, TaskOutcomeDebugger, ConditionHandler, Component, Component, Component, Component, Component, Component, Component, Component, Component, RTUnit, CropRobotFromImage, CyberGloveObserver, DebugDrawerComponent, DebugDrawerToArVizComponent, DebugObserver, DemoStateManager, DenseCRFSegmentationProcessor, DepthImageProviderDynamicSimulation, DHParameterOptimizationLogger, DMPComponent, DSObstacleAvoidance, DummyAgentReporter, DummyCriterion, DummyObjectLocalizer, DummyTextToSpeech, DummyWorldStateObserver, DynamicObstacleManager, EfficientRANSACPrimitiveExtractor, EmergencyStopMaster, EmergencyStopNode< T >, ExampleMemory, ExampleMemoryClient, ExternalApplicationManager, FaceRecognition, FakeWorkingMemoryObjectLocalizer, FamiliarObjectDetectionExample, FilterKnownObjects, FindAndGraspObjectContext, FlyCaptureImageProvider, ForceTorqueObserver, ForceTorqueUnit, ForceTorqueUnitDynamicSimulation, ForceTorqueUnitSimulation, FrameTracking, GamepadControlUnit, GamepadUnit, GamepadUnitObserver, GeneralPurposeMemory, GraspCandidateObserver, GraspingManager, GraspingManagerTest, GraspProviderExample, GraspSelectionCriterionBase, GraspSelectionManager, HandUnit, HandUnitDynamicSimulation, HandUnitSimulation, HapticObserver, HapticUnit, HapticUnitDynamicSimulation, HeadIKUnit, HokuyoLaserUnit, HumanObstacleDetection, ImageProviderDynamicSimulation, ImageSourceSelection, ImageToPointCloud, IMUSimulation, IndexMemory, InertialMeasurementUnit, InertialMeasurementUnitObserver, InterventionDebugger, InterventionObserver, JsonStorage, KBMComponent, KinematicSelfLocalization, KinematicUnit, KinematicUnitDynamicSimulation, KinematicUnitObserver, KinematicUnitSimulation, KITHandUnit, KITProstheticHandObserver, KITProstheticHandUnit, KLGImageProvider, LaserScannerSimulation, LaserScannerObstacleDetection, LaserScannerPointCloudProvider, LaserScannerSelfLocalisation, LaserScannerUnitObserver, LegacyRGBDOpenPoseEstimation, Component, Component, SelfLocalization, MaskFilterPointCloudProcessor, Component, MetaWearIMU, MetaWearIMUObserver, MMMPlayer, MMMSimulation, MotionMemory, MotionPlanningServer, MultiHandUnit, MultiImageProvider, MultiSensePointCloudProvider, MultiViewPointCloudProcessor, NaturalGraspFilter, NaturalIKTest, Component, Component, Component, Component, Component, Component, Component, Component, Component, LaserScannerFeatureExtraction, Component, Component, Component, Component, Component, Component, ObjectInstanceToIndex, ObjectLocalizationSaliency, ObjectLocalizerDynamicSimulation, ObjectMemoryEditor, ObjectPoseClientExample, ObjectPoseProviderExample, ObstacleAvoidingPlatformUnit, ObstacleAwarePlatformUnit, OpenCVImageStabilizer, OpenPoseEstimation, OpenPoseSimulation, OpticalFlow, OptoForce, OptoForceUnit, OptoForceUnitObserver, OrientedTactileSensorUnit, OrientedTactileSensorUnitObserver, PathPlanner, PingLoadTest, PlannedMotionProvider, PlatformContext, PlatformUnit, PlatformUnitDynamicSimulation, PlatformUnitObserver, PlatformUnitSimulation, PointCloudRecorder, PointCloudUtility, PrimitiveExtractionParameterTuning, PrimitiveExtractor, PrimitiveVisualization, PythonApplicationManager, RCImageProvider, ReflexCombination, RemoteGuiExample2, RemoteGuiProvider, RemoteObjectNode, ResultImageFuser, RGBDPoseEstimationWithMemoryWriter, VirtualRobotReaderExampleClient, Component, RobotControl, RobotDefinition, RobotHandLocalizationDynamicSimulation, RobotHealth, RobotHealthDummy, RobotIK, RobotNameService, RobotPoseUnit, RobotPoseUnitDynamicSimulation, RobotStatechartContext, RobotStateComponent, RobotStateObserver, RobotToArViz, RobotUnit, RobotUnitSimulation, RTABMapRegistration, SceneModifier, SelfLocalization, SelfLocalizationDynamicSimulation, ShapesSupportRelations, SemanticGraphExample, SemanticGraphStorage, SemanticRelationAnalyzer, SimpleVirtualRobot, SimpleEpisodicMemoryKinematicUnitConnector, SimpleEpisodicMemoryPlatformUnitConnector, SimpleGraspGenerator, SimpleRobotPlacement, SimpleStatechartExecutor, Component, Component, SimulationObjectPoseProvider, Simulator, SimulatorToArviz, SimulatorViewerApp, SkillDashboard, BringObjectSkillProvider, GraspControlSkillProvider, HandControlSkillProvider, JointControlSkillProvider, PlatformControlSkillProvider, SkillProviderExample, TCPControlSkillProvider, VisualSearchSkillProvider, VisualServoTCPControlSkillProvider, SkillsMemory, SpeechObserver, StatechartContext, StatechartExecutorExample, StaticAgentReporter, StreamDecoderImageProvider, StreamReceiver, SubjectMemory, SystemStateMemory, TabletopSegmentation, TaskOutcomeMemory, TCPControllerSubUnit, TCPControlUnit, TCPControlUnitObserver, TopicRecorderComponent, TopicReplayer, TopicTimingClient, TopicTimingServer, TrackingError, TrajectoryControllerSubUnit, TrajectoryPlayer, ValveAttention, ViconMarkerProvider, Component, Component, Component, Component, Component, ViewSelection, VirtualRobotWriterExample, MemoryGrapher, WeissHapticUnit, WorkingMemoryToArViz, XMLStateComponent, XsensIMU, AbstractLongtermMemory, AbstractWorkingMemory, AgentAtPredicateProvider, ArmarXObjectsImporter, CommonPlacesLearner, CommonPlacesTester, CommonStorage, EntityDrawerComponent, GraphNodePoseResolver, GraspablePredicateProvider, HandPredicateProvider, LongtermMemory, ObjectAtPredicateProvider, ObjectLocalizationMemoryUpdater, ObjectMemoryObserver, PriorKnowledge, PriorKnowledgeImporter, ProfilerStorage, PutAwayLocationPredicateProvider, SimoxSceneImporter, SimpleEpisodicMemory, SimpleEpisodicMemoryWorkingMemoryConnector, WorkingMemory, WorkingMemoryExample, WorkingMemoryObjectPoseProvider, WorkingMemoryUpdater, WorldStateUpdaterBase, XMLSceneImporter, Component, StreamProviderI, ArMarkerLocalizer, ArMarkerLocalizerOpenCV, ArMemToImageProvider, ArMemToPointCloudProvider, AzureKinectIRImageProvider, AzureKinectPointCloudProvider, BigBowlLocalization, BlobRecognition, CalibrationCreator2, CalibrationCreator, ColorMarkerObjectLocalizer, HumanActivityDebugger, HumanRobotInteractionDebugger, PersonInstanceUpdater, PersonMemoryDebugger, Component, PlaybackImageProvider, DeepFaceRecognition, Component, DummyArMarkerLocalizer, FakePointCloudProvider, HandMarkerLocalization, IEEE1394ImageProvider, ImagePassThrough, ImageProcessor, ImageSequenceProvider, ImageToArMem, Component, IntelRealSenseProvider, KinectAndCameraCalibration, KinectV1PointCloudProvider, KinectV2PointCloudProvider, LabeledPointCloudMerger, LegacyRGBOpenPoseEstimation, MaskRCNNPointCloudObjectLocalizer, NerianVisionImageProvider, NerianVisionPointCloudProvider, NuitrackPointCloudProvider, ObjectLearningByPushing, ObjectLocalizerProcessor, ObjectShapeClassification, OLPEvaluation, OpenNIImageProvider, OpenNIPointCloudProvider, Component, PointCloudFilter, PointCloudObjectLocalizer, PointCloudSegmenter, PointCloudToArMem, PointCloudToArViz, PointCloudVisualization, RCPointCloudProvider, ResultPointCloudProvider, RGBDHandLocalizer, RGBDOpenPoseEstimation, RobotHandLocalizationWithFingertips, SegmentAABBShapesProvider, SegmentableObjectRecognition, SegmentableTemplateRecognition, SegmentRansacShapeExtractor, SegmentSpatialRelations, SimpleEpisodicMemoryImageConnector, SimpleEpisodicMemoryOpenPoseEstimationConnector, SimpleEpisodicMemorySemanticGraphConnector, StereoCameraProvider, StereoImagePointCloudProvider, TexturedObjectRecognition, UCLObjectRecognition, UserAssistedSegmenter, VideoFileImageProvider, VisualContactDetection, VoxelGridMappingProvider, WebCamImageProvider, X11ScreenCaptureImageProvider, and Component.
Here is the caller graph for this function:| std::vector< std::string > getComponentProxyNames | ( | ) |
Definition at line 163 of file PropertyUser.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| Ice::PropertiesPtr getIceProperties | ( | ) | const |
Returns the set of Ice properties.
Definition at line 221 of file PropertyUser.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| Property< PropertyType > getProperty | ( | const std::string & | name | ) |
Property creation and retrieval.
| name | Requested property name (note: without prefix) |
Definition at line 180 of file PropertyUser.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Hack to allow using getProperty in const-modified methods.
Definition at line 85 of file PropertyUser.h.
Here is the call graph for this function:
|
inline |
Definition at line 214 of file PropertyUser.h.
Here is the call graph for this function:
Here is the caller graph for this function:| PropertyDefinitionsPtr getPropertyDefinitions | ( | ) |
Returns the component's property definition container.
Definition at line 60 of file PropertyUser.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| std::vector< std::string > getSubscribedTopicNames | ( | ) |
Definition at line 191 of file PropertyUser.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| std::vector< std::string > getTopicProxyNames | ( | ) |
Definition at line 177 of file PropertyUser.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool hasProperty | ( | const std::string & | name | ) |
Definition at line 234 of file PropertyUser.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
This method is called when new Properties are set via setIceProperties().
Each class deriving from PropertyUser can overwrite this method in order to react to changed properties.
Reimplemented in Application.
Definition at line 214 of file PropertyUser.cpp.
Here is the caller graph for this function:
|
virtual |
Called after createPropertyDefinitions by Component to inject propertes of ComponentPlugin.
Reimplemented in Component.
Definition at line 81 of file PropertyUser.cpp.
Here is the caller graph for this function:
|
virtual |
Sets the Ice properties.
| properties | Ice Properties. |
Reimplemented in Application.
Definition at line 87 of file PropertyUser.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool tryAddProperty | ( | const std::string & | propertyName, |
| const std::string & | value ) |
|
virtual |
Definition at line 112 of file PropertyUser.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void updateProperties | ( | ) |
Definition at line 151 of file PropertyUser.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void updateProxies | ( | IceManagerPtr | ice_manager | ) |
Definition at line 157 of file PropertyUser.cpp.
Here is the call graph for this function:
Here is the caller graph for this function: