Tool.from_json
-
classmethod
Tool.
from_json
(filepath)[source] Construct a Tool from the data contained in a JSON file.
- Parameters
filepath (str) – Path to the file containing the data.
- Returns
Tool
– The tool.
Examples
>>> filepath = os.path.join(compas_fab.DATA, "planning_scene", "cone_tool.json") >>> tool = Tool.from_json(filepath)