Skip to content

Commit b3bab28

Browse files
committed
2 parents 57271d4 + af20335 commit b3bab28

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

Trajectory/README.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ This sub-library contains classes for generating trajectories; paths as function
2121
## Data Structures
2222

2323
<p align="center">
24-
<img src="doc/image.png" width="300" height="auto"/>
24+
<img src="doc/Structs.png" width="600" height="auto"/>
2525
</p>
2626

2727
[:top: Back to Top](#stopwatch-trajectory)
@@ -45,7 +45,7 @@ The purpose of this class is to provide a standardised structure to all trajecto
4545
### Class Diagram:
4646

4747
<p align="center">
48-
<img src="doc/image.png" width="300" height="auto"/>
48+
<img src="doc/TrajectoryBase.png" width="700" height="auto"/>
4949
</p>
5050

5151
[:top: Back to Top](#stopwatch-trajectory)
@@ -54,6 +54,10 @@ The purpose of this class is to provide a standardised structure to all trajecto
5454

5555
This class builds on the `RobotLibrary::Math::Spline` object to create a spline as a function of time, over multiple dimensions. This is useful for generating joint trajectories, for example.
5656

57+
<p align="center">
58+
<img src="doc/SplineOutput.png" width="400" height="auto"/>
59+
</p>
60+
5761
### Construction:
5862

5963
1. An vector of `RobotLibrary::Trajectory::State` structs specifying the waypoints,
@@ -73,7 +77,7 @@ There is only 1 method: `query_state` returns the position, velocity, and accele
7377
### Class Diagram:
7478

7579
<p align="center">
76-
<img src="doc/image.png" width="300" height="auto"/>
80+
<img src="doc/SplineTrajectory.png" width="700" height="auto"/>
7781
</p>
7882

7983
[:top: Back to Top](#stopwatch-trajectory)
@@ -101,7 +105,7 @@ The `query_state` method gives a `RobotLibrary::Trajectory::CartesianState` for
101105
### Class Diagram:
102106

103107
<p align="center">
104-
<img src="doc/image.png" width="300" height="auto"/>
108+
<img src="doc/CartesianSpline.png" width="800" height="auto"/>
105109
</p>
106110

107111
[:top: Back to Top](#stopwatch-trajectory)
@@ -110,6 +114,10 @@ The `query_state` method gives a `RobotLibrary::Trajectory::CartesianState` for
110114

111115
This class generates a trajectory where the velocity follows a trapezoid; ramping up at a constant acceleration, coasting at a constant velocity, then ramping down to a constant decelaration. It can also handle multiple waypoints.
112116

117+
<p align="center">
118+
<img src="doc/TrapezoidOutput.png" width="400" height="auto"/>
119+
</p>
120+
113121
> [!NOTE]
114122
> Each waypoint starts and ends with zero velocity, due to the complexity of computation. For smooth transitions, it's better to use a spline.
115123
@@ -130,7 +138,7 @@ Just one: the `query_state` method returns an `RobotLibrary::Trajectory::State`
130138
### Class Diagram:
131139

132140
<p align="center">
133-
<img src="doc/image.png" width="300" height="auto"/>
141+
<img src="doc/Trapezoidal.png" width="800" height="auto"/>
134142
</p>
135143

136144
[:top: Back to Top](#stopwatch-trajectory)

0 commit comments

Comments
 (0)