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:
- name
str Name of the robot
- joints
listofcompas_robots.Joint, optional Robot’s joints.
- links
listofcompas_robots.Link, optional Robot’s links.
- materials
listofcompas_robots.Material, optional Material description of the robot.
- kwargs
dict Keyword arguments passed to the
compas_robots.RobotModelattrdict. Accessible from Robot.model.attr.
- name
- Returns:
RobotNewly created instance of a robot.
Examples
>>> robot = Robot.basic('A robot') >>> robot.name 'A robot'