Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
Geeoon committed Jun 4, 2023
1 parent 6354a89 commit 25cd2f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/world_interface/kinematic_common_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ double getJointPowerValue(types::jointid_t joint) {
void setJointMotorPower(robot::types::jointid_t joint, double power) {
using robot::types::jointid_t;
if (Constants::JOINT_MOTOR_MAP.find(joint) != Constants::JOINT_MOTOR_MAP.end()) {
bool isIKMotor =
std::find(Constants::arm::IK_MOTOR_JOINTS.begin(),
Constants::arm::IK_MOTOR_JOINTS.end(), joint) != Constants::arm::IK_MOTOR_JOINTS.end();
bool isIKMotor = std::find(Constants::arm::IK_MOTOR_JOINTS.begin(),
Constants::arm::IK_MOTOR_JOINTS.end(),
joint) != Constants::arm::IK_MOTOR_JOINTS.end();
if (!Globals::armIKEnabled || !isIKMotor) {
setMotorPower(Constants::JOINT_MOTOR_MAP.at(joint), power);
}
Expand Down

0 comments on commit 25cd2f6

Please sign in to comment.