41 static const rclcpp::Logger
LOGGER =
42 rclcpp::get_logger(
"moveit_move_group_default_capabilities.clear_octomap_service_capability");
50 service_ = context_->moveit_cpp_->getNode()->create_service<std_srvs::srv::Empty>(
51 CLEAR_OCTOMAP_SERVICE_NAME,
52 [
this](
const std::shared_ptr<std_srvs::srv::Empty::Request>& req,
53 const std::shared_ptr<std_srvs::srv::Empty::Response>& res) {
return clearOctomap(req, res); });
56 void move_group::ClearOctomapService::clearOctomap(
const std::shared_ptr<std_srvs::srv::Empty::Request>& ,
57 const std::shared_ptr<std_srvs::srv::Empty::Response>& )
59 if (!context_->planning_scene_monitor_)
60 RCLCPP_ERROR(LOGGER,
"Cannot clear octomap since planning_scene_monitor_ does not exist.");
62 RCLCPP_INFO(LOGGER,
"Clearing octomap...");
63 context_->planning_scene_monitor_->clearOctomap();
64 RCLCPP_INFO(LOGGER,
"Octomap cleared.");
67 #include <pluginlib/class_list_macros.hpp>
PLUGINLIB_EXPORT_CLASS(cached_ik_kinematics_plugin::CachedIKKinematicsPlugin< kdl_kinematics_plugin::KDLKinematicsPlugin >, kinematics::KinematicsBase)
void initialize() override
const rclcpp::Logger LOGGER