Laelaps  2.3.5
RoadNarrows Robotics Small Outdoor Mobile Robot Project
laelaps::LaePowertrainAttr Class Reference

Powertrain attributes class. More...

#include <laePowertrain.h>

Public Member Functions

 LaePowertrainAttr ()
 Default constructor.
 
 LaePowertrainAttr (const LaePowertrainAttr &src)
 Copy constructor.
 
 ~LaePowertrainAttr ()
 Destructor.
 
LaePowertrainAttr operator= (const LaePowertrainAttr &rhs)
 Assignment operator. More...
 

Public Attributes

int m_nMotorId
 motor id
 
int m_nMotorCtlrId
 motor controller id
 
int m_nMotorIndex
 motor controller unique motor index
 
int m_nMotorDir
 motor normalized direction
 
int m_eJointType
 joint type
 
uint_t m_uPulsesPerRev
 encoder pulses per motor revolution
 
double m_fGearRatio
 gear ratio
 
double m_fMaxRps
 maximum rated output shaft rev/sec
 
uint_t m_uMaxQpps
 maximum quadrature pulses/second rps
 
double m_fMotorRadsPerPulse
 motor radians per encoder pulse
 
double m_fWheelRadsPerPulse
 output shaft radians per encoder pulse
 
double m_fMaxAmps
 maximum rated amps
 
double m_fStallTorque
 stall torque amps
 
double m_fTireRadius
 tire radius
 
double m_fTireWidth
 tire width
 
double m_fMetersPerPulse
 tire meters per encoder pulse
 
double m_fMetersPerRadian
 tire meters per radian
 

Detailed Description

Powertrain attributes class.

This class encapsulates the semi-fixed attribute data defining the characteristics of a powertrain.

Definition at line 76 of file laePowertrain.h.

Member Function Documentation

LaePowertrainAttr LaePowertrainAttr::operator= ( const LaePowertrainAttr rhs)

Assignment operator.

Parameters
rhsRight hand side object.
Returns
Returns copy of this.

Definition at line 128 of file laePowertrain.cxx.

References m_eJointType, m_fGearRatio, m_fMaxAmps, m_fMaxRps, m_fMetersPerPulse, m_fMetersPerRadian, m_fMotorRadsPerPulse, m_fStallTorque, m_fTireRadius, m_fTireWidth, m_fWheelRadsPerPulse, m_nMotorCtlrId, m_nMotorDir, m_nMotorId, m_nMotorIndex, m_uMaxQpps, and m_uPulsesPerRev.

Referenced by laelaps::LaePowertrain::~LaePowertrain(), ~LaePowertrainAttr(), and laelaps::LaePowertrainState::~LaePowertrainState().

129 {
130  // (derived) attributes
131  m_nMotorId = rhs.m_nMotorId;
134 
135  m_nMotorDir = rhs.m_nMotorDir;
137 
139  m_fMaxRps = rhs.m_fMaxRps;
140  m_uMaxQpps = rhs.m_uMaxQpps;
144 
145  m_fMaxAmps = rhs.m_fMaxAmps;
147 
152 
153  return *this;
154 }
int m_nMotorCtlrId
motor controller id
Definition: laePowertrain.h:81
int m_eJointType
joint type
Definition: laePowertrain.h:85
double m_fGearRatio
gear ratio
Definition: laePowertrain.h:88
double m_fMaxAmps
maximum rated amps
Definition: laePowertrain.h:94
int m_nMotorIndex
motor controller unique motor index
Definition: laePowertrain.h:82
double m_fMaxRps
maximum rated output shaft rev/sec
Definition: laePowertrain.h:89
int m_nMotorDir
motor normalized direction
Definition: laePowertrain.h:84
double m_fTireRadius
tire radius
Definition: laePowertrain.h:97
double m_fMotorRadsPerPulse
motor radians per encoder pulse
Definition: laePowertrain.h:91
double m_fStallTorque
stall torque amps
Definition: laePowertrain.h:95
uint_t m_uMaxQpps
maximum quadrature pulses/second rps
Definition: laePowertrain.h:90
double m_fMetersPerRadian
tire meters per radian
double m_fMetersPerPulse
tire meters per encoder pulse
Definition: laePowertrain.h:99
double m_fWheelRadsPerPulse
output shaft radians per encoder pulse
Definition: laePowertrain.h:92
double m_fTireWidth
tire width
Definition: laePowertrain.h:98
uint_t m_uPulsesPerRev
encoder pulses per motor revolution
Definition: laePowertrain.h:87

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