14 #ifndef _OCRA_CONTROL_FRAME_H_ 15 #define _OCRA_CONTROL_FRAME_H_ 21 #include <boost/shared_ptr.hpp> 22 #include <boost/noncopyable.hpp> 23 #include <yarp/os/Semaphore.h> 55 virtual Eigen::Displacementd
getPosition()
const = 0;
58 virtual Eigen::Wrenchd
getWrench()
const = 0;
59 virtual Eigen::Matrix<double,6,Eigen::Dynamic>
getJacobian()
const = 0;
86 Eigen::Matrix<double,6,Eigen::Dynamic>
getJacobian()
const;
90 void setPosition(
const Eigen::Displacementd& H);
91 void setVelocity(
const Eigen::Twistd& T);
92 void setAcceleration(
const Eigen::Twistd& gamma);
93 void setWrench(
const Eigen::Wrenchd& W);
97 boost::shared_ptr<Pimpl> pimpl;
109 SegmentFrame(
const std::string& name,
const Model& model,
const std::string& segname);
110 SegmentFrame(
const std::string& name,
const Model& model,
const std::string& segname,
const Eigen::Displacementd& H_local);
112 SegmentFrame(
const std::string& name,
const Model& model,
int segmentId,
const Eigen::Displacementd& H_local);
118 Eigen::Matrix<double,6,Eigen::Dynamic>
getJacobian()
const;
121 int getSegmentIndex()
const;
125 boost::shared_ptr<Pimpl> pimpl;
143 Eigen::Matrix<double,6,Eigen::Dynamic>
getJacobian()
const;
149 boost::shared_ptr<Pimpl> pimpl;
virtual Eigen::Twistd getAcceleration() const =0
virtual ~ControlFrame()=0
#define DEFINE_CLASS_POINTER_TYPEDEFS(Class)
Optimization-based Robot Controller namespace. a library of classes to write and solve optimization p...
A frame attached to a segment of a model.
virtual Eigen::Matrix< double, 6, Eigen::Dynamic > getJacobian() const =0
virtual Eigen::Twistd getVelocity() const =0
virtual bool dependsOnModelConfiguration() const =0
ControlFrame(const std::string &name)
virtual const Model & getModel() const =0
virtual Eigen::Displacementd getPosition() const =0
Declaration file of the OptimizationVariable class.
Creates a frame whose center is at the CoM of the model and whose axes are parallel to the axes of th...
virtual Eigen::Wrenchd getWrench() const =0
Represents a 'target', i.e. something that does not depend on a model but must match with another fra...
Generic representation of a frame: gives access to its position, velocity, jacobian...