|
2 years ago | |
---|---|---|
.. | ||
test | 2 years ago | |
BUILD.bazel | 2 years ago | |
README.md | 2 years ago | |
brick_static_equilibrium_constraint.cc | 2 years ago | |
brick_static_equilibrium_constraint.h | 2 years ago | |
gripper_brick.cc | 2 years ago | |
gripper_brick.h | 2 years ago | |
gripper_brick_planning_constraint_helper.cc | 2 years ago | |
gripper_brick_planning_constraint_helper.h | 2 years ago | |
planar_brick.sdf | 2 years ago | |
planar_gripper.sdf | 2 years ago | |
planar_gripper.xacro | 2 years ago | |
planar_gripper_common.cc | 2 years ago | |
planar_gripper_common.h | 2 years ago | |
planar_gripper_lcm.cc | 2 years ago | |
planar_gripper_lcm.h | 2 years ago | |
planar_gripper_simulation.cc | 2 years ago | |
planar_manipuland_lcm.cc | 2 years ago | |
planar_manipuland_lcm.h | 2 years ago | |
postures.txt | 2 years ago | |
run_planar_gripper_trajectory_publisher.cc | 2 years ago |
README.md
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
Open a visualizer window
bazel run //tools:meldis -- --open-window &
Build the example in this directory
bazel build //examples/planar_gripper/...
Example
Run Trajectory Publisher
bazel-bin/examples/planar_gripper/run_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.