ANYdrive SDK
The SDK for interfacing ANYdrive.
anydrive::mode Namespace Reference

Classes

class  ModeBase
 
class  ModeCurrent
 
class  ModeDemoChangeGravity
 
class  ModeDemoSafeJointVelocity
 
class  ModeDisable
 
class  ModeFreeze
 
class  ModeGearPosition
 
class  ModeGearVelocity
 
class  ModeJointPosition
 
class  ModeJointPositionVelocity
 
class  ModeJointPositionVelocityTorque
 
class  ModeJointPositionVelocityTorquePidGains
 
class  ModeJointTorque
 
class  ModeJointVelocity
 
class  ModeMotorPosition
 
class  ModeMotorVelocity
 
class  PidGains
 

Typedefs

using ModeBasePtr = std::shared_ptr< ModeBase >
 
using PidGainsF = PidGains< float >
 
using PidGainsD = PidGains< double >
 

Enumerations

enum  ModeEnum {
  ModeEnum::Current, ModeEnum::DemoChangeGravity, ModeEnum::DemoSafeJointVelocity, ModeEnum::Disable,
  ModeEnum::Freeze, ModeEnum::GearPosition, ModeEnum::GearVelocity, ModeEnum::JointPosition,
  ModeEnum::JointPositionVelocity, ModeEnum::JointPositionVelocityTorque, ModeEnum::JointPositionVelocityTorquePidGains, ModeEnum::JointTorque,
  ModeEnum::JointVelocity, ModeEnum::MotorPosition, ModeEnum::MotorVelocity, ModeEnum::NA
}
 

Functions

uint16_t modeEnumToId (const ModeEnum modeEnum)
 
ModeEnum modeIdToEnum (const uint16_t modeId)
 
std::string modeEnumToName (const ModeEnum modeEnum)
 
std::string modeEnumToShortName (const ModeEnum modeEnum)
 
ModeEnum modeNameToEnum (const std::string &string)
 
std::ostream & operator<< (std::ostream &out, const ModeEnum modeEnum)
 
template<typename T >
std::ostream & operator<< (std::ostream &out, const PidGains< T > &command)
 

Typedef Documentation

◆ ModeBasePtr

using anydrive::mode::ModeBasePtr = typedef std::shared_ptr<ModeBase>

◆ PidGainsD

using anydrive::mode::PidGainsD = typedef PidGains<double>

◆ PidGainsF

using anydrive::mode::PidGainsF = typedef PidGains<float>

Enumeration Type Documentation

◆ ModeEnum

Enumerator
Current 
DemoChangeGravity 
DemoSafeJointVelocity 
Disable 
Freeze 
GearPosition 
GearVelocity 
JointPosition 
JointPositionVelocity 
JointPositionVelocityTorque 
JointPositionVelocityTorquePidGains 
JointTorque 
JointVelocity 
MotorPosition 
MotorVelocity 
NA 

Function Documentation

◆ modeEnumToId()

uint16_t anydrive::mode::modeEnumToId ( const ModeEnum  modeEnum)

◆ modeEnumToName()

std::string anydrive::mode::modeEnumToName ( const ModeEnum  modeEnum)

◆ modeEnumToShortName()

std::string anydrive::mode::modeEnumToShortName ( const ModeEnum  modeEnum)

◆ modeIdToEnum()

ModeEnum anydrive::mode::modeIdToEnum ( const uint16_t  modeId)

◆ modeNameToEnum()

ModeEnum anydrive::mode::modeNameToEnum ( const std::string &  string)

◆ operator<<() [1/2]

template<typename T >
std::ostream& anydrive::mode::operator<< ( std::ostream &  out,
const PidGains< T > &  command 
)

◆ operator<<() [2/2]

std::ostream & anydrive::mode::operator<< ( std::ostream &  out,
const ModeEnum  modeEnum 
)