Skip to content
Snippets Groups Projects
Commit abd5e8f2 authored by Fabian Reister's avatar Fabian Reister
Browse files

BO's for attachments

parent ae941882
No related branches found
No related tags found
2 merge requests!157armem/dev => master,!145Feature/armem object memory attachments
This commit is part of merge request !157. Comments created here will be created in the context of that merge request.
......@@ -23,7 +23,64 @@
#include <vector>
#include <Eigen/Geometry>
#include <RobotAPI/libraries/armem_robot/types.h>
#include <RobotAPI/libraries/armem/core/MemoryID.h>
namespace armarx::armem::attachments
{
using AgentID = armem::MemoryID;
using ObjectID = armem::MemoryID;
struct AgentDescription
{
/**
* @brief id either pointing to a arondto::Robot or arondto::ArticulatedObject
*
*/
AgentID id;
std::string frame;
};
/**
* @brief ObjectAttachment describes a fixed transformation between an agent and an object.
*
* The transformation is defined as follows:
*
* agent.frame -> object root frame
*
*/
struct ObjectAttachment
{
AgentDescription agent;
Eigen::Affine3f transformation;
ObjectID object;
};
/**
* @brief ArticulatedObjectAttachment describes a fixed transformation between an agent and an articulated object.
*
* The transformation is defined as follows:
*
* agent.frame -> object.frame
*
*/
struct ArticulatedObjectAttachment
{
AgentDescription agent;
Eigen::Affine3f transformation;
AgentDescription object;
};
} // namespace armarx::armem::attachments
namespace armarx::armem::articulated_object
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment