From 06adbf03e82f70ec3f9c1dffa949111f9033b548 Mon Sep 17 00:00:00 2001 From: Alex Ponomarev Date: Sun, 10 Feb 2019 00:32:31 +0100 Subject: [PATCH] Update README.md added complete first run test for users new to python, making the start as easy as possible --- packages/Python/README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/packages/Python/README.md b/packages/Python/README.md index a6b2a7e..c3ecbd8 100644 --- a/packages/Python/README.md +++ b/packages/Python/README.md @@ -56,9 +56,20 @@ invR = mr.RotInv(R) You should get the variable `invR` whose value is the same as the output 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 ## 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 not installed, you need to move the package if the working directory is -changed. Importing is still required before using. \ No newline at end of file +changed. Importing is still required before using.