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

Operational robotic joint class. More...

#include <kuonJoint.h>

Public Member Functions

 KuonRobotJoint ()
 Default constructor.
 
 KuonRobotJoint (const KuonRobotJoint &src)
 Copy constructor.
 
 ~KuonRobotJoint ()
 Destructor.
 
KuonRobotJoint operator= (const KuonRobotJoint &rhs)
 Assignment operator. More...
 
std::string getJointName () const
 Get joint name. More...
 
int getMotorId () const
 Get motor id. More...
 

Protected Attributes

std::string m_strName
 joint name
 
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
 
double m_fGearRatio
 joint gear ratio
 
double m_fTireRadius
 tire radius
 
double m_fTicksPerMotorRad
 encoder/odom. ticks per motor radian
 
double m_fTicksPerWheelRad
 encoder/odom. ticks per wheel radian
 

Friends

class KuonRobot
 

Detailed Description

Operational robotic joint class.

This class contains all of the data necessary to control the operation of an robotic joint.

Definition at line 83 of file kuonJoint.h.

Member Function Documentation

std::string kuon::KuonRobotJoint::getJointName ( ) const
inline

Get joint name.

Returns
String.

Definition at line 115 of file kuonJoint.h.

References m_strName.

116  {
117  return m_strName;
118  }
std::string m_strName
joint name
Definition: kuonJoint.h:132
int kuon::KuonRobotJoint::getMotorId ( ) const
inline

Get motor id.

Returns
Returns motor id.

Definition at line 125 of file kuonJoint.h.

References m_nMotorId.

126  {
127  return m_nMotorId;
128  }
int m_nMotorId
motor id
Definition: kuonJoint.h:133
KuonRobotJoint KuonRobotJoint::operator= ( const KuonRobotJoint rhs)

Assignment operator.

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

Definition at line 111 of file kuonJoint.cxx.

References m_eJointType, m_fGearRatio, m_fTicksPerMotorRad, m_fTicksPerWheelRad, m_nMotorCtlrId, m_nMotorDir, m_nMotorId, m_nMotorIndex, and m_strName.

Referenced by kuon::KuonJointState::~KuonJointState().

112 {
113  // (derived) specification
114  m_strName = rhs.m_strName;
115  m_nMotorId = rhs.m_nMotorId;
118  m_nMotorDir = rhs.m_nMotorDir;
123 
124  // discovered limits and positions
125 
126  return *this;
127 }
double m_fTicksPerMotorRad
encoder/odom. ticks per motor radian
Definition: kuonJoint.h:140
std::string m_strName
joint name
Definition: kuonJoint.h:132
int m_nMotorIndex
motor controller unique motor index
Definition: kuonJoint.h:135
double m_fTicksPerWheelRad
encoder/odom. ticks per wheel radian
Definition: kuonJoint.h:141
double m_fGearRatio
joint gear ratio
Definition: kuonJoint.h:138
int m_nMotorCtlrId
motor controller id
Definition: kuonJoint.h:134
int m_nMotorDir
motor normalized direction
Definition: kuonJoint.h:136
int m_eJointType
joint type
Definition: kuonJoint.h:137
int m_nMotorId
motor id
Definition: kuonJoint.h:133

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