45 const planning_scene::PlanningScenePtr& scene)
49 RCLCPP_WARN(logger_,
"Cannot setup scene, PlanningScenePtr is null.");
53 std::string param_name;
54 std::string collision_detector_name;
56 if (node->has_parameter(
"collision_detector"))
58 node->get_parameter(
"collision_detector", collision_detector_name);
60 else if (node->has_parameter((
"/move_group/collision_detector")))
64 node->get_parameter(
"/move_group/collision_detector", collision_detector_name);
71 if (collision_detector_name.empty())
77 activate(collision_detector_name, scene);
78 RCLCPP_INFO(logger_,
"Using collision detector: %s", scene->getCollisionDetectorName().c_str());