Resurgence (PY2022)
Codebase for the Husky Robotics 2021-2022 rover Resurgence
|
Represents the kinematics of a differential wrist. More...
#include <DiffWristKinematics.h>
Public Member Functions | |
jointpos_t | gearPosToJointPos (const gearpos_t &gearPos) const |
Given a set of gear positions, calculate the resulting position of the joint. | |
gearpos_t | jointPosToGearPos (const jointpos_t &jointPos) const |
Given a joint position, calculate the positions of the two gears. | |
jointpos_t | gearPowerToJointPower (const gearpos_t &gearPwr) const |
Given the motor power of each gear, calculate the resulting power of each axis of the joint. | |
gearpos_t | jointPowerToGearPower (const jointpos_t &jointPwr) const |
Given the desired power of each axis of the joint, calculate the required motor power for each of the gears. | |
Represents the kinematics of a differential wrist.
A differential wrist is capable of adjusting both the pitch and roll of an end effector by driving two gears, one on each side. This class can be used to calculate the positions or motor powers of the gears given a desired joint position/power, and vice versa.
jointpos_t kinematics::DiffWristKinematics::gearPowerToJointPower | ( | const gearpos_t & | gearPwr | ) | const |
Given the motor power of each gear, calculate the resulting power of each axis of the joint.
gearPwr | The motor power of each gear; each value in the structure should be in the range \([-1, 1]\). |
gearpos_t kinematics::DiffWristKinematics::jointPowerToGearPower | ( | const jointpos_t & | jointPwr | ) | const |
Given the desired power of each axis of the joint, calculate the required motor power for each of the gears.
jointPwr | The desired power of each axis of the joint; each value in the structure should be in the range \([-1, 1]\). |