-
-
Notifications
You must be signed in to change notification settings - Fork 127
Robot libraries
- Place a
Load robot system
component in the Grasshopper canvas. - Click on the
Libraries
button. - On the opening window select a library from the list.
- Click the
Install
button.The cached copy of an installed library is not placed in the same location as local libraries.
If the library shows as
Local override
, it means that a library with the same name exists in your local documents folder, and will ignore the online version. To use the online version, delete theXML
and3DM
files from the local library path (see below for the location).
- Download at least one pair of
XML
and3DM
files from the libraries branch.You can install multiple libraries.
- Place them inside a folder named
Robots
under the OS'sDocuments
folder.In Windows the path will look like
C:\Users\userName\Documents\Robots\RobotLibrary.xml
.
In Mac the path will look likeHD/Users/userName/Robots/RobotLibrary.xml
. - The robots from the library should appear in a value list when you place a
Load Robot System
component.
Here is a list of robot cell libraries with the configuration parameters of the workshop they belong to. If your workshop is not listed below, you can download any of these and modify them to create your own, or you post a message in the discussion section for help.
- Follow the instructions above to install the online library as a local library.
The installed version will be ignored if there is a local library with the same name.
- Make the changes necessary on the
XML
using a text editor or the3DM
using Rhino.
- Create or update a library locally as mentioned above.
- Clone the
libraries
branch of the Robots repo. - Copy the library
XML
and3DM
files from theDocuments\Robots
folder to your repo folder. - Commit and create a pull request targeting the
libraries
branch with the new files or changes.
You can add a tool to the XML
file using the following format
<Tool name="ToolName" useController="true" number="1">
<Tcp x="0" y="0" z="0" q1="1" q2="0" q3="0" q4="0" />
<Mass weight="20" x="5" y="-100" z="100"/>
</Tool>
-
useControler
- Is optional, defaults to false when omitted.
- Currently does not work with
UR
. - When set to
true
, it will only use values set in theTcp
element for the simulation, but the robot program will use an existing variable from the controller with the same name as the tool. The robot program will error if this variable does not exist in the controller.
-
number
- Is optional,
useController
not needed if this is set. - Currently only works with
KUKA
. - As above, but rather than a variable, it will read from the
TOOL_DATA
array.
- Is optional,
- The
x, y, z
attributes in mass are optional.
Add the tool geometry in the 3DM
file by placing one or more meshes in a layer called Tool.ToolName
<Frame name="FrameName" useController="true" number="1">
<Base x="0" y="0" z="0" q1="1" q2="0" q3="0" q4="0" />
<Coupling group="0" mechanism="0" />
</Frame>
- See above for the
useController
andnumber
elements. - The
Coupling
element is optional and not needed if the frame is static.