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 robotjoints (
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 thecompas.robots.RobotModel
attrdict
. Accessible from Robot.model.attr.
- Returns
Robot
– Newly created instance of a robot.
Examples
>>> robot = Robot.basic('A robot') >>> robot.name 'A robot'