Modern_Robotics/packages/Matlab/README.md

60 lines
1.3 KiB
Markdown
Raw Normal View History

2018-08-30 07:08:52 +00:00
# "mr" Matlab Code Library Instructions #
2018-07-30 18:40:46 +00:00
2018-08-30 07:08:52 +00:00
This 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/).
2018-07-30 18:40:46 +00:00
2018-08-30 07:08:52 +00:00
## Installing the Library ##
This code library does not need installation.
## Importing the Library ##
To import the library, use `addpath` as
2018-07-30 18:40:46 +00:00
```
addpath('$FOLDER_PATH/mr')
```
2018-08-30 07:08:52 +00:00
where `$FOLDER_PATH` is the path to "mr" folder. This process is required for
any program using this package.
2018-07-30 18:40:46 +00:00
2018-08-30 07:08:52 +00:00
## Using the Package ##
After importing the library, you should be able to use any function in the
library. Taking the function `RotInv` for example, you can check the
description and usage example of this function by running
2018-07-30 18:40:46 +00:00
```
2018-08-30 07:08:52 +00:00
help RotInv
2018-07-30 18:40:46 +00:00
```
2018-08-30 07:08:52 +00:00
As mentioned in the function usage example, you can try using this function
by running
2018-07-30 18:40:46 +00:00
```
2018-08-30 07:08:52 +00:00
R = [0, 0, 1; 1, 0, 0; 0, 1, 0];
invR = RotInv(R);
```
You should get the the variable `invR` whose value is the same as the output
shown in the function usage example.
To check the function list and which chapter in the book do those functions
belong to, use `help` as
```
help mr
2018-07-30 18:40:46 +00:00
```
2018-08-30 07:08:52 +00:00
## Library Information ##
2018-07-30 18:40:46 +00:00
Author: Huan Weng, Bill Hunt, Mikhail Todes, Jarvis Schultz
2018-07-30 18:46:41 +00:00
2018-07-30 18:40:46 +00:00
Contact: huanweng@u.northwestern.edu
2018-07-30 18:46:41 +00:00
2018-07-30 18:40:46 +00:00
Package Version: 1.0.0
2018-07-30 18:46:41 +00:00
2018-07-30 18:40:46 +00:00
Matlab Version: R2017b
2018-07-30 18:46:41 +00:00
2018-08-30 07:08:52 +00:00
Tested in Matlab R2017b