XBotInterface
2.4.1
XBotInterface provides a generic API to model and control a robot.
|
Go to the documentation of this file.
20 #ifndef __XBOT_FORCE_TORQUE_SENSOR_H__
21 #define __XBOT_FORCE_TORQUE_SENSOR_H__
26 #include <kdl/kdl.hpp>
27 #include <eigen_conversions/eigen_kdl.h>
28 #include <Eigen/Geometry>
29 #include <srdfdom_advr/model.h>
45 typedef std::shared_ptr<ForceTorqueSensor>
Ptr;
46 typedef std::shared_ptr<const ForceTorqueSensor>
ConstPtr;
70 void getWrench(Eigen::Matrix<double, 6, 1>& wrench)
const;
78 void getForce(Eigen::Vector3d& force)
const;
86 void getTorque(Eigen::Vector3d& torque)
const;
94 void getWrench(KDL::Wrench& wrench)
const;
102 void getForce(KDL::Vector& force)
const;
110 void getTorque(KDL::Vector& torque)
const;
121 void setWrench(
const Eigen::Matrix<double, 6, 1>& wrench,
double timestamp);
130 void setForce(
const Eigen::Vector3d& force,
double timestamp);
139 void setTorque(
const Eigen::Vector3d& torque,
double timestamp);
144 double _fx, _fy, _fz, _tx, _ty, _tz;
void getForce(Eigen::Vector3d &force) const
Getter for the Force-Torque measured force.
Definition: ForceTorqueSensor.cpp:45
Kinematic chain abstraction as a set of joints and sensors.
Definition: KinematicChain.h:49
void getWrench(Eigen::Matrix< double, 6, 1 > &wrench) const
Getter for the Force-Torque measured wrench.
Generic sensor abstraction.
Definition: GenericSensor.h:36
std::shared_ptr< const ForceTorqueSensor > ConstPtr
Definition: ForceTorqueSensor.h:46
void setTorque(const Eigen::Vector3d &torque, double timestamp)
Setter for the Force-Torque torque.
Definition: ForceTorqueSensor.cpp:90
std::shared_ptr< ForceTorqueSensor > Ptr
Definition: ForceTorqueSensor.h:45
Force - Torque sensor abstraction:
Definition: ForceTorqueSensor.h:40
ForceTorqueSensor()
Default Contructor.
Definition: ForceTorqueSensor.cpp:31
friend std::ostream & operator<<(std::ostream &os, const XBot::ForceTorqueSensor &j)
Definition: ForceTorqueSensor.cpp:109
void setWrench(const Eigen::Matrix< double, 6, 1 > &wrench, double timestamp)
Setter for the Force-Torque wrench.
Definition: ForceTorqueSensor.cpp:98
void getTorque(Eigen::Vector3d &torque) const
Getter for the Force-Torque measured torque.
Definition: ForceTorqueSensor.cpp:59
void setForce(const Eigen::Vector3d &force, double timestamp)
Setter for the Force-Torque wrench.
Definition: ForceTorqueSensor.cpp:82
Definition: IXBotModel.h:20