Update README.md
added complete first run test for users new to python, making the start as easy as possible
This commit is contained in:
parent
db51102bf7
commit
06adbf03e8
|
|
@ -56,9 +56,20 @@ invR = mr.RotInv(R)
|
||||||
You should get the variable `invR` whose value is the same as the output
|
You should get the variable `invR` whose value is the same as the output
|
||||||
shown in the function usage example.
|
shown in the function usage example.
|
||||||
|
|
||||||
|
Your complete first test code that will return invR could be as follows:
|
||||||
|
```
|
||||||
|
import modern_robotics as mr
|
||||||
|
import numpy as np
|
||||||
|
R = np.array([[0, 0, 1],
|
||||||
|
[1, 0, 0],
|
||||||
|
[0, 1, 0]])
|
||||||
|
invR = mr.RotInv(R)
|
||||||
|
print invR
|
||||||
|
```
|
||||||
|
|
||||||
## Using the Package Locally ##
|
## Using the Package Locally ##
|
||||||
|
|
||||||
It is possible to use the package locally without installation. Download and
|
It is possible to use the package locally without installation. Download and
|
||||||
place the package in the working directory. Note that since the package is
|
place the package in the working directory. Note that since the package is
|
||||||
not installed, you need to move the package if the working directory is
|
not installed, you need to move the package if the working directory is
|
||||||
changed. Importing is still required before using.
|
changed. Importing is still required before using.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue