Drake Tutorial
  • Drake Tutorial
  • To get started
  • Introduction
    • Drake Concepts
    • Drake Multibody
    • Drake Simulation
    • Drake Notation
    • Bazel basics
  • Things to do in drake
    • Hello, Drake!
    • Create a URDF/SDF robot
    • Visualize data in LCM
    • Visualize trajectory
    • [WIP] Visualize data
    • [WIP] Control Real KUKA arm
  • Drake Controllers
    • PID control of double pendulum
    • LQR on Cart Pole
    • Inverse Dynamics Control on fully-actuated KUKA arm
    • [WIP] Control a underactuated robot using Inverse Dynamics Controller
  • Drake Optimization
    • [WIP] Trajectory Optimization 1 - Direct Transcription
    • [WIP] Trajectory Optimization 2 - Direct Collocation
    • [WIP] Trajectory Optimization 3 - Shooting method
    • [WIP] Optimal Control 1 - Quadratic Programming
    • [WIP] Optimal Control 2 - Sequential Quadratic Programming
  • Q & A
    • FAQ
    • Use Drake as part of your project
  • Deprecated
    • Create a simple system
Powered by GitBook
On this page

Was this helpful?

  1. Things to do in drake

[WIP] Visualize data

Drake could call python functions. So we could use matplotlib in python to create data plots.

This piece of tool is used for translating the function call in C++ into python and transmit some data format as well. We need to run the call_python_client_cli to enable this feature.

cd drake
bazel build //common/proto:call_python_client_cli //common/proto:call_python_server_test
# Create default pipe file.
rm -f /tmp/python_rpc && mkfifo /tmp/python_rpc
# Run the translation software.
./bazel-bin/common/proto/call_python_client_cli

So in our code, we could use this service and call plot in python to draw figures.

So we could see the tool receive the python function call request and data passed with this request. A figure pop up after the plot command. This is how we plot data in Drake.

PreviousVisualize trajectoryNext[WIP] Control Real KUKA arm

Last updated 5 years ago

Was this helpful?