File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
doc/how_to_guides/planner_cost_functions/src Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -263,9 +263,8 @@ class Demo
263263 {
264264 planning_component_->setStateCostFunction (
265265 [robot_start_state, group_name, planning_scene](const Eigen::VectorXd& state_vector) mutable {
266- // rviz_visual_tools::MEDIUM); this->getVisualTools().trigger();
267266 auto clearance_cost_fn =
268- moveit::cost_functions::getClearanceCostFn (*robot_start_state, group_name, planning_scene);
267+ moveit::cost_functions::getMinJointDisplacementCostFn (*robot_start_state, group_name, planning_scene);
269268 return clearance_cost_fn (state_vector);
270269 });
271270 }
@@ -286,8 +285,7 @@ class Demo
286285 if (plan_solution.trajectory )
287286 {
288287 RCLCPP_INFO_STREAM (LOGGER, plan_solution.planner_id .c_str ()
289- << " , " << std::to_string (plan_solution.use_cost_function ) << " : "
290- << colorToString (rviz_visual_tools::Colors (color_index)));
288+ << " : " << colorToString (rviz_visual_tools::Colors (color_index)));
291289 // Visualize the trajectory in Rviz
292290 visual_tools_.publishTrajectoryLine (plan_solution.trajectory , joint_model_group_ptr,
293291 rviz_visual_tools::Colors (color_index));
You can’t perform that action at this time.
0 commit comments