File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -597,7 +597,7 @@ bool PassthroughTrajectoryController::check_goal_tolerance()
597597 return false ;
598598 }
599599
600- if (!active_joint_traj_.points .back ().velocities .empty ()) {
600+ if (!active_joint_traj_.points .back ().velocities .empty () && !joint_velocity_state_interface_. empty () ) {
601601 const auto joint_vel = joint_velocity_state_interface_[i].get ().get_optional ();
602602 if (!joint_vel.has_value ()) {
603603 return false ;
@@ -607,7 +607,7 @@ bool PassthroughTrajectoryController::check_goal_tolerance()
607607 return false ;
608608 }
609609 }
610- if (!active_joint_traj_.points .back ().accelerations .empty ()) {
610+ if (!active_joint_traj_.points .back ().accelerations .empty () && !joint_acceleration_state_interface_. empty () ) {
611611 const auto joint_acc = joint_acceleration_state_interface_[i].get ().get_optional ();
612612 if (!joint_acc.has_value ()) {
613613 return false ;
You can’t perform that action at this time.
0 commit comments