Robot.basic

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

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

Parameters:
namestr

Name of the robot

jointslist of compas_robots.Joint, optional

Robot’s joints.

linkslist of compas_robots.Link, optional

Robot’s links.

materialslist of compas_robots.Material, optional

Material description of the robot.

kwargsdict

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'