Skip to content

Commit

Permalink
[src/joint_trajectory_action/joint_trajectory_action.py] fix TabError…
Browse files Browse the repository at this point in the history
…: inconsistent use of tabs and spaces in indentation, for Python3
  • Loading branch information
k-okada committed Sep 10, 2021
1 parent f0976d2 commit 5f652d6
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/joint_trajectory_action/joint_trajectory_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,20 +211,20 @@ def _update_feedback(self, cmd_point, jnt_names, cur_time):
self._server.publish_feedback(self._fdbk)

def _reorder_joints_ff_cmd(self, joint_names, point):
joint_name_order = self._limb.joint_names()
pnt = JointTrajectoryPoint()
pnt.time_from_start = point.time_from_start
pos_cmd = dict(zip(joint_names, point.positions))
for jnt_name in joint_name_order:
pnt.positions.append(pos_cmd[jnt_name])
joint_name_order = self._limb.joint_names()
pnt = JointTrajectoryPoint()
pnt.time_from_start = point.time_from_start
pos_cmd = dict(zip(joint_names, point.positions))
for jnt_name in joint_name_order:
pnt.positions.append(pos_cmd[jnt_name])
if point.velocities:
vel_cmd = dict(zip(joint_names, point.velocities))
for jnt_name in joint_name_order:
pnt.velocities.append(vel_cmd[jnt_name])
vel_cmd = dict(zip(joint_names, point.velocities))
for jnt_name in joint_name_order:
pnt.velocities.append(vel_cmd[jnt_name])
if point.accelerations:
accel_cmd = dict(zip(joint_names, point.accelerations))
for jnt_name in joint_name_order:
pnt.accelerations.append(accel_cmd[jnt_name])
accel_cmd = dict(zip(joint_names, point.accelerations))
for jnt_name in joint_name_order:
pnt.accelerations.append(accel_cmd[jnt_name])
return pnt

def _command_stop(self, joint_names, joint_angles, start_time, dimensions_dict):
Expand Down

0 comments on commit 5f652d6

Please # to comment.