Skip to content

Commit ff4bf0b

Browse files
committed
Corrected class docstring attributes/params
1 parent e8ae37d commit ff4bf0b

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

src/compas_fab/robots/configuration.py

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
class Configuration(object):
1313
"""Represents the configuration of a robot based on the state of its joints.
1414
15-
This concept is also refered to as `Joint State`.
15+
This concept is also refered to as \"Joint State\".
1616
1717
Parameters
1818
----------
@@ -27,9 +27,20 @@ class Configuration(object):
2727
2828
Attributes
2929
----------
30-
data
31-
prismatic_values
32-
revolute_values
30+
values : :obj:`list` of :obj:`float`
31+
Joint values expressed in radians or meters, depending on the respective
32+
type.
33+
types : :obj:`list` of :attr:`compas.robots.Joint.SUPPORTED_TYPES`
34+
Joint types, e.g. a list of :attr:`compas.robots.Joint.REVOLUTE` for
35+
revolute joints.
36+
joint_names : :obj:`list` of :obj:`str`, optional
37+
List of joint names.
38+
data : :obj:`dict`
39+
The data representing the configuration.
40+
prismatic_values : :obj:`list` of :obj:`float`
41+
Prismatic joint values in meters.
42+
revolute_values : :obj:`list` of :obj:`float`
43+
Revolute joint values in radians.
3344
3445
Examples
3546
--------
@@ -61,7 +72,7 @@ def __init__(self, values=None, types=None, joint_names=None):
6172
len(self.values), len(self.values), len(self.types)))
6273

6374
def __str__(self):
64-
"""Nicely printable representation of :class:`Configuration`."""
75+
"""Return a human-readable string representation of the instance."""
6576
v_str = ('(' + ", ".join(['%.' + self._precision] * len(self.values)) + ')') % tuple(self.values)
6677
if len(self.joint_names):
6778
return "Configuration({}, {}, {})".format(v_str, tuple(self.types), tuple(self.joint_names))

0 commit comments

Comments
 (0)