moveit中ompl配置问题

 官方生成的ompl配置中有一个文件是这样的:

<launch>

  <!-- This file makes it easy to include different planning pipelines;
       It is assumed that all planning pipelines are named XXX_planning_pipeline.launch  -->

  <arg name="pipeline" default="ompl" />

  <include ns="$(arg pipeline)" file="$(dirname)/$(arg pipeline)_planning_pipeline.launch.xml" />

</launch>

这里有一个ns="$(arg pipeline)",导致上传到参数服务器上是这样的:

/move_group/ompl/planner_configs/SPARS/type
/move_group/ompl/planner_configs/SPARStwo/dense_delta_fraction
/move_group/ompl/planner_configs/SPARStwo/max_failures
/move_group/ompl/planner_configs/SPARStwo/sparse_delta_fraction
/move_group/ompl/planner_configs/SPARStwo/stretch_factor
/move_group/ompl/planner_configs/SPARStwo/type
/move_group/ompl/planner_configs/STRIDE/degree
/move_group/ompl/planner_configs/STRIDE/estimated_dimension
/move_group/ompl/planner_configs/STRIDE/goal_bias
/move_group/ompl/planner_configs/STRIDE/max_degree
/move_group/ompl/planner_configs/STRIDE/max_pts_per_leaf
/move_group/ompl/planner_configs/STRIDE/min_degree
/move_group/ompl/planner_configs/STRIDE/min_valid_path_fraction
/move_group/ompl/planner_configs/STRIDE/range
/move_group/ompl/planner_configs/STRIDE/type
/move_group/ompl/planner_configs/STRIDE/use_projected_distance
/move_group/ompl/planner_configs/TRRT/frontier_node_ratio
/move_group/ompl/planner_configs/TRRT/frontier_threshold
/move_group/ompl/planner_configs/TRRT/goal_bias
/move_group/ompl/planner_configs/TRRT/init_temperature
/move_group/ompl/planner_configs/TRRT/k_constant
/move_group/ompl/planner_configs/TRRT/max_states_failed
/move_group/ompl/planner_configs/TRRT/min_temperature
/move_group/ompl/planner_configs/TRRT/range
/move_group/ompl/planner_configs/TRRT/temp_change_factor
/move_group/ompl/planner_configs/TRRT/type
/move_group/ompl/planning_plugin

这样在开启moveit的时候就会提示:

[ WARN] [1750902487.446649415]: MoveGroup launched with ~default_planning_pipeline 'ompl' not configured in ~planning_pipelines

ompl就会开不起来。

所以要把ns="$(arg pipeline)"去掉,然后开启moveit,就能成功加载ompl了:

/move_group/planner_configs/SPARS/sparse_delta_fraction
/move_group/planner_configs/SPARS/stretch_factor
/move_group/planner_configs/SPARS/type
/move_group/planner_configs/SPARStwo/dense_delta_fraction
/move_group/planner_configs/SPARStwo/max_failures
/move_group/planner_configs/SPARStwo/sparse_delta_fraction
/move_group/planner_configs/SPARStwo/stretch_factor
/move_group/planner_configs/SPARStwo/type
/move_group/planner_configs/STRIDE/degree
/move_group/planner_configs/STRIDE/estimated_dimension
/move_group/planner_configs/STRIDE/goal_bias
/move_group/planner_configs/STRIDE/max_degree
/move_group/planner_configs/STRIDE/max_pts_per_leaf
/move_group/planner_configs/STRIDE/min_degree
/move_group/planner_configs/STRIDE/min_valid_path_fraction
/move_group/planner_configs/STRIDE/range
/move_group/planner_configs/STRIDE/type
/move_group/planner_configs/STRIDE/use_projected_distance
/move_group/planner_configs/TRRT/frontier_node_ratio
/move_group/planner_configs/TRRT/frontier_threshold
/move_group/planner_configs/TRRT/goal_bias
/move_group/planner_configs/TRRT/init_temperature
/move_group/planner_configs/TRRT/k_constant
/move_group/planner_configs/TRRT/max_states_failed
/move_group/planner_configs/TRRT/min_temperature
/move_group/planner_configs/TRRT/range
/move_group/planner_configs/TRRT/temp_change_factor
/move_group/planner_configs/TRRT/type
[ INFO] [1750902752.999370228]: MoveGroup context using planning plugin ompl_interface/OMPLPlanner
[ INFO] [1750902752.999388005]: MoveGroup context initialization complete

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值