Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion drake/automotive/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ To run `car_sim_lcm`, open a new terminal and execute the following commands:
```
$ cd drake-distro
$ bazel build drake/automotive:demo drake/automotive:car_sim_lcm
$ bazel-bin/external/drake_visualizer/drake-visualizer &
$ bazel-bin/tools/drake_visualizer &
$ bazel-bin/drake/automotive/steering_command_driver &
$ bazel run drake/automotive:car_sim_lcm
```
Expand Down
3 changes: 2 additions & 1 deletion drake/systems/sensors/test/accelerometer_test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ To run a demo of an accelerometer attached to a pendulum:
# When building Drake using Bazel

cd drake-distro
bazel-bin/external/drake_visualizer/drake-visualizer &
bazel build //tools:drake_visualizer
bazel-bin/tools/drake_visualizer &
bazel run -- //drake/systems/sensors:accelerometer_example --initial_q=1.57 --initial_v=0
14 changes: 14 additions & 0 deletions tools/drake_visualizer_linux.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
#!/bin/bash

set -e

# If we are outside the sandbox, then change to the same relative directory as
# we would be inside the sandbox.
if ! [ -d "external/director" ]; then
guess_runfiles=$(dirname "$0")/drake_visualizer.runfiles/drake
if [ -d "$guess_runfiles/external/director" ]; then
cd "$guess_runfiles"
else
echo "$(basename $0) error: could not find director" 1>&2
exit 1
fi
fi

export LD_LIBRARY_PATH="external/director/lib:external/vtk/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
export PYTHONPATH="external/director/lib/python2.7/dist-packages:external/vtk/lib/python2.7/site-packages${PYTHONPATH:+:$PYTHONPATH}"

Expand Down