Skip to content

Commit a6788f1

Browse files
committed
Update function signature to Eigen
1 parent 0b6f17e commit a6788f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/how_to_guides/planner_cost_functions/src/planner_cost_functions_main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ class Demo
276276
auto group_name = planning_query_request_.group_name;
277277
// Set cost function
278278
planning_component_->setStateCostFunction(
279-
[robot_start_state, group_name, planning_scene](const std::vector<double>& state_vector) mutable {
279+
[robot_start_state, group_name, planning_scene](const Eigen::VectorXd& state_vector) mutable {
280280
// Publish robot state
281281
// auto const ee_tip = robot_state.getJointModelGroup(PLANNING_GROUP)->getOnlyOneEndEffectorTip();
282282
// this->getVisualTools().publishSphere(robot_state.getGlobalLinkTransform(ee_tip), rviz_visual_tools::GREEN,

0 commit comments

Comments
 (0)