Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Remove accidentally added function

Co-authored-by: Griffin Addison <[email protected]>
  • Loading branch information
jdcaporale and griffinaddison authored Dec 14, 2023
1 parent acbb387 commit af89c7c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
7 changes: 0 additions & 7 deletions include/kodlab_mjbots_sdk/joint_moteus.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,6 @@ class JointMoteus: public JointBase
*/
float get_velocity() const override;

/**
* @brief Get the torque command. Overrides function in joint_base.h
*
* @return float
*/
float get_servo_torque() const override;

/**
* @brief Get the measured joint torque. Overrides function in
* joint_base.h
Expand Down
9 changes: 0 additions & 9 deletions src/joint_moteus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,6 @@ float JointMoteus::get_velocity() const {
}
}

float JointMoteus::get_servo_torque() const {
if(query_type_.torque == ::mjbots::moteus::Resolution::kIgnore){
LOG_WARN("Torque resolution in QueryCommand is set to kIgnore, while attempting to get value");
return 0;
} else {
return servo_torque_;
}
}

float JointMoteus::get_measured_torque() const {
if(query_type_.torque == ::mjbots::moteus::Resolution::kIgnore){
LOG_WARN("Torque resolution in QueryCommand is set to kIgnore, while attempting to get value");
Expand Down

0 comments on commit af89c7c

Please sign in to comment.