A handle used to read the state of a single actuator. Currently, position, velocity and effort fields are required while absolute position and torque sensors are optional.
More...
#include <actuator_state_interface.h>
|
| ActuatorStateHandle ()=default |
|
| ActuatorStateHandle (const std::string &name, const double *pos, const double *vel, const double *eff) |
|
| ActuatorStateHandle (const std::string &name, const double *pos, const double *vel, const double *eff, const double *absolute_pos) |
|
| ActuatorStateHandle (const std::string &name, const double *pos, const double *vel, const double *eff, const double *absolute_pos, const double *torque_sensor) |
|
| ActuatorStateHandle (const std::string &name, const double *pos, const double *vel, const double *eff, const double *torque_sensor, bool) |
|
double | getAbsolutePosition () const |
|
const double * | getAbsolutePositionPtr () const |
|
double | getEffort () const |
|
const double * | getEffortPtr () const |
|
std::string | getName () const |
|
double | getPosition () const |
|
const double * | getPositionPtr () const |
|
double | getTorqueSensor () const |
|
const double * | getTorqueSensorPtr () const |
|
double | getVelocity () const |
|
const double * | getVelocityPtr () const |
|
bool | hasAbsolutePosition () const |
|
bool | hasTorqueSensor () const |
|
A handle used to read the state of a single actuator. Currently, position, velocity and effort fields are required while absolute position and torque sensors are optional.
Definition at line 45 of file actuator_state_interface.h.
◆ ActuatorStateHandle() [1/5]
hardware_interface::ActuatorStateHandle::ActuatorStateHandle |
( |
| ) |
|
|
default |
◆ ActuatorStateHandle() [2/5]
hardware_interface::ActuatorStateHandle::ActuatorStateHandle |
( |
const std::string & |
name, |
|
|
const double * |
pos, |
|
|
const double * |
vel, |
|
|
const double * |
eff |
|
) |
| |
|
inline |
- Parameters
-
name | The name of the actuator |
pos | A pointer to the storage for this actuator's position |
vel | A pointer to the storage for this actuator's velocity |
eff | A pointer to the storage for this actuator's effort (force or torque) |
Definition at line 56 of file actuator_state_interface.h.
◆ ActuatorStateHandle() [3/5]
hardware_interface::ActuatorStateHandle::ActuatorStateHandle |
( |
const std::string & |
name, |
|
|
const double * |
pos, |
|
|
const double * |
vel, |
|
|
const double * |
eff, |
|
|
const double * |
absolute_pos, |
|
|
const double * |
torque_sensor |
|
) |
| |
|
inline |
- Parameters
-
name | The name of the actuator |
pos | A pointer to the storage for this actuator's position |
vel | A pointer to the storage for this actuator's velocity |
eff | A pointer to the storage for this actuator's effort (force or torque) |
absolute_pos | A pointer to the storage for this actuator's absolute position encoder |
torque_sensor | A pointer to the storage for this actuator's torque sensor |
Definition at line 81 of file actuator_state_interface.h.
◆ ActuatorStateHandle() [4/5]
hardware_interface::ActuatorStateHandle::ActuatorStateHandle |
( |
const std::string & |
name, |
|
|
const double * |
pos, |
|
|
const double * |
vel, |
|
|
const double * |
eff, |
|
|
const double * |
absolute_pos |
|
) |
| |
|
inline |
- Parameters
-
name | The name of the actuator |
pos | A pointer to the storage for this actuator's position |
vel | A pointer to the storage for this actuator's velocity |
eff | A pointer to the storage for this actuator's effort (force or torque) |
absolute_pos | A pointer to the storage for this actuator's absolute position encoder |
Definition at line 115 of file actuator_state_interface.h.
◆ ActuatorStateHandle() [5/5]
hardware_interface::ActuatorStateHandle::ActuatorStateHandle |
( |
const std::string & |
name, |
|
|
const double * |
pos, |
|
|
const double * |
vel, |
|
|
const double * |
eff, |
|
|
const double * |
torque_sensor, |
|
|
bool |
|
|
) |
| |
|
inline |
- Parameters
-
name | The name of the actuator |
pos | A pointer to the storage for this actuator's position |
vel | A pointer to the storage for this actuator's velocity |
eff | A pointer to the storage for this actuator's effort (force or torque) |
torque_sensor | A pointer to the storage for this actuator's torque sensor |
bool | Dummy parameter to differentiate from absolute encoder constructor |
Definition at line 145 of file actuator_state_interface.h.
◆ getAbsolutePosition()
double hardware_interface::ActuatorStateHandle::getAbsolutePosition |
( |
| ) |
const |
|
inline |
◆ getAbsolutePositionPtr()
const double* hardware_interface::ActuatorStateHandle::getAbsolutePositionPtr |
( |
| ) |
const |
|
inline |
◆ getEffort()
double hardware_interface::ActuatorStateHandle::getEffort |
( |
| ) |
const |
|
inline |
◆ getEffortPtr()
const double* hardware_interface::ActuatorStateHandle::getEffortPtr |
( |
| ) |
const |
|
inline |
◆ getName()
std::string hardware_interface::ActuatorStateHandle::getName |
( |
| ) |
const |
|
inline |
◆ getPosition()
double hardware_interface::ActuatorStateHandle::getPosition |
( |
| ) |
const |
|
inline |
◆ getPositionPtr()
const double* hardware_interface::ActuatorStateHandle::getPositionPtr |
( |
| ) |
const |
|
inline |
◆ getTorqueSensor()
double hardware_interface::ActuatorStateHandle::getTorqueSensor |
( |
| ) |
const |
|
inline |
◆ getTorqueSensorPtr()
const double* hardware_interface::ActuatorStateHandle::getTorqueSensorPtr |
( |
| ) |
const |
|
inline |
◆ getVelocity()
double hardware_interface::ActuatorStateHandle::getVelocity |
( |
| ) |
const |
|
inline |
◆ getVelocityPtr()
const double* hardware_interface::ActuatorStateHandle::getVelocityPtr |
( |
| ) |
const |
|
inline |
◆ hasAbsolutePosition()
bool hardware_interface::ActuatorStateHandle::hasAbsolutePosition |
( |
| ) |
const |
|
inline |
◆ hasTorqueSensor()
bool hardware_interface::ActuatorStateHandle::hasTorqueSensor |
( |
| ) |
const |
|
inline |
◆ absolute_pos_
const double* hardware_interface::ActuatorStateHandle::absolute_pos_ = {nullptr} |
|
private |
◆ eff_
const double* hardware_interface::ActuatorStateHandle::eff_ = {nullptr} |
|
private |
◆ name_
std::string hardware_interface::ActuatorStateHandle::name_ |
|
private |
◆ pos_
const double* hardware_interface::ActuatorStateHandle::pos_ = {nullptr} |
|
private |
◆ torque_sensor_
const double* hardware_interface::ActuatorStateHandle::torque_sensor_ = {nullptr} |
|
private |
◆ vel_
const double* hardware_interface::ActuatorStateHandle::vel_ = {nullptr} |
|
private |
The documentation for this class was generated from the following file: