Skip to content

Commit b133187

Browse files
committed
:class: changed to :obj: for builtins
1 parent 209ddc6 commit b133187

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

src/compas_fab/robots/trajectory.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ class JointTrajectoryPoint(Configuration):
2424
2525
Parameters
2626
----------
27-
values : :class:`list` of :class:`float`
27+
values : :obj:`list` of :obj:`float`
2828
Joint values expressed in radians or meters, depending on the respective
2929
type.
30-
types : :class:`list` of :class:`compas.robots.Joint.TYPE`
31-
Joint types, e.g. a :class:`list` of
30+
types : :obj:`list` of :attr:`compas.robots.Joint.TYPE`
31+
Joint types, e.g. a :obj:`list` of
3232
:attr:`compas.robots.Joint.REVOLUTE` for revolute joints.
33-
velocities : :class:`list` of :class:`float`
33+
velocities : :obj:`list` of :obj:`float`
3434
Velocity of each joint.
35-
accelerations : :class:`list` of :class:`float`
35+
accelerations : :obj:`list` of :obj:`float`
3636
Acceleration of each joint.
37-
effort : :class:`list` of :class:`float`
37+
effort : :obj:`list` of :obj:`float`
3838
Effort of each joint.
3939
time_from_start : :class:`Duration`
4040
Duration of trajectory point counting from the start.
@@ -61,12 +61,12 @@ def __str__(self):
6161

6262
@property
6363
def positions(self):
64-
""":class:`list` of :class:`float` : Alias of `values`."""
64+
""":obj:`list` of :obj:`float` : Alias of `values`."""
6565
return self.values
6666

6767
@property
6868
def velocities(self):
69-
""":class:`list` of :class:`float` : Velocity of each joint."""
69+
""":obj:`list` of :obj:`float` : Velocity of each joint."""
7070
return self._velocities
7171

7272
@velocities.setter
@@ -79,7 +79,7 @@ def velocities(self, velocities):
7979

8080
@property
8181
def accelerations(self):
82-
""":class:`list` of :class:`float` : Acceleration of each joint."""
82+
""":obj:`list` of :obj:`float` : Acceleration of each joint."""
8383
return self._accelerations
8484

8585
@accelerations.setter
@@ -92,7 +92,7 @@ def accelerations(self, accelerations):
9292

9393
@property
9494
def effort(self):
95-
""":class:`list` of :class:`float` : Effort of each joint."""
95+
""":obj:`list` of :obj:`float` : Effort of each joint."""
9696
return self._effort
9797

9898
@effort.setter
@@ -105,10 +105,10 @@ def effort(self, effort):
105105

106106
@property
107107
def data(self):
108-
""":class:`dict` : The data representing the trajectory point.
108+
""":obj:`dict` : The data representing the trajectory point.
109109
110110
By assigning a data dictionary to this property, the current data of the
111-
configuration will be replaced by the data in the :class:`dict`. The data getter
111+
configuration will be replaced by the data in the :obj:`dict`. The data getter
112112
and setter should always be used in combination with each other.
113113
"""
114114
data_obj = super(JointTrajectoryPoint, self).data
@@ -134,7 +134,7 @@ class Trajectory(object):
134134
135135
Attributes
136136
----------
137-
planning_time : :class:`float`
137+
planning_time : :obj:`float`
138138
Amount of time it took to complete the motion plan
139139
"""
140140

@@ -147,13 +147,13 @@ class JointTrajectory(Trajectory):
147147
148148
Parameters
149149
----------
150-
points : :class:`list` of :class:`JointTrajectoryPoint`
150+
points : :obj:`list` of :class:`JointTrajectoryPoint`
151151
List of points composing the trajectory.
152-
joint_names : :class:`list` of :class:`str`
152+
joint_names : :obj:`list` of :obj:`str`
153153
List of joint names of the trajectory.
154154
start_configuration : :class:`Configuration`
155155
Start configuration for the trajectory.
156-
fraction : :class:`float`
156+
fraction : :obj:`float`
157157
Indicates the percentage of requested trajectory that was calcuted,
158158
e.g. ``1`` means the full trajectory was found.
159159
"""
@@ -171,7 +171,7 @@ def from_data(cls, data):
171171
172172
Parameters
173173
----------
174-
data : :class:`dict`
174+
data : :obj:`dict`
175175
The data dictionary.
176176
177177
Returns
@@ -190,13 +190,13 @@ def to_data(self):
190190
191191
Returns
192192
-------
193-
:class:`dict`
193+
:obj:`dict`
194194
"""
195195
return self.data
196196

197197
@property
198198
def data(self):
199-
""":class:`dict` : The data representing the trajectory."""
199+
""":obj:`dict` : The data representing the trajectory."""
200200
data_obj = {}
201201
data_obj['points'] = [p.to_data() for p in self.points]
202202
data_obj['joint_names'] = self.joint_names or []
@@ -215,7 +215,7 @@ def data(self, data):
215215

216216
@property
217217
def time_from_start(self):
218-
""":class:`float` : Effectively, time from start for the last point in the trajectory."""
218+
""":obj:`float` : Effectively, time from start for the last point in the trajectory."""
219219
if not self.points:
220220
return 0.
221221

0 commit comments

Comments
 (0)