Skip to content

Commit

Permalink
readability improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahiminfinite committed Mar 7, 2023
1 parent 38173b4 commit 9542489
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,10 @@ bool RuckigSmoothing::runRuckig(robot_trajectory::RobotTrajectory& trajectory,
{
while (waypoint_idx < num_waypoints - 1)
{
moveit::core::RobotStatePtr curr_waypoint = trajectory.getWayPointPtr(waypoint_idx);
moveit::core::RobotStatePtr next_waypoint = trajectory.getWayPointPtr(waypoint_idx + 1);

getNextRuckigInput(trajectory.getWayPointPtr(waypoint_idx), next_waypoint, group, ruckig_input);
getNextRuckigInput(curr_waypoint, next_waypoint, group, ruckig_input);

// Run Ruckig
ruckig_result = ruckig.update(ruckig_input, ruckig_output);
Expand Down

0 comments on commit 9542489

Please sign in to comment.