23#include <VirtualRobot/LinkedCoordinate.h>
24#include <VirtualRobot/Robot.h>
25#include <VirtualRobot/VirtualRobot.h>
35 armarx::Serializable(source),
36 OrientedPointBase(source),
37 FramedOrientedPointBase(source),
43 const Eigen::Vector3f& normal,
44 const std::string& frame,
45 const std::string& agent) :
53 const std::string& frame,
54 const std::string& agent) :
68 const std::string& frame,
69 const std::string& agent) :
84 const std::string& newFrame)
91 this->px = framedPos.x;
92 this->py = framedPos.y;
93 this->pz = framedPos.z;
95 this->nx = framedDir.x;
96 this->ny = framedDir.y;
97 this->nz = framedDir.z;
192 <<
"frame: " <<
getFrame() << (agent.empty() ?
"" : (
" agent: " + agent));
198 const Ice::Current&)
const
202 obj->setString(
"frame", frame);
203 obj->setString(
"agent", agent);
211 frame = obj->getString(
"frame");
213 if (obj->hasElement(
"agent"))
215 agent = obj->getString(
"agent");
FramedDirection is a 3 dimensional direction vector with a reference frame.
Eigen::Vector3f toGlobalEigen(const SharedRobotInterfacePrx &referenceRobot) const
Eigen::Vector3f toRootEigen(const SharedRobotInterfacePrx &referenceRobot) const
void changeFrame(const VirtualRobot::RobotConstPtr &robot, const std::string &newFrame)
Eigen::Vector3f positionToGlobalEigen(const SharedRobotInterfacePrx &referenceRobot) const
std::string output(const Ice::Current &c=Ice::emptyCurrent) const override
FramedPosition getFramedPosition() const
FramedDirection getFramedNormal() const
Eigen::Vector3f normalToRootEigen(const SharedRobotInterfacePrx &referenceRobot) const
FramedOrientedPointPtr toRootFrame(const SharedRobotInterfacePrx &referenceRobot) const
Eigen::Vector3f normalToGlobalEigen(const SharedRobotInterfacePrx &referenceRobot) const
void deserialize(const armarx::ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) override
void changeToGlobal(const SharedRobotInterfacePrx &referenceRobot)
Eigen::Vector3f positionToRootEigen(const SharedRobotInterfacePrx &referenceRobot) const
void serialize(const armarx::ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) const override
std::string getFrame() const
void changeFrame(const VirtualRobot::RobotPtr &robot, const std::string &newFrame)
The FramedPosition class.
Eigen::Vector3f toGlobalEigen(const SharedRobotInterfacePrx &referenceRobot) const
Eigen::Vector3f toRootEigen(const SharedRobotInterfacePrx &referenceRobot) const
void changeFrame(const SharedRobotInterfacePrx &referenceRobot, const std::string &newFrame)
std::string output(const Ice::Current &c=Ice::emptyCurrent) const override
virtual Eigen::Vector3f normalToEigen() const
virtual Eigen::Vector3f positionToEigen() const
void deserialize(const armarx::ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) override
void serialize(const armarx::ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) const override
Mimics the behaviour of the VirtualRobot::Robot class while redirecting everything to an Ice proxy.
std::string const GlobalFrame
Variable of the global coordinate system.
std::shared_ptr< class Robot > RobotPtr
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceInternal::Handle< AbstractObjectSerializer > AbstractObjectSerializerPtr
::IceInternal::ProxyHandle<::IceProxy::armarx::SharedRobotInterface > SharedRobotInterfacePrx
IceInternal::Handle< FramedOrientedPoint > FramedOrientedPointPtr