Robot.basic

classmethod Robot.basic(name, joints=None, links=None, materials=None, **kwargs)

Create the most basic instance of a robot, based only on name.

Parameters
  • name (str) – Name of the robot

  • joints (list of compas.robots.Joint, optional) – Robot’s joints.

  • links (list of compas.robots.Link, optional) – Robot’s links.

  • materials (list of compas.robots.Material, optional) – Material description of the robot.

  • kwargs (dict) – Keyword arguments passed to the compas.robots.RobotModel attr dict. Accessible from Robot.model.attr.

Returns

Robot – Newly created instance of a robot.

Examples

>>> robot = Robot.basic('A robot')
>>> robot.name
'A robot'