82 const double* absolute_pos,
const double* torque_sensor)
116 const double* absolute_pos)
146 const double* torque_sensor,
bool)
176 throw std::runtime_error(
"Actuator does not support absolute encoders");
185 throw std::runtime_error(
"Actuator does not support torque sensors");
198 throw std::runtime_error(
"Actuator does not support absolute encoders");
207 throw std::runtime_error(
"Actuator does not support torque sensors");
217 const double*
pos_ = {
nullptr};
218 const double*
vel_ = {
nullptr};
219 const double*
eff_ = {
nullptr};
ActuatorStateHandle(const std::string &name, const double *pos, const double *vel, const double *eff, const double *torque_sensor, bool)
const double * getAbsolutePositionPtr() const
An exception related to a HardwareInterface.
const double * getTorqueSensorPtr() const
ActuatorStateHandle(const std::string &name, const double *pos, const double *vel, const double *eff, const double *absolute_pos, const double *torque_sensor)
const double * getPositionPtr() const
double getVelocity() const
std::string getName() const
double getAbsolutePosition() const
double getPosition() const
const double * getEffortPtr() const
Hardware interface to support reading the state of an array of actuators.
const double * getVelocityPtr() const
A handle used to read the state of a single actuator. Currently, position, velocity and effort fields...
const double * torque_sensor_
Base class for handling hardware resources.
const double * absolute_pos_
ActuatorStateHandle()=default
double getTorqueSensor() const
ActuatorStateHandle(const std::string &name, const double *pos, const double *vel, const double *eff)
bool hasAbsolutePosition() const
ActuatorStateHandle(const std::string &name, const double *pos, const double *vel, const double *eff, const double *absolute_pos)
bool hasTorqueSensor() const