Skip to content

Commit

Permalink
Merge pull request #414 from compas-dev/yck011522/issue413
Browse files Browse the repository at this point in the history
Clean up the broken Class and Function links in docstrings
  • Loading branch information
yck011522 authored Apr 19, 2024
2 parents c62c368 + a809746 commit d49db17
Show file tree
Hide file tree
Showing 10 changed files with 258 additions and 70 deletions.
8 changes: 5 additions & 3 deletions src/compas_fab/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,20 @@
Robots
------
The core features are located in the ``robots`` module with the specific backend
implementations in the ``backends`` modules:
The core features are located in the ``robots`` module.
The backend implementations for motion planning are located in the ``backends`` module.
.. toctree::
:maxdepth: 1
:maxdepth: 2
compas_fab.robots
compas_fab.backends
CAD integration
---------------
The following modules provide functions for use within different CAD environments.
.. toctree::
:maxdepth: 1
Expand Down
2 changes: 1 addition & 1 deletion src/compas_fab/backends/interfaces/backend_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def plan_cartesian_motion(self, robot, frames_WCF, start_configuration=None, gro
The robot instance for which the cartesian motion path is being calculated.
frames_WCF: list of :class:`compas.geometry.Frame`
The frames through which the path is defined.
start_configuration: :class:`Configuration`, optional
start_configuration: :class:`compas_robots.Configuration`, optional
The robot's full configuration, i.e. values for all configurable
joints of the entire robot, at the starting position.
group: str, optional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def plan_cartesian_motion(self, robot, frames_WCF, start_configuration=None, gro
The robot instance for which the cartesian motion path is being calculated.
frames_WCF : list of :class:`compas.geometry.Frame`
The frames through which the path is defined.
start_configuration : :class:`Configuration`, optional
start_configuration : :class:`compas_robots.Configuration`, optional
The robot's full configuration, i.e. values for all configurable
joints of the entire robot, at the starting position.
group : str, optional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def plan_cartesian_motion(self, robot, frames_WCF, start_configuration=None, gro
The robot instance for which the cartesian motion plan is being calculated.
frames_WCF: list of :class:`compas.geometry.Frame`
The frames through which the path is defined.
start_configuration: :class:`Configuration`, optional
start_configuration: :class:`compas_robots.Configuration`, optional
The robot's full configuration, i.e. values for all configurable
joints of the entire robot, at the starting position. Defaults to
the all-zero configuration.
Expand Down
8 changes: 4 additions & 4 deletions src/compas_fab/robots/planning_scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,14 @@ def __data__(self):


class AttachedCollisionMesh(Data):
"""Represents a collision mesh that is attached to a :class:`Robot`'s :class:`~compas_robots.model.Link`.
"""Represents a collision mesh that is attached to a :class:`Robot`'s :class:`compas_robots.model.Link`.
Parameters
----------
collision_mesh : :class:`compas_fab.robots.CollisionMesh`
The collision mesh to be attached to the robot model.
link_name : :obj:`str`
The name of the :class:`~compas_robots.model.Link` the collision mesh will be
The name of the :class:`compas_robots.model.Link` the collision mesh will be
attached to.
touch_links : :obj:`list` of :obj:`str`, optional
The list of link names the collision mesh is allowed to touch. Defaults
Expand All @@ -139,7 +139,7 @@ class AttachedCollisionMesh(Data):
collision_mesh : :class:`compas_fab.robots.CollisionMesh`
The collision mesh we want to attach.
link_name : :obj:`str`
The name of the :class:`~compas_robots.model.Link` the collision mesh will be
The name of the :class:`compas_robots.model.Link` the collision mesh will be
attached to.
touch_links : :obj:`list` of :obj:`str`
The list of link names the collision mesh is allowed to touch. Defaults
Expand Down Expand Up @@ -348,7 +348,7 @@ def add_attached_collision_mesh(self, attached_collision_mesh, scale=False):
----------
attached_collision_mesh : :class:`AttachedCollisionMesh`
The :class:`AttachedCollisionMesh` (a :class:`CollisionMesh`
attached to a :class:`Robot`'s :class:`~compas_robots.model.Link`) that
attached to a :class:`Robot`'s :class:`compas_robots.model.Link`) that
we want to add to the :class:`PlanningScene`.
scale : :obj:`bool`, optional
If ``True``, the mesh will be copied and scaled according to
Expand Down
Loading

0 comments on commit d49db17

Please sign in to comment.