-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from rtyh12/urdf-parser
URDF parser
- Loading branch information
Showing
29 changed files
with
1,593 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
src/Trip.egg-info | ||
src/trip_kinematics.egg-info | ||
docs/build/ | ||
build/ | ||
src/dist | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
How to use the urdf parser | ||
************************** | ||
The URDF parser allows the usage of URDF files with TriP by converting the described robot into a list of TriP Transformations. | ||
|
||
It can be used directly after importing the TriP library by calling the function trip_kinematics.from_urdf with the path to the URDF file as the argument. Note that the function returns a list of Transformations, which you probably want to create a Robot from in most cases: | ||
|
||
.. code-block:: python | ||
transformations_list = trip_kinematics.urdf_parser.from_urdf(urdf_path) | ||
robot = Robot(transformations_list) | ||
This means you can also add other Transformations manually on top of those specified in the URDF file, if required. | ||
|
||
Also note that the parser includes defaults for certain values if the corresponding URDF tag is missing, specifically: | ||
|
||
* <origin> defaults to <origin xyz="0 0 0" rpy="0 0 0" />. | ||
|
||
* (The same also applies if only one of xyz and rpy is specified, with the omitted value defaulting to "0 0 0") | ||
|
||
* <axis> defaults to <axis xyz="0 0 1" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.