youbot学习——youbot_driver包介绍

本系列文章为个人学习笔记,只供交流学习!

下载地址 https://github.com/youbot

youbot_driver——kuka youbot的驱动程序包

youBot API

API documentation(API文件)

The basic idea of the youBot API is to represent a robot system as a combination of decoupled functional sub-systems.

youBot API的基本思想是将机器人系统表示为功能分离的子系统。

That is, this API represents manipulator arm and base platform as the combination of several joints.

也就是说,该API包将机械手和移动基台作为几个子系统的组合。

At the same time each joint is defined as a combination of a motor and a gearbox.

与此同时,每个电机接口被定义为一个电机和变速箱的组合。

There are three main classes in the youBot API that a user should be aware of.

用户需要知道youbot API的三个主要类。

  • YouBotManipulator class that represents youBot arm as the aggregation of several joints and a gripper
  • 【YouBotManipulator 类:表示多关节和一个夹具集合的youbot手臂的类】
  • YouBotBase class that represents youBot base platform
  • 【YouBotBase 类:表示youbot基础平台的类】
  • YouBotJoint class that represents joints which make up both the manipulator and the base
  • 【YouBotJoint 类:表示构成机械手和底座关节的类】

Installation

System requirements:

  • Linux
  • Ethernet adapter(以太网适配器)
  • Root access to the Ethernet adapter(对以太网适配器的根访问)

These libraries are required by the youBot API:

Installation with rosmake:

Install a minimal installation of ROS. (see ros.org)

【最小ROS安装】

Clone the youBot API sources:

【克隆youBot API源】

git clone git://github.com/youbot/youbot_driver.git

Add the repository folder to the ROS_PACKAGE_PATH environment variable.

【将repository文件夹添加到ROS包路径环境变量中】

Compile the youbot driver by typing:

【通过输入编译youbot驱动程序】

rosmake youbot_driver --rosdep-install

Manual installation:

【手动安装】

First, make sure that you have the gnu-make software available on your system (version 3.81 or later required), as well as a working C compiler chain.

首先,确保您的系统上有gnu-make软件(版本3.81或更高),以及一个可工作的C编译器链。

The console commands below are exemplary for a Ubuntu Linux. You will need a git version control software:

下面的控制台命令是Ubuntu Linux的典范。你需要一个git版本控制软件:

sudo apt-get install git git-core

Cmake a cross platform make is also necessary:

sudo apt-get install cmake

To download the youBot API sources type:

git clone git://github.com/youbot/youbot_driver.git

Install boost.

sudo apt-get install libboost-all-dev

Now you should be able to compile the youBot API.

cd <your_folder>/youbot_driver
mkdir build
cd build
cmake ..
make

The library will be generated in the folder ~/youbot_driver/lib.

Usage

The youBot API give you complete joint level access to the youBot joints. Every youBot joint is represented as a youbot::YouBotJoint class in the API. At this stage we make no difference if it is a base joint which powers a wheel or a manipulator joint.

By the classes youbot::YouBotBase and youbot::YouBotManipulator it is possible to get access to a youbot::YouBotJoint instance for a particular joint.

To set a setpoint or read some sensor values form the joints you have to use the youbot::JointData classes. Which could be for instance youbot::JointVelocitySetpoint or youbot::JointSensedCurrent.

To configure parameters of a joint, you have to use the youbot::JointParameter classes. Which could be for instance youbot::MaximumPositioningVelocity.

Example Programs

You can find example programs in the youbot_applications repository.

Documentation

For more detailed information on class and methods please refer to the API documentation.

To generate the documentation from the source code type:

sudo apt-get install doxygen
cd build
make doc 

Run without sudo

The youBot Driver needs access to the raw ethernet device. Under Linux a normal user does not have access to the raw ethernet device. You can grand this capability to a program by the tool setcap. To install setcap use:

sudo apt-get install libcap2-bin

To provide a program with raw access to a ethernet device use: (replace the ./YouBot_KeyboardRemoteControl with your program.)

sudo setcap cap_net_raw+ep ./YouBot_KeyboardRemoteControl

This have to be done whenever the executable is created or replaces e.g. after building.

License

This software is published under a dual-license: GNU Lesser General Public License LGPL 2.1 and BSD license. The dual-license implies that users of this code may choose which terms they prefer.

youbot-ros-pkg

youbot_applications

youbot_driver_ros_interface

youbot_description

youbot_navigation

 

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值