[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.
1
cd drake
2
bazel build //common/proto:call_python_client_cli //common/proto:call_python_server_test
3
# Create default pipe file.
4
rm -f /tmp/python_rpc && mkfifo /tmp/python_rpc
5
# Run the translation software.
6
./bazel-bin/common/proto/call_python_client_cli
Copied!
So in our code, we could use this service and call plot in python to draw figures.
1
Copied!
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.
Copy link