Skip to content

Latest commit

 

History

History
57 lines (41 loc) · 1.39 KB

README.md

File metadata and controls

57 lines (41 loc) · 1.39 KB

Planar Gripper Example

This directory contains an example for simulating a planar-gripper (three two-degree-of-freedom fingers moving in a plane) which reorients a brick through contact interactions.

Prerequisites

All instructions assume that you are launching from the drake workspace directory.

cd drake

Ensure that you have built the Drake visualizer with

bazel build //tools:drake_visualizer

Build the example in this directory

bazel build //examples/planar_gripper/...

Visualizer

Before running the example, launch the visualizer:

bazel-bin/tools/drake_visualizer

Example

Run Trajectory Publisher

bazel-bin/examples/planar_gripper/planar_gripper_trajectory_publisher

Sends desired joint positions over LCM. Requires a suitable LCM based simulator (such as the example in this directory) listening for lcmt_planar_gripper_command messages and publishing lcmt_planar_gripper_status messages. If successful, the program will display Waiting for first lcmt_planar_gripper_status, indicating it is waiting for the simulation to start publishing status messages.

Simulation

Run the following example of an (LCM based) simulation of a planar-gripper:

bazel-bin/examples/planar_gripper/planar_gripper_simulation

This simulates a planar-gripper with a position-based inverse dynamics controller (by default), communicating via LCM.