diff --git a/scenarios/ArmemGraspMemory/config/GraspProviderExample.cfg b/scenarios/ArmemGraspMemory/config/GraspProviderExample.cfg index ec01b1a9ac5f321bce426436846c88cb2980715d..9df508c17697c16e196f1194f847d1f532ee61b9 100644 --- a/scenarios/ArmemGraspMemory/config/GraspProviderExample.cfg +++ b/scenarios/ArmemGraspMemory/config/GraspProviderExample.cfg @@ -136,14 +136,6 @@ # ArmarX.GraspProviderExample.tpc.pub.DebugObserver = DebugObserver -# ArmarX.GraspProviderExample.tpc.sub.MemoryListener: Name of the `MemoryListener` topic to subscribe to. -# Attributes: -# - Default: MemoryUpdates -# - Case sensitivity: yes -# - Required: no -# ArmarX.GraspProviderExample.tpc.sub.MemoryListener = MemoryUpdates - - # ArmarX.LoadLibraries: Libraries to load at start up of the application. Must be enabled by the Application with enableLibLoading(). Format: PackageName:LibraryName;... or /absolute/path/to/library;... # Attributes: # - Default: "" diff --git a/source/RobotAPI/components/ObjectPoseProviderExample/ObjectPoseProviderExample.cpp b/source/RobotAPI/components/ObjectPoseProviderExample/ObjectPoseProviderExample.cpp index c0ef77b2f4b728d245c446b9782336843157d9e6..849456898748d5f8a2bbf0934e5f0b048f2cb867 100644 --- a/source/RobotAPI/components/ObjectPoseProviderExample/ObjectPoseProviderExample.cpp +++ b/source/RobotAPI/components/ObjectPoseProviderExample/ObjectPoseProviderExample.cpp @@ -59,7 +59,7 @@ namespace armarx } { - providerInfo.objectType = objpose::ObjectTypeEnum::KnownObject; + providerInfo.objectType = objpose::ObjectType::KnownObject; std::vector<ObjectInfo> objects = objectFinder.findAllObjectsOfDataset("KIT"); for (const auto& obj : objects) { @@ -152,7 +152,7 @@ namespace armarx armarx::objpose::data::ProvidedObjectPose& pose = poses.emplace_back(); pose.providerName = getName(); - pose.objectType = objpose::ObjectTypeEnum::KnownObject; + pose.objectType = objpose::ObjectType::KnownObject; pose.objectID.dataset = info.id().dataset(); pose.objectID.className = info.id().className(); diff --git a/source/RobotAPI/components/armem/client/GraspProviderExample/GraspProviderExample.cpp b/source/RobotAPI/components/armem/client/GraspProviderExample/GraspProviderExample.cpp index 064ae5639748a7d695a4633cffc1dbdc8a0f488d..841291b91a04371629476112470d60e014d4ddf6 100644 --- a/source/RobotAPI/components/armem/client/GraspProviderExample/GraspProviderExample.cpp +++ b/source/RobotAPI/components/armem/client/GraspProviderExample/GraspProviderExample.cpp @@ -113,7 +113,6 @@ namespace armarx candidate.graspPose = PoseBasePtr(toIce(Eigen::Matrix4f())); candidate.providerName = "Example"; candidate.robotPose = PoseBasePtr(toIce(Eigen::Matrix4f())); - writer.storeGraspCandidate(candidate, IceUtil::Time::now().toMilliSeconds()); // initialize all necessary fields of a bimanual grasp candidate and use writer to commit it to memory diff --git a/source/RobotAPI/components/units/GraspCandidateObserver.cpp b/source/RobotAPI/components/units/GraspCandidateObserver.cpp index 8e0bf788792e67933850982bb8f51817d9d791eb..8b3f0299ee9732265b757d6c5b375a08e72d554b 100644 --- a/source/RobotAPI/components/units/GraspCandidateObserver.cpp +++ b/source/RobotAPI/components/units/GraspCandidateObserver.cpp @@ -79,27 +79,28 @@ bool GraspCandidateObserver::FilterMatches(const CandidateFilterConditionPtr& fi { return false; } - if (filter->objectType != AnyObject && filter->objectType != candidate->objectType) + if (filter->objectType != objpose::AnyObject && filter->objectType != candidate->objectType) { return false; } return true; } -std::string GraspCandidateObserver::ObjectTypeToString(ObjectTypeEnum type) +std::string GraspCandidateObserver::ObjectTypeToString(objpose::ObjectType type) { switch (type) { - case grasping::AnyObject: + case objpose::AnyObject: return "AnyObject"; - case grasping::KnownObject: + case objpose::KnownObject: return "KnownObject"; - case grasping::UnknownObject: + case objpose::UnknownObject: return "UnknownObject"; default: return "ERROR"; } } + void GraspCandidateObserver::handleProviderUpdate(const std::string& providerName, int candidateCount) { if (updateCounters.count(providerName) == 0) diff --git a/source/RobotAPI/components/units/GraspCandidateObserver.h b/source/RobotAPI/components/units/GraspCandidateObserver.h index 67adec25eb5d4ad23b59d8833a5836a4ce65edda..f4bb0ba3e7886d970cd33a82a03fe9525057b6c9 100644 --- a/source/RobotAPI/components/units/GraspCandidateObserver.h +++ b/source/RobotAPI/components/units/GraspCandidateObserver.h @@ -72,7 +72,7 @@ namespace armarx public: static bool FilterMatches(const grasping::CandidateFilterConditionPtr& filter, const std::string& providerName, const grasping::GraspCandidatePtr& candidate); - static std::string ObjectTypeToString(grasping::ObjectTypeEnum type); + static std::string ObjectTypeToString(objpose::ObjectType type); // GraspCandidateProviderListener interface public: diff --git a/source/RobotAPI/gui-plugins/GraspCandidateViewer/GraspCandidateViewerWidgetController.cpp b/source/RobotAPI/gui-plugins/GraspCandidateViewer/GraspCandidateViewerWidgetController.cpp index a46e191dcc34615698951568a86ceddac3231ac3..0cddd8405f669bf3b65ddd1e3c56d40317a4ff5d 100644 --- a/source/RobotAPI/gui-plugins/GraspCandidateViewer/GraspCandidateViewerWidgetController.cpp +++ b/source/RobotAPI/gui-plugins/GraspCandidateViewer/GraspCandidateViewerWidgetController.cpp @@ -260,13 +260,13 @@ namespace armarx _ui.labelGraspgroupNr ->setText(QString::number(e->gc->groupNr)); switch (e->gc->objectType) { - case grasping::ObjectTypeEnum::AnyObject : + case objpose::ObjectType::AnyObject : _ui.labelGraspObjType->setText("AnyObject"); break; - case grasping::ObjectTypeEnum::KnownObject : + case objpose::ObjectType::KnownObject : _ui.labelGraspObjType->setText("KnownObject"); break; - case grasping::ObjectTypeEnum::UnknownObject : + case objpose::ObjectType::UnknownObject : _ui.labelGraspObjType->setText("UnknownObject"); break; } diff --git a/source/RobotAPI/gui-plugins/ObjectPoseGui/ObjectPoseGuiWidgetController.cpp b/source/RobotAPI/gui-plugins/ObjectPoseGui/ObjectPoseGuiWidgetController.cpp index dffe7711debc728d596f5ecd7cd851df2527e120..be5ae984608fe710aa6330ab7044e38edd152b92 100644 --- a/source/RobotAPI/gui-plugins/ObjectPoseGui/ObjectPoseGuiWidgetController.cpp +++ b/source/RobotAPI/gui-plugins/ObjectPoseGui/ObjectPoseGuiWidgetController.cpp @@ -216,7 +216,7 @@ namespace armarx int col = 0; item->setText(col++, QString::fromStdString(pose.objectID.str())); item->setText(col++, QString::fromStdString(pose.providerName)); - item->setText(col++, QString::fromStdString(objpose::ObjectTypeEnumNames.to_name(pose.objectType))); + item->setText(col++, QString::fromStdString(objpose::ObjectTypeNames.to_name(pose.objectType))); { std::stringstream ss; diff --git a/source/RobotAPI/interface/objectpose/ObjectPoseProvider.ice b/source/RobotAPI/interface/objectpose/ObjectPoseProvider.ice index 18201e65d3c652bd02c6957bbaff50cb9e8f46cc..7eef5984e466173433e340cf45711be4fd187c95 100644 --- a/source/RobotAPI/interface/objectpose/ObjectPoseProvider.ice +++ b/source/RobotAPI/interface/objectpose/ObjectPoseProvider.ice @@ -37,7 +37,7 @@ module armarx struct ProviderInfo { ObjectPoseProvider* proxy; - ObjectTypeEnum objectType = AnyObject; + ObjectType objectType = AnyObject; armarx::data::ObjectIDSeq supportedObjects; }; dictionary<string, ProviderInfo> ProviderInfoMap; diff --git a/source/RobotAPI/interface/objectpose/object_pose_types.ice b/source/RobotAPI/interface/objectpose/object_pose_types.ice index 385da35e387d04b21aaea7e4845b073f9c977ee4..f104719fabc64d8656201d158c1dc23f25916bde 100644 --- a/source/RobotAPI/interface/objectpose/object_pose_types.ice +++ b/source/RobotAPI/interface/objectpose/object_pose_types.ice @@ -32,11 +32,14 @@ module armarx // A struct's name cannot cannot differ only in capitalization from its immediately enclosing module name. module objpose { - enum ObjectTypeEnum + // ObjectTypeEnum is now renamed to ObjectType + enum ObjectType { AnyObject, KnownObject, UnknownObject }; + + class AABB { Vector3Base center; @@ -63,7 +66,7 @@ module armarx /// Name of the providing component. string providerName; /// Known or unknown object. - ObjectTypeEnum objectType = AnyObject; + ObjectType objectType = AnyObject; /// The object ID, i.e. dataset and name. armarx::data::ObjectID objectID; @@ -91,7 +94,7 @@ module armarx /// Name of the providing component. string providerName; /// Known or unknown object. - ObjectTypeEnum objectType = AnyObject; + ObjectType objectType = AnyObject; /// The object ID, i.e. dataset and name. armarx::data::ObjectID objectID; diff --git a/source/RobotAPI/interface/observers/GraspCandidateObserverInterface.ice b/source/RobotAPI/interface/observers/GraspCandidateObserverInterface.ice index 5a59f5b4432e83a28977ca234b98bb9a5e07ddd6..b60aa19c3db3bd5d7f1a68937758e401745f3ef0 100644 --- a/source/RobotAPI/interface/observers/GraspCandidateObserverInterface.ice +++ b/source/RobotAPI/interface/observers/GraspCandidateObserverInterface.ice @@ -35,7 +35,7 @@ module armarx { string providerName = "*"; float minimumSuccessProbability = 0; - ObjectTypeEnum objectType = AnyObject; + armarx::objpose::ObjectType objectType = AnyObject; ApertureType preshape = AnyAperture; ApproachType approach = AnyApproach; diff --git a/source/RobotAPI/interface/units/GraspCandidateProviderInterface.ice b/source/RobotAPI/interface/units/GraspCandidateProviderInterface.ice index ac4da1da07d1ac2c75526a2f98c32c547aa3d88d..8d4cf25578acd6e3f2d57730acc0a447d8d49b5c 100644 --- a/source/RobotAPI/interface/units/GraspCandidateProviderInterface.ice +++ b/source/RobotAPI/interface/units/GraspCandidateProviderInterface.ice @@ -27,14 +27,17 @@ #include <RobotAPI/interface/core/FramedPoseBase.ice> #include <ArmarXCore/interface/observers/VariantBase.ice> #include <ArmarXCore/interface/observers/RequestableService.ice> +#include <RobotAPI/interface/objectpose/object_pose_types.ice> module armarx { module grasping { - enum ObjectTypeEnum { + // Grasping will now use ObjectType from armarx::objpose in <RobotAPI/interface/objectpose/object_pose_types.ice> + /*enum ObjectTypeEnum { AnyObject, KnownObject, UnknownObject - }; + };*/ + enum ApproachType { AnyApproach, TopApproach, SideApproach }; @@ -87,7 +90,7 @@ module armarx float graspSuccessProbability; - ObjectTypeEnum objectType = AnyObject; + armarx::objpose::ObjectType objectType = AnyObject; int groupNr = -1; // used to match candidates that belog together, e.g. from the same object or point cloud segment string providerName; @@ -113,7 +116,7 @@ module armarx //float graspSuccessProbability; - ObjectTypeEnum objectType = AnyObject; + armarx::objpose::ObjectType objectType = AnyObject; int groupNr = -1; // used to match candidates that belog together, e.g. from the same object or point cloud segment string providerName; @@ -130,7 +133,7 @@ module armarx class ProviderInfo { - ObjectTypeEnum objectType = AnyObject; + armarx::objpose::ObjectType objectType = AnyObject; StringVariantBaseMap currentConfig; }; diff --git a/source/RobotAPI/libraries/ArmarXObjects/ObjectPose.h b/source/RobotAPI/libraries/ArmarXObjects/ObjectPose.h index 023d6351f3bcf2533188e0df197b7f8e61806388..d7eef22b74c74ef600ac9fe48495f998dd4278d7 100644 --- a/source/RobotAPI/libraries/ArmarXObjects/ObjectPose.h +++ b/source/RobotAPI/libraries/ArmarXObjects/ObjectPose.h @@ -46,7 +46,7 @@ namespace armarx::objpose /// Name of the providing component. std::string providerName; /// Known or unknown object. - ObjectTypeEnum objectType = AnyObject; + ObjectType objectType = AnyObject; /// The object ID, i.e. dataset, class name and instance name. armarx::ObjectID objectID; diff --git a/source/RobotAPI/libraries/ArmarXObjects/aron_conversions/objpose.cpp b/source/RobotAPI/libraries/ArmarXObjects/aron_conversions/objpose.cpp index 2de8a3da0096d0c2edf7d103c944edbb681eb56d..e91685207e97c8bbafe744d3ced9e9edf1e2203a 100644 --- a/source/RobotAPI/libraries/ArmarXObjects/aron_conversions/objpose.cpp +++ b/source/RobotAPI/libraries/ArmarXObjects/aron_conversions/objpose.cpp @@ -19,33 +19,33 @@ void armarx::objpose::toAron(arondto::ObjectAttachmentInfo& dto, const ObjectAtt dto.poseInFrame = bo.poseInFrame; } -void armarx::objpose::fromAron(const arondto::ObjectType& dto, ObjectTypeEnum& bo) +void armarx::objpose::fromAron(const arondto::ObjectType& dto, ObjectType& bo) { switch (dto.value) { case arondto::ObjectType::AnyObject: - bo = ObjectTypeEnum::AnyObject; + bo = ObjectType::AnyObject; return; case arondto::ObjectType::KnownObject: - bo = ObjectTypeEnum::KnownObject; + bo = ObjectType::KnownObject; return; case arondto::ObjectType::UnknownObject: - bo = ObjectTypeEnum::UnknownObject; + bo = ObjectType::UnknownObject; return; } ARMARX_UNEXPECTED_ENUM_VALUE(arondto::ObjectType, dto.value); } -void armarx::objpose::toAron(arondto::ObjectType& dto, const ObjectTypeEnum& bo) +void armarx::objpose::toAron(arondto::ObjectType& dto, const ObjectType& bo) { switch (bo) { - case ObjectTypeEnum::AnyObject: + case ObjectType::AnyObject: dto.value = arondto::ObjectType::AnyObject; return; - case ObjectTypeEnum::KnownObject: + case ObjectType::KnownObject: dto.value = arondto::ObjectType::KnownObject; return; - case ObjectTypeEnum::UnknownObject: + case ObjectType::UnknownObject: dto.value = arondto::ObjectType::UnknownObject; return; } diff --git a/source/RobotAPI/libraries/ArmarXObjects/aron_conversions/objpose.h b/source/RobotAPI/libraries/ArmarXObjects/aron_conversions/objpose.h index afe31e500b7ba9a39b76dc33b0eeda0916cc849b..c89a075be8b3e6ca905d9daefac0a105f21ed4dc 100644 --- a/source/RobotAPI/libraries/ArmarXObjects/aron_conversions/objpose.h +++ b/source/RobotAPI/libraries/ArmarXObjects/aron_conversions/objpose.h @@ -12,8 +12,8 @@ namespace armarx::objpose void fromAron(const arondto::ObjectAttachmentInfo& dto, ObjectAttachmentInfo& bo); void toAron(arondto::ObjectAttachmentInfo& dto, const ObjectAttachmentInfo& bo); - void fromAron(const arondto::ObjectType& dto, ObjectTypeEnum& bo); - void toAron(arondto::ObjectType& dto, const ObjectTypeEnum& bo); + void fromAron(const arondto::ObjectType& dto, ObjectType& bo); + void toAron(arondto::ObjectType& dto, const ObjectType& bo); void fromAron(const arondto::ObjectPose& dto, ObjectPose& bo); void toAron(arondto::ObjectPose& dto, const ObjectPose& bo); diff --git a/source/RobotAPI/libraries/ArmarXObjects/ice_conversions.cpp b/source/RobotAPI/libraries/ArmarXObjects/ice_conversions.cpp index 6715760410010d3817c52d677a0a64036fb828c6..ccbae7e21c426f92d946dd6744168a04f2c70e7c 100644 --- a/source/RobotAPI/libraries/ArmarXObjects/ice_conversions.cpp +++ b/source/RobotAPI/libraries/ArmarXObjects/ice_conversions.cpp @@ -82,11 +82,11 @@ armarx::data::ObjectIDSeq armarx::toIce(const std::vector<ObjectID>& ids) namespace armarx { - const simox::meta::EnumNames<objpose::ObjectTypeEnum> objpose::ObjectTypeEnumNames = + const simox::meta::EnumNames<objpose::ObjectType> objpose::ObjectTypeNames = { - { objpose::ObjectTypeEnum::AnyObject, "AnyObject" }, - { objpose::ObjectTypeEnum::KnownObject, "KnownObject" }, - { objpose::ObjectTypeEnum::UnknownObject, "UnknownObject" } + { objpose::ObjectType::AnyObject, "AnyObject" }, + { objpose::ObjectType::KnownObject, "KnownObject" }, + { objpose::ObjectType::UnknownObject, "UnknownObject" } }; objpose::AABB objpose::toIce(const simox::AxisAlignedBoundingBox& aabb) diff --git a/source/RobotAPI/libraries/ArmarXObjects/ice_conversions.h b/source/RobotAPI/libraries/ArmarXObjects/ice_conversions.h index 39ebc20500722518472c9c755a3238d581916fd0..429d6246c18f7a36769d6c3d686c12c175cd8b8f 100644 --- a/source/RobotAPI/libraries/ArmarXObjects/ice_conversions.h +++ b/source/RobotAPI/libraries/ArmarXObjects/ice_conversions.h @@ -41,7 +41,7 @@ namespace armarx namespace armarx::objpose { - extern const simox::meta::EnumNames<objpose::ObjectTypeEnum> ObjectTypeEnumNames; + extern const simox::meta::EnumNames<objpose::ObjectType> ObjectTypeNames; objpose::AABB toIce(const simox::AxisAlignedBoundingBox& aabb); diff --git a/source/RobotAPI/libraries/ArmarXObjects/json_conversions.cpp b/source/RobotAPI/libraries/ArmarXObjects/json_conversions.cpp index 389aae5e2ddc59fdf533bf0a43309f89536c1b6e..3888855892a95cecb6ea5fecc55e63763c894f6a 100644 --- a/source/RobotAPI/libraries/ArmarXObjects/json_conversions.cpp +++ b/source/RobotAPI/libraries/ArmarXObjects/json_conversions.cpp @@ -26,7 +26,7 @@ void armarx::from_json(const nlohmann::json& j, ObjectID& id) void armarx::objpose::to_json(nlohmann::json& j, const ObjectPose& op) { j["providerName"] = op.providerName; - j["objectType"] = ObjectTypeEnumNames.to_name(op.objectType); + j["objectType"] = ObjectTypeNames.to_name(op.objectType); j["objectID"] = op.objectID; @@ -51,7 +51,7 @@ void armarx::objpose::to_json(nlohmann::json& j, const ObjectPose& op) void armarx::objpose::from_json(const nlohmann::json& j, ObjectPose& op) { op.providerName = j.at("providerName"); - op.objectType = ObjectTypeEnumNames.from_name(j.at("objectType")); + op.objectType = ObjectTypeNames.from_name(j.at("objectType")); op.objectID = j.at("objectID"); diff --git a/source/RobotAPI/libraries/GraspingUtility/CMakeLists.txt b/source/RobotAPI/libraries/GraspingUtility/CMakeLists.txt index 11e12b59d35b59a53a3b1b2068b47f0a48dda83d..cce3efe6d385799d6496d39d0d0ca4362177403e 100644 --- a/source/RobotAPI/libraries/GraspingUtility/CMakeLists.txt +++ b/source/RobotAPI/libraries/GraspingUtility/CMakeLists.txt @@ -7,6 +7,7 @@ armarx_add_library( LIBS RobotAPICore RobotStatechartHelpers # Contains RobotNameHelper RobotAPI::armem + RobotAPI::ArmarXObjects SOURCES box_to_grasp_candidates.cpp grasp_candidate_drawer.cpp GraspCandidateHelper.cpp diff --git a/source/RobotAPI/libraries/GraspingUtility/GraspCandidateWriter.cpp b/source/RobotAPI/libraries/GraspingUtility/GraspCandidateWriter.cpp index 1cd6d4667e881aab4d5de630883e5d66fe2ef391..2d120e575acca45e7acdd5031ab04c1076cc73b7 100644 --- a/source/RobotAPI/libraries/GraspingUtility/GraspCandidateWriter.cpp +++ b/source/RobotAPI/libraries/GraspingUtility/GraspCandidateWriter.cpp @@ -48,9 +48,7 @@ namespace armarx::armem const int64_t& timestamp) { armarx::grasping::arondto::GraspCandidate aronGraspCandidate; - toAron(aronGraspCandidate, candidate); - auto dict = aronGraspCandidate.toAron(); return commitToMemory(dict, candidate.providerName, timestamp, properties.graspMemoryName); diff --git a/source/RobotAPI/libraries/GraspingUtility/aron_conversions.cpp b/source/RobotAPI/libraries/GraspingUtility/aron_conversions.cpp index b2e421a72c4884ea1bff2dd854479070c387f9fc..4f64c8dad208469c9e927b9dceca070d0effaa29 100644 --- a/source/RobotAPI/libraries/GraspingUtility/aron_conversions.cpp +++ b/source/RobotAPI/libraries/GraspingUtility/aron_conversions.cpp @@ -303,44 +303,6 @@ void armarx::grasping::toAron(armarx::grasping::arondto::GraspCandidateExecution dto.graspTrajectoryName = bo.graspTrajectoryName; } -void armarx::grasping::fromAron(const armarx::objpose::arondto::ObjectType& dto, - armarx::grasping::ObjectTypeEnum& bo) -{ - switch (dto.value) - { - case armarx::objpose::arondto::ObjectType::AnyObject: - bo = ObjectTypeEnum::AnyObject; - return; - case armarx::objpose::arondto::ObjectType::KnownObject: - bo = ObjectTypeEnum::KnownObject; - return; - case armarx::objpose::arondto::ObjectType::UnknownObject: - bo = ObjectTypeEnum::UnknownObject; - return; - } - ARMARX_UNEXPECTED_ENUM_VALUE(arondto::ObjectType, dto.value); - -} - -void armarx::grasping::toAron(armarx::objpose::arondto::ObjectType& dto, - const armarx::grasping::ObjectTypeEnum& bo) -{ - switch (bo) - { - case ObjectTypeEnum::AnyObject: - dto.value = armarx::objpose::arondto::ObjectType::AnyObject; - return; - case ObjectTypeEnum::KnownObject: - dto.value = armarx::objpose::arondto::ObjectType::KnownObject; - return; - case ObjectTypeEnum::UnknownObject: - dto.value = armarx::objpose::arondto::ObjectType::UnknownObject; - return; - } - ARMARX_UNEXPECTED_ENUM_VALUE(ObjectTypeEnum, bo); - -} - void armarx::grasping::fromAron(const armarx::grasping::arondto::ApproachType& dto, armarx::grasping::ApproachType& bo) { diff --git a/source/RobotAPI/libraries/GraspingUtility/aron_conversions.h b/source/RobotAPI/libraries/GraspingUtility/aron_conversions.h index a5f85b3fb96510c82326ca6cfb18f735693a45a8..9e1ac4ca2f78637660c12250a0dfd4dd4b8250b5 100644 --- a/source/RobotAPI/libraries/GraspingUtility/aron_conversions.h +++ b/source/RobotAPI/libraries/GraspingUtility/aron_conversions.h @@ -8,9 +8,6 @@ namespace armarx { namespace grasping { - void fromAron(const armarx::objpose::arondto::ObjectType& dto, ObjectTypeEnum& bo); - void toAron(armarx::objpose::arondto::ObjectType& dto, const ObjectTypeEnum& bo); - void fromAron(const arondto::ApproachType& dto, ApproachType& bo); void toAron(arondto::ApproachType& dto, const ApproachType& bo); diff --git a/source/RobotAPI/libraries/GraspingUtility/box_to_grasp_candidates.cpp b/source/RobotAPI/libraries/GraspingUtility/box_to_grasp_candidates.cpp index 3082a9367101850c603aa710581e9bbc7e5c6032..628824cb3bfdbd750939721c1cba92f21967dc68 100644 --- a/source/RobotAPI/libraries/GraspingUtility/box_to_grasp_candidates.cpp +++ b/source/RobotAPI/libraries/GraspingUtility/box_to_grasp_candidates.cpp @@ -292,7 +292,7 @@ namespace armarx gc->providerName = provider_name; gc->side = side_name; gc->approachVector = new armarx::Vector3(approach); - gc->objectType = armarx::grasping::UnknownObject; + gc->objectType = armarx::objpose::UnknownObject; gc->sourceFrame = "root"; gc->targetFrame = "root"; return gc;