Skip to content

Running Example Research SDK Programs

Rob Linsalata edited this page May 30, 2013 · 4 revisions

Prerequisites

Outcome of this step

  • You have successfully commanded Baxter from a sample program running on the development workstation. Congratulations!

Running Examples with the RSDK

Initialize

  1. Initialize your environment:
    For each new Terminal, substitute your robot's hostname or IP address for <robot_hostname>, and your development machine's in for <your_computer_hostname>:

    $ cd ~/git/sdk-examples
    $ ./init.sh <robot_hostname>
    $ export ROS_HOSTNAME=<your_computer_hostname>
  2. Build all the example code (only need to do this once):

    $ rosmake baxter --pre-clean

Run a program!

Pick from any of the examples on the Example Programs page.

  1. To run an example, use:
    $ rosrun <example_package> <example_program> [optional arguments]
    Tip: Package names for most of the examples can be found under the 'sdk-examples/baxter/examples' folder. Use <Tab> to Auto-Complete names.
Clone this wiki locally