Preview

Ros Pr2 Specification

Powerful Essays
Open Document
Open Document
11466 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Ros Pr2 Specification
Writing a realtime joint controller
Description: This tutorial teaches you how to write a joint space controller that can be executed in the realtime loop of pr2_controller_manager Tutorial Level: BEGINNER Next Tutorial: Running a realtime joint controller PomocSpisTreści 1. Introduction 2. Writing the code 1. The code 2. The code explained 3. Compiling the code 4. Register your controller as a plugin

Introduction
To understand this and the follow-on tutorials, you should be familiar with the documentation for a. pr2_controller_interface, which provides the code interface, i.e. how your code will be called. b. pr2_mechanism_model and in particular JointState, which provides access to the joint position sensors and joint torque commands. c. pr2_controller_manager, which load/start/stops and generally administers the execution of realtime code.

Writing the code
First, let's create a package where you'll build your controller. The package needs to depend on the pr2_controller_interface, the pr2_mechanism_model and the pluginlib. The controller interface package contains the base class for all controllers, the pr2_mechanism_model provides access to the robot joints, and the pluginlib package allows us to add our own controller as a plugin into the controller manager
$ roscd ros_pkg_tutorials $ roscreate-pkg my_controller_pkg pr2_controller_interface pr2_mechanism_model pluginlib $ roscd my_controller_pkg

And let's already build all the dependencies of our new package:
$ rosmake

The code
Now, inside our new package, create the directory include, then include/my_controller_pkg, fire up your editor, create a file called include/my_controller_pkg/my_controller_file.h and copy paste the following code into this file: Ustaw numery liniiUstaw numery linii
1 2 3 4 5 6 #include #include namespace my_controller_ns{ class MyControllerClass: public pr2_controller_interface::Controller

7 8 9 10 11 12 13 14 15 16 17 18 19

{ private:

You May Also Find These Documents Helpful

  • Powerful Essays

    Nr224 Final Exam Blue Print

    • 6692 Words
    • 27 Pages

    An indwelling urinary catheter obstructs the normal flushing action of urine flow. The presence of a catheter in the urethra breaches the natural defenses of the body. Reflux of microorganisms up the catheter lumen from the drainage bag or backflow of urine in the tubing increases the risk of infection.…

    • 6692 Words
    • 27 Pages
    Powerful Essays
  • Powerful Essays

    Pos420 Final Paper

    • 2424 Words
    • 10 Pages

    Tackett, J. and Gunter, D. (1997). Special edition. Using Linux. 3rd edition. Indianapolis, IN. QUE Corporation.…

    • 2424 Words
    • 10 Pages
    Powerful Essays
  • Powerful Essays

    The purpose of this Lab. is to familiarize student how to solve practical problems programmatically; they will practice on elementary programming using primitive data types, variables, constants, operators, expressions, and input and output. Also, they will learn how to diagnose errors that may occur when a program is compiled or executed. There are some exercises, through which they will understand the concept learn in this chapter.…

    • 2338 Words
    • 10 Pages
    Powerful Essays
  • Powerful Essays

    Nxt-G Programming Re-Up

    • 3272 Words
    • 14 Pages

    • NXT Controller (aka: the “brick”) • Blocks • The NXT-G Interface • The MOVE, MOTOR & RESET Blocks • Turns - there is more than one way to turn • Geometry and Math for the Robot • Resources • Advanced Programming (for Advanced Workshop) • Light Sensors • Program Control (WAIT, LOOP, SWITCH Blocks) • Math (VARIABLES, MATH and COMPARE Blocks) • My Block • Touch Sensors 08/31/12 Basic Programming - Tony Ayad 2 NXT Controller – The robot’s “brain” The USB port is used to connect to…

    • 3272 Words
    • 14 Pages
    Powerful Essays
  • Good Essays

    NR439 RRL2 Form

    • 387 Words
    • 2 Pages

    5) What did the authors say about the reliability and validity of their data collection and analysis?…

    • 387 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Praxis Chapter 6 Summary

    • 844 Words
    • 4 Pages

    1. Praxis: Living according to one’s belief, not just in private, but also in a way that affects the world.…

    • 844 Words
    • 4 Pages
    Good Essays
  • Better Essays

    2. Click the green play button on the Controller, the device sitting on the floor of the Lab Room.…

    • 1264 Words
    • 5 Pages
    Better Essays
  • Satisfactory Essays

    Prg420 Syllabus

    • 1691 Words
    • 7 Pages

    Faculty and students/learners will be held responsible for understanding and adhering to all policies contained within the following two documents:…

    • 1691 Words
    • 7 Pages
    Satisfactory Essays
  • Better Essays

    RUP 1 PROJECT

    • 2013 Words
    • 6 Pages

    Being a nurse is not just a profession, it is a privilege and an honor. With it being a profession where there is an opportunity to touch many patients’ lives, there must be regulations, laws, and codes that nurses must abide by. There are certain professional traits that a nurse must possess to make them not only a good nurse but a great nurse. There are various nursing theories that a nurse can base their practice upon and many historical figures of the past that guide the nurses of today and of the future.…

    • 2013 Words
    • 6 Pages
    Better Essays
  • Good Essays

    Wells Fargo

    • 771 Words
    • 4 Pages

    will be explained in detail. The implementation of the 4P’s is used as a tool to assist in…

    • 771 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    •When the simulation opens, play with the controls and buttons to become familiar with how the simulation works.…

    • 1890 Words
    • 7 Pages
    Powerful Essays
  • Powerful Essays

    assignment2

    • 781 Words
    • 4 Pages

    Sections 1 & 2 introduce the entire system, while Section 3 & 4 describe the automatic application and describe step-by-step instructions.…

    • 781 Words
    • 4 Pages
    Powerful Essays
  • Better Essays

    The case st udy of A ut omot i ve Ai r bag Reli abil it y…

    • 785 Words
    • 4 Pages
    Better Essays
  • Better Essays

    Capek, Karel. R.U.R. (Rossum 's Universal Robots). Trans. David Wyllie. N.p.: n.p., n.d. EBooks@Adelaide, 20 May 2006. Web. 28 May 2013.…

    • 1409 Words
    • 6 Pages
    Better Essays
  • Good Essays

    I Robot Research Paper

    • 4782 Words
    • 20 Pages

    operating robot. The robot is intended to be placed in a factory, and its software is designed to…

    • 4782 Words
    • 20 Pages
    Good Essays

Related Topics