Kuon  1.1.3
RoadNarrows Robotics Large Outdoor Mobile Robot Project
kuon::KuonJointState Class Reference

Joint state class. More...

#include <kuonJoint.h>

Public Member Functions

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

Public Attributes

std::string m_strName
 motor joint name
 
int m_nMotorId
 motor id
 
double m_fPosition
 current joint position (radians)
 
double m_fVelocity
 current joint velocity (radians/second)
 
double m_fEffort
 current joint torque (N-m)
 
double m_fOdometer
 current wheel odometer reading (meters)
 
int m_nEncoder
 current motor encoder position (ticks)
 
double m_fVelocityMps
 current wheel velocity (meters/second)
 
int m_nSpeed
 current raw speed
 
double m_fPe
 current motor input electrical power (W)
 
double m_fPm
 current motor output mechanical power (W)
 
float m_fBrake
 current motor braking (normalized)
 
float m_fSlew
 current motor power slewing (normalized)
 

Detailed Description

Joint state class.

This class encapsulates the current state of one joint.

Definition at line 159 of file kuonJoint.h.

Member Function Documentation

KuonJointState KuonJointState::operator= ( const KuonJointState rhs)

Assignment operator.

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

Definition at line 167 of file kuonJoint.cxx.

References m_fBrake, m_fEffort, m_fOdometer, m_fPe, m_fPm, m_fPosition, m_fSlew, m_fVelocity, m_fVelocityMps, m_nEncoder, m_nMotorId, m_nSpeed, and m_strName.

168 {
169  m_strName = rhs.m_strName;
170  m_nMotorId = rhs.m_nMotorId;
171  m_fPosition = rhs.m_fPosition;
172  m_fVelocity = rhs.m_fVelocity;
173  m_fEffort = rhs.m_fEffort;
174  m_fOdometer = rhs.m_fOdometer;
175  m_nEncoder = rhs.m_nEncoder;
177  m_nSpeed = rhs.m_nSpeed;
178  m_fPe = rhs.m_fPe;
179  m_fPm = rhs.m_fPm;
180  m_fBrake = rhs.m_fBrake;
181  m_fSlew = rhs.m_fSlew;
182 
183  return *this;
184 }
double m_fVelocityMps
current wheel velocity (meters/second)
Definition: kuonJoint.h:195
std::string m_strName
motor joint name
Definition: kuonJoint.h:188
double m_fPosition
current joint position (radians)
Definition: kuonJoint.h:190
float m_fSlew
current motor power slewing (normalized)
Definition: kuonJoint.h:200
float m_fBrake
current motor braking (normalized)
Definition: kuonJoint.h:199
int m_nSpeed
current raw speed
Definition: kuonJoint.h:196
double m_fPm
current motor output mechanical power (W)
Definition: kuonJoint.h:198
double m_fPe
current motor input electrical power (W)
Definition: kuonJoint.h:197
int m_nEncoder
current motor encoder position (ticks)
Definition: kuonJoint.h:194
double m_fOdometer
current wheel odometer reading (meters)
Definition: kuonJoint.h:193
int m_nMotorId
motor id
Definition: kuonJoint.h:189
double m_fVelocity
current joint velocity (radians/second)
Definition: kuonJoint.h:191
double m_fEffort
current joint torque (N-m)
Definition: kuonJoint.h:192

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