Skip to content

Commit 50479f6

Browse files
authored
Update scaled_joint_trajectory_controller.cpp
1 parent 13ce677 commit 50479f6

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

ur_controllers/src/scaled_joint_trajectory_controller.cpp

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,7 @@ controller_interface::return_type ScaledJointTrajectoryController::update(const
137137
auto current_external_msg = traj_external_point_ptr_->get_trajectory_msg();
138138
auto new_external_msg = traj_msg_external_point_ptr_.readFromRT();
139139
// Discard, if a goal is pending but still not active (somewhere stuck in goal_handle_timer_)
140-
<<<<<<< HEAD
141-
if (current_external_msg != *new_external_msg && (*(rt_has_pending_goal_.readFromRT()) && !active_goal) == false) {
142-
=======
143-
if (current_trajectory_msg != *new_external_msg && (rt_has_pending_goal_ && !active_goal) == false) {
144-
>>>>>>> 6a3be3f (Use std_atomic<bool> in SJTC (#1385))
140+
if (current_external_msg != *new_external_msg && (rt_has_pending_goal_ && !active_goal) == false) {
145141
fill_partial_goal(*new_external_msg);
146142
sort_to_local_joint_order(*new_external_msg);
147143
// TODO(denis): Add here integration of position and velocity
@@ -343,15 +339,9 @@ controller_interface::return_type ScaledJointTrajectoryController::update(const
343339
// we need to ensure that there is no pending goal -> we get a race condition otherwise
344340
RCLCPP_ERROR(logger, "Holding position due to state tolerance violation");
345341

346-
<<<<<<< HEAD
347342
traj_msg_external_point_ptr_.reset();
348343
traj_msg_external_point_ptr_.initRT(set_hold_position());
349-
} else if (!before_last_point && !within_goal_time && *(rt_has_pending_goal_.readFromRT()) == false) {
350-
=======
351-
new_trajectory_msg_.reset();
352-
new_trajectory_msg_.initRT(set_hold_position());
353344
} else if (!before_last_point && !within_goal_time && !rt_has_pending_goal_) {
354-
>>>>>>> 6a3be3f (Use std_atomic<bool> in SJTC (#1385))
355345
RCLCPP_ERROR(logger, "Exceeded goal_time_tolerance: holding position...");
356346

357347
traj_msg_external_point_ptr_.reset();

0 commit comments

Comments
 (0)