Display Image Example

From sdk-wiki
Revision as of 19:09, 26 February 2015 by Imcmahon (talk | contribs) (Usage)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Display an image to Baxter's head

Summary

Use xdisplay_image to display an image to Baxter's head display.

Code Walkthrough

Display Image - Code Walkthrough

Overview

Display an image (e.g. .png or .jpg) to Baxter's head display. Baxter display resolution is 1024 x 600 pixels.

Usage

Run xdisplay_image from an RSDK terminal session using:

   $ rosrun baxter_examples xdisplay_image.py --file=`rospack find baxter_examples`/share/images/baxterworking.png

Replace the --file argument with the path to your own image.

To see help for the xdisplay_image program, run:

   $ rosrun baxter_examples xdisplay_image.py -h

xdisplay_image.py [ARGUMENTS]

  • h, --help This screen
  • f, --file [PATH] Path to image file to send

Documentation

Display Image - Code Walkthrough

Troubleshooting

For common issues specific to using xdisplay_image with Baxter, check out the Troubleshooting page.