• MoveIt简单编程


    目的:使用一些简单代码使机器人运动到指定位置。讲解代码怎么实现机器人的运动。

    参考文献:

    第一个博客需要下载《Mastering ROS for robotics Programming》中的源码,第二个教程不用下其他源码,直接运行就行,

    第三个教程出现了一些错误及解决方法。在新终端运行roslaunch moveit_tutorials move_group_interface_tutorial.launch,出现,

    [move_group_interface_tutorial.launch] is neither a launch file in package [moveit_tutorials] nor is [moveit_tutorials] a launch file name
    The traceback for the exception was written to the log file

    此时需要编译工作空间(我把文件放在~/catkin_ws/src里了)

    $ cd ~/catkin_ws/

    $ catkin_make

    $ source devel/setup.bash

    重新运行下roslaunch文件,出现一个与pr2_description相关的错误。

    No such file or directory: '/home/ubuntu/catkin_ws/src/pr2_description/robots/pr2.urdf.xacro'

    网上一顿找(找错误原因,去github里下载pr2_description,实际没找到),后来把教程前面的有关内容看了遍,根本就没pr2_description的事,索性从src文件里删除pr2_description文件。

    再次运行下roslaunch文件,成功。

    MoveIt编程

    Move Group Interface/C++ API

    Move Group Interface tutorial

     

  • 相关阅读:
    用户数据报协议---UDP
    斐波那契数列
    从尾到头打印链表
    Mybatis三种查询方式
    Mybatis配置
    字典的用法
    遍历列表、切片、定义元组
    与列表相关知识
    python一些方法总结
    计算机的容量
  • 原文地址:https://www.cnblogs.com/algs/p/6798821.html
Copyright © 2020-2023  润新知