# "ModernRobotics" Mathematica Package Instructions # This package is the code library for _Modern Robotics: Mechanics, Planning, and Control_. [Here](../../doc/MRlib.pdf) is the introduction. For more details please see the [website](http://modernrobotics.org/). ## Installing the Package ## ### Recommended Installation Instructions ### If you'd like to be able to use this package inside of any notebook, regardless of the notebook's location on your filesystem, then you can use Mathematica's front end to install this package. Use the following steps: 1. Download this package 2. Click `File -> Install...` 3. Select `Package` for the _Type of Item to Install_ 4. Chose `From File...` for the _Source_ 5. Navigate to the `ModernRobotics.m` and select it as the source for the package 6. The _Install Name_ should default to `ModernRobotics`; if it doesn't then fill in the install name to be `ModernRobotics`. 7. Choose whether you want the package installed for a single user or for all users (may require administrative privileges) 8. Click `OK` ### Manual Installation Instructions ### If you have any troubles with the front-end installation described above, try manually installing the package by copying the `ModernRobotics.m` file into the following director. ```sh $MATHPATH/Applications/ModernRobotics/ ``` The value of `$MATHPATH` will depend on your system. You can determine it by looking at the `$Path` variable inside Mathematica. Here are some paths for common operating systems: + OS-X: `~/Library/Mathematica/` + Linux (Debian): `~/.Mathematica/` + Windows: `%APPDATA%\Mathematica\` ## Loading the Package ## After installing the package, load the library from any notebook by running ``` <"] ``` If the notebook and the package are located in the same directory you could use ``` SetDirectory[NotebookDirectory[]] ``` Note that since the package is not installed, you need to set the directory shown above in every notebook in which this package is used. Loading is still required before using. ## Uninstalling the Package ## To uninstall the package, delete the file `ModernRobotics.wl` or `ModernRobotics.m` in the following directory. ```sh $MATHPATH/Applications/ModernRobotics/ ```