Skip to content

Commit

Permalink
Replaces boost mutex with std::shared_mutex. Adds execute action serv…
Browse files Browse the repository at this point in the history
…er to callback group.
  • Loading branch information
rr-mark committed Jan 16, 2025
1 parent b92d3b2 commit 09d7288
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ void MoveGroupExecuteTrajectoryAction::initialize()
return rclcpp_action::GoalResponse::ACCEPT_AND_EXECUTE;
},
[](const std::shared_ptr<ExecTrajectoryGoal>& /* unused */) { return rclcpp_action::CancelResponse::ACCEPT; },
[this](const auto& goal) { executePathCallback(goal); });
[this](const auto& goal) { executePathCallback(goal); },
rcl_action_server_get_default_options(), callback_group_);
}

void MoveGroupExecuteTrajectoryAction::executePathCallback(const std::shared_ptr<ExecTrajectoryGoal>& goal)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ class MOVEIT_PLANNING_SCENE_MONITOR_EXPORT PlanningSceneMonitor
std::atomic<bool> state_update_pending_;

// Lock for writing last_robot_state_update_wall_time_ and dt_state_update_
boost::mutex state_update_mutex_;
std::shared_mutex state_update_mutex_;

/// Last time the state was updated from current_state_monitor_
// Only access this from callback functions (and constructor)
Expand Down

0 comments on commit 09d7288

Please sign in to comment.