Skip to content

Commit c9be8db

Browse files
authored
Merge pull request #168 from pockerman/feat/166_add_chrono_diff_drive_robot
Fix example markdown (#166)
2 parents 1fd8c04 + 25efd10 commit c9be8db

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

examples/example_14/example_14.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,24 @@
22

33
in this example we will create an environment for reinforcement learning based
44
on the <a href="https://github.com/projectchrono/chrono">Chrono</a> library.
5-
Specifically, we will create an environment that includes a <a href="https://en.wikipedia.org/wiki/Differential_wheeled_robot2>differential drive system</a>.
5+
Specifically, we will create an environment that includes a <a href="https://en.wikipedia.org/wiki/Differential_wheeled_robot">differential drive system</a>.
66
Note that the model we will create will not be of high fidelity as the purpose of the example is show how
77
to use Chrono to create reinforcement learning environments.
88

99
In order to be able to run this example you need to configure bitrl with Chrono support. You will also
10-
need the <a herf="https://irrlicht.sourceforge.io/">Irrlicht</a> library for visualising the robot.
10+
need the <a href="https://irrlicht.sourceforge.io/">Irrlicht</a> library for visualising the robot.
1111

1212
The following image shows an image of the environment we will create
1313

14-
| ![average-per-epoch-loss](./env.png) |
14+
| ![Environment overview](./env.png) |
1515
|:------------------------------------:|
1616

1717

1818
## Create the robot
1919

2020
Below is the class that handles the robot model.
2121

22-
@code
22+
@code{.cpp}
2323
class DiffDriveRobot
2424
{
2525
public:
@@ -43,7 +43,7 @@ private:
4343
The chassis of the robot is a simple rectangular plate. It also has three wheels. The model robot we will develop will not consider motors.
4444
However, Chrono allows for high fidelity models is this is needed. Below is the function that build the robot
4545

46-
@node
46+
@code
4747
void DiffDriveRobot::build()
4848
{
4949
// build the chassis of the robot
@@ -105,7 +105,6 @@ wheels_.second -> SetLinVel(chrono::ChVector3d(speed, 0.0, 0.0));
105105
caster_wheel_ -> SetLinVel(chrono::ChVector3d(speed, 0.0, 0.0));
106106

107107
}
108-
109108
@endcode
110109

111110
## Create the environment

0 commit comments

Comments
 (0)