Skip to content

Commit 516eccd

Browse files
Add docs for control.ros.org (#377)
1 parent 786258a commit 516eccd

File tree

6 files changed

+38
-10
lines changed

6 files changed

+38
-10
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,11 @@ repos:
111111
rev: v1.1.2
112112
hooks:
113113
- id: doc8
114-
args: ['--max-line-length=100', '--ignore=D001']
114+
args: [
115+
'--max-line-length=100',
116+
'--ignore=D001',
117+
'--ignore-path=doc/index.rst' # D000 fails
118+
]
115119
exclude: CHANGELOG\.rst$
116120

117121
- repo: https://github.com/pre-commit/pygrep-hooks

control_toolbox/src/control_filters/README.md renamed to doc/control_filters.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Control filters
22

3-
Implement filter plugins for control purposes as https://index.ros.org/r/filters/github-ros-filters/
3+
Implement filter plugins for control purposes as [ros/filters](https://github.com/ros/filters)
44

55
## Available filters
66

@@ -13,18 +13,18 @@ Implement filter plugins for control purposes as https://index.ros.org/r/filters
1313

1414
This filter implements an algorithm compensating for the gravity forces acting at the center of gravity (CoG) of a known mass, computed at a `sensor_frame` and applied to a `data_in` wrench.
1515

16-
The filter relies on tf2, and might fail if transforms are missing.
16+
The filter relies on tf2, and might fail if transforms are missing.
1717

18-
Note that, for convenience, the filter can perform additional frame changes if data_out frame id is given.
18+
Note that, for convenience, the filter can perform additional frame changes if data_out frame id is given.
1919

20-
### Required parameters
20+
### GC: Required parameters
2121

2222
* `world_frame` (&Rscr;<sub>w</sub>): frame in which the `CoG.force` is represented.
2323
* `sensor_frame` (&Rscr;<sub>s</sub>): frame in which the `CoG.pos` is defined
2424
* `CoG.pos` (p<sub>s</sub>): position of the CoG of the mass the filter should compensate for
2525
* `CoG.force` (g<sub>w</sub>): constant (but updatable) force of gravity at the Cog (typically m.G), defined along axes of the `world_frame`
2626

27-
### Algorithm
27+
### GC: Algorithm
2828

2929
Given
3030

@@ -68,13 +68,13 @@ Remarks :
6868
This filter implements a low-pass filter in the form of an [IIR filter](https://en.wikipedia.org/wiki/Infinite_impulse_response), applied to a `data_in` (double or wrench).
6969
The feedforward and feedback coefficients of the IIR filter are computed from the low-pass filter parameters.
7070

71-
### Required parameters
71+
### LPF: Required parameters
7272

7373
* sampling frequency as `sf`
7474
* damping frequency as `df`
7575
* damping intensity as `di`
7676

77-
### Algorithm
77+
### LPF: Algorithm
7878

7979
Given
8080

@@ -93,9 +93,9 @@ with
9393

9494
## Exponential filter
9595

96-
### Required parameters
96+
### EF: Required parameters
9797
* `alpha`: the exponential decay factor
9898

99-
### Algorithm
99+
### EF: Algorithm
100100

101101
smoothed_value = alpha * current_value + (1 - alpha) * last_smoothed_value;

doc/control_toolbox.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Base classes
2+
3+
Tbd.

doc/index.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
:github_url: https://github.com/ros-controls/control_toolbox/blob/{REPOS_FILE_BRANCH}/doc/index.rst
2+
3+
control_toolbox
4+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5+
This package contains several C++ classes and filter plugins useful in writing controllers.
6+
7+
.. include:: control_toolbox.md
8+
:parser: myst_parser.sphinx_
9+
10+
.. include:: control_filters.md
11+
:parser: myst_parser.sphinx_

doc/migration.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
:github_url: https://github.com/ros-controls/realtime_tools/blob/{REPOS_FILE_BRANCH}/doc/migration.rst
2+
3+
Migration Guides: Jazzy to Kilted
4+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5+
This list summarizes important changes between Jazzy (previous) and Kilted (current) releases, where changes to user code might be necessary.

doc/release_notes.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
:github_url: https://github.com/ros-controls/realtime_tools/blob/{REPOS_FILE_BRANCH}/doc/release_notes.rst
2+
3+
Release Notes: Jazzy to Kilted
4+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5+
This list summarizes the changes between Jazzy (previous) and Kilted (current) releases.

0 commit comments

Comments
 (0)