Skip to content

Commit 72913a3

Browse files
committed
Revert "Added mutex"
This reverts commit 29ff010. Signed-off-by: Alberto Tudela <ajtudela@gmail.com>
1 parent 67187a4 commit 72913a3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

‎nav2_docking/opennav_docking/src/controller.cpp‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,6 @@ geometry_msgs::msg::Twist Controller::computeRotateToHeadingCommand(
130130
const geometry_msgs::msg::Twist & current_velocity,
131131
const double & dt)
132132
{
133-
std::lock_guard<std::mutex> lock(dynamic_params_lock_);
134-
135133
geometry_msgs::msg::Twist cmd_vel;
136134
const double sign = angular_distance_to_heading > 0.0 ? 1.0 : -1.0;
137135
const double angular_vel = sign * rotate_to_heading_angular_vel_;
@@ -155,8 +153,6 @@ geometry_msgs::msg::Twist Controller::computeRotateToHeadingCommand(
155153
bool Controller::isTrajectoryCollisionFree(
156154
const geometry_msgs::msg::Pose & target_pose, bool is_docking, bool backward)
157155
{
158-
std::lock_guard<std::mutex> lock(dynamic_params_lock_);
159-
160156
// Visualization of the trajectory
161157
nav_msgs::msg::Path trajectory;
162158
trajectory.header.frame_id = base_frame_;

0 commit comments

Comments
 (0)