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