From f0a4dfd9061fa58fe8b7606f266747467238f792 Mon Sep 17 00:00:00 2001 From: Garrett Johnson Date: Mon, 11 Mar 2024 01:52:26 -0700 Subject: [PATCH] Update README.md --- javascript/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/javascript/README.md b/javascript/README.md index 43598ddc..26f4d7b6 100644 --- a/javascript/README.md +++ b/javascript/README.md @@ -106,6 +106,16 @@ xacroLoader.load( url, xml => { } ); ``` +### Adjusting Joint Angles + +```js +robot.setJointValue( jointName, jointAngle ); + +// or + +robot.joints[ jointName ].setJointValue( jointAngle ); +``` + ## Limitations - Only `prismatic`, `continuous`, `revolute`, and `fixed` joints are supported.