Skip to content

Commit 8342eef

Browse files
committed
:class: changed to :obj: for builtins
1 parent c43fb9b commit 8342eef

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

src/compas_fab/robots/constraints.py

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def scale(self, scale_factor):
117117
118118
Parameters
119119
----------
120-
scale_factor : :class:`float`
120+
scale_factor : :obj:`float`
121121
Scale factor to use in scaling operation.
122122
"""
123123
S = Scale([scale_factor] * 3)
@@ -156,7 +156,7 @@ class Constraint(object):
156156
----------
157157
constraint_type
158158
Constraint type, one of :attr:`Constraint.CONSTRAINT_TYPES`.
159-
weight : :class:`float`, optional
159+
weight : :obj:`float`, optional
160160
A weighting factor for this constraint. Denotes relative importance to
161161
other constraints. Closer to zero means less important. Defaults to
162162
``1``.
@@ -191,7 +191,7 @@ def scaled(self, scale_factor):
191191
192192
Parameters
193193
----------
194-
scale_factor : :class:`float`
194+
scale_factor : :obj:`float`
195195
Scale factor used to scale the :class:`Constraint`.
196196
"""
197197
c = self.copy()
@@ -214,15 +214,15 @@ class JointConstraint(Constraint):
214214
215215
Parameters
216216
----------
217-
joint_name : :class:`str`
217+
joint_name : :obj:`str`
218218
The name of the joint this contraint refers to.
219-
value : :class:`float`
219+
value : :obj:`float`
220220
The targeted value for that joint.
221-
tolerance_above : :class:`float`
221+
tolerance_above : :obj:`float`
222222
Tolerance above the targeted joint value, in radians. Defaults to ``0``.
223-
tolerance_below : :class:`float`
223+
tolerance_below : :obj:`float`
224224
Tolerance below the targeted joint value, in radians. Defaults to ``0``.
225-
weight : :class:`float`, optional
225+
weight : :obj:`float`, optional
226226
A weighting factor for this constraint. Denotes relative importance to
227227
other constraints. Closer to zero means less important. Defaults to
228228
``1``.
@@ -245,7 +245,7 @@ def scale(self, scale_factor):
245245
246246
Parameters
247247
----------
248-
scale_factor : :class:`float`
248+
scale_factor : :obj:`float`
249249
Factor used to multiply the joint value and tolerance bounds with.
250250
"""
251251
self.value *= scale_factor
@@ -272,17 +272,17 @@ class OrientationConstraint(Constraint):
272272
273273
Parameters
274274
----------
275-
link_name : :class:`str`
275+
link_name : :obj:`str`
276276
The name of the link this contraint refers to.
277-
quaternion : :class:`list` of :class:`float`
277+
quaternion : :obj:`list` of :obj:`float`
278278
The desired orientation of the link specified by a quaternion in the
279279
order of ``[w, x, y, z]``.
280-
tolerances : :class:`list` of :class:`float`, optional
280+
tolerances : :obj:`list` of :obj:`float`, optional
281281
Error tolerances t\ :sub:`i` for each of the frame's axes. If only one
282282
value is passed it will be used for all 3 axes. The respective bound to
283283
be achieved is :math:`(a_{i} - t_{i}, a_{i} + t_{i})`. Defaults to
284284
``[0.01, 0.01, 0.01]``.
285-
weight : :class:`float`, optional
285+
weight : :obj:`float`, optional
286286
A weighting factor for this constraint. Denotes relative importance to
287287
other constraints. Closer to zero means less important. Defaults to
288288
``1``.
@@ -342,11 +342,11 @@ class PositionConstraint(Constraint):
342342
343343
Parameters
344344
----------
345-
link_name : :class:`str`
345+
link_name : :obj:`str`
346346
The name of the link this contraint refers to.
347347
bounding_volume : :class:`BoundingVolume`
348348
The volume this constraint refers to.
349-
weight : :class:`float`, optional
349+
weight : :obj:`float`, optional
350350
A weighting factor for this constraint. Denotes relative importance to
351351
other constraints. Closer to zero means less important. Defaults to ``1``.
352352
@@ -371,11 +371,11 @@ def from_box(cls, link_name, box, weight=1.):
371371
372372
Parameters
373373
----------
374-
link_name: :class:`str`
374+
link_name: :obj:`str`
375375
The name of the link this contraint refers to.
376376
box : :class:`compas.geometry.Box`
377377
Box defining the bounding volume this constraint refers to.
378-
weight : :class:`float`, optional
378+
weight : :obj:`float`, optional
379379
A weighting factor for this constraint. Denotes relative importance to
380380
other constraints. Closer to zero means less important. Defaults to ``1``.
381381
@@ -399,11 +399,11 @@ def from_sphere(cls, link_name, sphere, weight=1.):
399399
400400
Parameters
401401
----------
402-
link_name : :class:`str`
402+
link_name : :obj:`str`
403403
The name of the link this contraint refers to.
404404
sphere : :class:`compas.geometry.Sphere`
405405
Sphere defining the bounding volume this constraint refers to.
406-
weight : :class:`weight`
406+
weight : :obj:`float`
407407
A weighting factor for this constraint. Denotes relative importance to
408408
other constraints. Closer to zero means less important. Defaults to ``1``.
409409
@@ -427,11 +427,11 @@ def from_mesh(cls, link_name, mesh, weight=1.):
427427
428428
Parameters
429429
----------
430-
link_name : :class:`str`
430+
link_name : :obj:`str`
431431
The name of the link this contraint refers to.
432432
mesh : :class:`compas.datastructures.Mesh`
433433
Mesh defining the bounding volume this constraint refers to.
434-
weight : :class:`weight`
434+
weight : :obj:`float`
435435
A weighting factor for this constraint. Denotes relative importance
436436
to other constraints. Closer to zero means less important. Defaults
437437
to ``1``.
@@ -451,11 +451,11 @@ def from_mesh(cls, link_name, mesh, weight=1.):
451451
return cls(link_name, bounding_volume, weight)
452452

453453
def scale(self, scale_factor):
454-
"""Scale the :class:`bounding_volume` uniformely.
454+
"""Scale the :attr:`bounding_volume` uniformely.
455455
456456
Parameters
457457
----------
458-
scale_factor : :class:`float`
458+
scale_factor : :obj:`float`
459459
Factor to scale constraining :attr:`bounding_volume`.
460460
"""
461461
self.bounding_volume.scale(scale_factor)

0 commit comments

Comments
 (0)