Public Member Functions | Private Attributes | List of all members
hardware_interface::ActuatorStateHandle Class Reference

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>

Inheritance diagram for hardware_interface::ActuatorStateHandle:
Inheritance graph
[legend]

Public Member Functions

 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, const double *torque_sensor)
 
 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 *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
 

Private Attributes

const double * absolute_pos_ = {nullptr}
 
const double * eff_ = {nullptr}
 
std::string name_
 
const double * pos_ = {nullptr}
 
const double * torque_sensor_ = {nullptr}
 
const double * vel_ = {nullptr}
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ 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
nameThe name of the actuator
posA pointer to the storage for this actuator's position
velA pointer to the storage for this actuator's velocity
effA 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
nameThe name of the actuator
posA pointer to the storage for this actuator's position
velA pointer to the storage for this actuator's velocity
effA pointer to the storage for this actuator's effort (force or torque)
absolute_posA pointer to the storage for this actuator's absolute position encoder
torque_sensorA 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
nameThe name of the actuator
posA pointer to the storage for this actuator's position
velA pointer to the storage for this actuator's velocity
effA pointer to the storage for this actuator's effort (force or torque)
absolute_posA 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
nameThe name of the actuator
posA pointer to the storage for this actuator's position
velA pointer to the storage for this actuator's velocity
effA pointer to the storage for this actuator's effort (force or torque)
torque_sensorA pointer to the storage for this actuator's torque sensor
boolDummy parameter to differentiate from absolute encoder constructor

Definition at line 145 of file actuator_state_interface.h.

Member Function Documentation

◆ getAbsolutePosition()

double hardware_interface::ActuatorStateHandle::getAbsolutePosition ( ) const
inline

Definition at line 172 of file actuator_state_interface.h.

◆ getAbsolutePositionPtr()

const double* hardware_interface::ActuatorStateHandle::getAbsolutePositionPtr ( ) const
inline

Definition at line 194 of file actuator_state_interface.h.

◆ getEffort()

double hardware_interface::ActuatorStateHandle::getEffort ( ) const
inline

Definition at line 170 of file actuator_state_interface.h.

◆ getEffortPtr()

const double* hardware_interface::ActuatorStateHandle::getEffortPtr ( ) const
inline

Definition at line 192 of file actuator_state_interface.h.

◆ getName()

std::string hardware_interface::ActuatorStateHandle::getName ( ) const
inline

Definition at line 167 of file actuator_state_interface.h.

◆ getPosition()

double hardware_interface::ActuatorStateHandle::getPosition ( ) const
inline

Definition at line 168 of file actuator_state_interface.h.

◆ getPositionPtr()

const double* hardware_interface::ActuatorStateHandle::getPositionPtr ( ) const
inline

Definition at line 190 of file actuator_state_interface.h.

◆ getTorqueSensor()

double hardware_interface::ActuatorStateHandle::getTorqueSensor ( ) const
inline

Definition at line 181 of file actuator_state_interface.h.

◆ getTorqueSensorPtr()

const double* hardware_interface::ActuatorStateHandle::getTorqueSensorPtr ( ) const
inline

Definition at line 203 of file actuator_state_interface.h.

◆ getVelocity()

double hardware_interface::ActuatorStateHandle::getVelocity ( ) const
inline

Definition at line 169 of file actuator_state_interface.h.

◆ getVelocityPtr()

const double* hardware_interface::ActuatorStateHandle::getVelocityPtr ( ) const
inline

Definition at line 191 of file actuator_state_interface.h.

◆ hasAbsolutePosition()

bool hardware_interface::ActuatorStateHandle::hasAbsolutePosition ( ) const
inline

Definition at line 212 of file actuator_state_interface.h.

◆ hasTorqueSensor()

bool hardware_interface::ActuatorStateHandle::hasTorqueSensor ( ) const
inline

Definition at line 213 of file actuator_state_interface.h.

Member Data Documentation

◆ absolute_pos_

const double* hardware_interface::ActuatorStateHandle::absolute_pos_ = {nullptr}
private

Definition at line 220 of file actuator_state_interface.h.

◆ eff_

const double* hardware_interface::ActuatorStateHandle::eff_ = {nullptr}
private

Definition at line 219 of file actuator_state_interface.h.

◆ name_

std::string hardware_interface::ActuatorStateHandle::name_
private

Definition at line 216 of file actuator_state_interface.h.

◆ pos_

const double* hardware_interface::ActuatorStateHandle::pos_ = {nullptr}
private

Definition at line 217 of file actuator_state_interface.h.

◆ torque_sensor_

const double* hardware_interface::ActuatorStateHandle::torque_sensor_ = {nullptr}
private

Definition at line 221 of file actuator_state_interface.h.

◆ vel_

const double* hardware_interface::ActuatorStateHandle::vel_ = {nullptr}
private

Definition at line 218 of file actuator_state_interface.h.


The documentation for this class was generated from the following file:


hardware_interface
Author(s): Wim Meeussen, Adolfo Rodriguez Tsouroukdissian
autogenerated on Mon Feb 28 2022 23:30:10