Robot.basic
-
classmethod
Robot.basic(name, joints=None, links=None, materials=None, **kwargs)[source] - Convenience method to create the most basic instance of a robot,
based only on a name.
- Parameters
name (str) – Name of the robot
joints (
compas.robots.Joint, optional)links (
compas.robots.Link, optional)materials (
compas.robots.Material, optional)**kwargs – Keyword arguments passed to
compas.robots.RobotModeland stored ascompas.robots.RobotModel.attr. Accessible fromRobot.model.attr.
- Returns
Robot– Newly created instance of a robot.
Examples
>>> robot = Robot.basic('A robot') >>> robot.name 'A robot'