Skip to content

Commit 099336e

Browse files
authored
Update computeCommand to compute_command (#1265)
The former has been marked deprecated in control_toolbox.
1 parent 71b8ad4 commit 099336e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ur_controllers/src/scaled_joint_trajectory_controller.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,7 @@ controller_interface::return_type ScaledJointTrajectoryController::update(const
237237
// Update PIDs
238238
for (auto i = 0ul; i < dof_; ++i) {
239239
tmp_command_[i] = (state_desired_.velocities[i] * ff_velocity_scale_[i]) +
240-
pids_[i]->computeCommand(state_error_.positions[i], state_error_.velocities[i],
241-
(uint64_t)period.nanoseconds());
240+
pids_[i]->compute_command(state_error_.positions[i], state_error_.velocities[i], period);
242241
}
243242
}
244243

0 commit comments

Comments
 (0)