Skip to content

Commit

Permalink
Merge pull request RobotLocomotion#1796 from sherm1/add-Windows-stuff…
Browse files Browse the repository at this point in the history
…-to-Cars-instructions

Add some Windows-specific instructions to the Cars example
  • Loading branch information
RussTedrake committed Mar 4, 2016
2 parents 92baff5 + 06a0128 commit 2e5ea4b
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions drake/examples/Cars/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
How to run the car simulation
=============================

Additional prerequisites
------------------------
Additional prerequisite
-----------------------

Install pygame (e.g. with `brew install pygame`, or `apt-get install python-pygame`)

Expand All @@ -16,10 +16,14 @@ e.g. for me it is
```
export PYTHONPATH="/Users/russt/drake-distro/build/lib/python2.7/dist-packages:/Users/russt/drake-distro/build/lib/python2.7/site-packages:$PYTHONPATH"
```


You can run the car simulation without pygame; you won't have much fun driving
it though. In that case you can use publishDrivingCommand (see below) to control it.


Running the simulator
---------------------
To adjust these instructions for Windows, see notes at the end of this section.

```
cd drake-distro/drake/examples/Cars
Expand Down Expand Up @@ -48,3 +52,10 @@ where the values in bracket should be replaced with desired values. e.g.
../../pod-build/bin/publishDrivingCommand 1.0 .4
```
Every time that you run this command, it sends one LCM message.

*Adjustments for Windows*
- Insert the configuration directory (e.g. `Release/`) after `bin/` in paths
below to find executables.
- When running from the Windows Command Prompt you'll need to use backslashes in
place of forward slashes.
- To run a command in the background use `start cmdline` in place of `cmdline &`.

0 comments on commit 2e5ea4b

Please sign in to comment.