MoveIt Task Constructor 项目教程

MoveIt Task Constructor 项目教程

moveit_task_constructorA hierarchical multi-stage manipulation planner项目地址:https://gitcode.com/gh_mirrors/mov/moveit_task_constructor

1. 项目的目录结构及介绍

MoveIt Task Constructor 项目的目录结构如下:

moveit_task_constructor/
├── cmake/
├── doc/
├── examples/
├── moveit_task_constructor/
│   ├── core/
│   ├── demo/
│   ├── interface/
│   ├── stages/
│   └── test/
├── resources/
└── test/
  • cmake/: 包含CMake配置文件。
  • doc/: 包含项目文档。
  • examples/: 包含示例代码。
  • moveit_task_constructor/: 核心代码目录,包含多个子模块:
    • core/: 核心功能实现。
    • demo/: 演示代码。
    • interface/: 接口定义。
    • stages/: 任务阶段实现。
    • test/: 测试代码。
  • resources/: 包含资源文件。
  • test/: 包含测试代码。

2. 项目的启动文件介绍

项目的启动文件通常位于 examples/ 目录下,例如 demo_task.launch。该文件用于启动示例任务。

<launch>
  <arg name="robot_name" default="panda" />
  <arg name="rviz" default="true" />

  <include file="$(find moveit_task_constructor_demo)/launch/planning_context.launch">
    <arg name="robot_name" value="$(arg robot_name)" />
  </include>

  <node name="moveit_task_constructor_demo" pkg="moveit_task_constructor_demo" type="demo_task" output="screen">
    <rosparam command="load" file="$(find moveit_task_constructor_demo)/config/demo_task.yaml" />
  </node>

  <group if="$(arg rviz)">
    <node name="rviz" pkg="rviz" type="rviz" args="-d $(find moveit_task_constructor_demo)/config/demo_task.rviz" />
  </group>
</launch>

3. 项目的配置文件介绍

配置文件通常位于 config/ 目录下,例如 demo_task.yaml。该文件用于配置任务参数。

task:
  stages:
    - name: pick
      type: Pick
      params:
        object: box
    - name: place
      type: Place
      params:
        target: target_position
  • task: 定义任务的根节点。
  • stages: 定义任务的各个阶段。
    • name: 阶段的名称。
    • type: 阶段的类型。
    • params: 阶段的参数。

以上是 MoveIt Task Constructor 项目的基本教程,涵盖了项目的目录结构、启动文件和配置文件的介绍。

moveit_task_constructorA hierarchical multi-stage manipulation planner项目地址:https://gitcode.com/gh_mirrors/mov/moveit_task_constructor

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

符卿玺

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值