Skip to content

Commit b143ca3

Browse files
committed
undo some changes
Signed-off-by: Ian Chen <ichen@openrobotics.org>
1 parent 71a3684 commit b143ca3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bullet-featherstone/src/JointFeatures.cc

+1-2
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ void JointFeatures::SetJointVelocity(
271271
return;
272272

273273
const auto *model = this->ReferenceInterface<ModelInfo>(joint->model);
274-
275274
model->body->getJointVelMultiDof(identifier->indexInBtModel)[_dof] =
276275
static_cast<btScalar>(_value);
277276
model->body->wakeUp();
@@ -302,7 +301,7 @@ void JointFeatures::SetJointForce(
302301
if (!identifier)
303302
return;
304303

305-
auto *model = this->ReferenceInterface<ModelInfo>(joint->model);
304+
const auto *model = this->ReferenceInterface<ModelInfo>(joint->model);
306305
auto *world = this->ReferenceInterface<WorldInfo>(model->world);
307306

308307
// Disable velocity control by removing joint motor constraint

0 commit comments

Comments
 (0)