Skip to content

Commit

Permalink
always add current poisition as the first point in trajectory points
Browse files Browse the repository at this point in the history
  • Loading branch information
k-okada committed Jul 16, 2016
1 parent aea70d9 commit 3386356
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/joint_trajectory_action/joint_trajectory_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def _on_trajectory_action(self, goal):

dimensions_dict = self._determine_dimensions(trajectory_points)

if num_points == 1:
if num_points >= 1 and trajectory_points[0].time_from_start.to_sec() > 0:
# Add current position as trajectory point
first_trajectory_point = JointTrajectoryPoint()
first_trajectory_point.positions = self._get_current_position(joint_names)
Expand Down

0 comments on commit 3386356

Please sign in to comment.