Skip to content

Commit 48f8159

Browse files
authored
Update README.md
1 parent deaec62 commit 48f8159

File tree

1 file changed

+51
-36
lines changed

1 file changed

+51
-36
lines changed

README.md

Lines changed: 51 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -58,54 +58,69 @@ The diagram below shows how the different libraries interact:
5858
#### Ubuntu 20.04
5959

6060
1. First ensure prerequisites are installed:
61-
62-
`sudo apt update`
63-
64-
`sudo apt install -y build-essential cmake git`
65-
66-
2. Download version 3.4 directly (or from the webpage):
67-
68-
`wget https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.gz`
69-
70-
3. Extract the downloaded file:
71-
72-
`tar -xvf eigen-3.4.0.tar.gz`
73-
74-
`cd eigen-3.4.0`
75-
76-
4. Build and install:
77-
78-
`mkdir build && cd build`
61+
```
62+
sudo apt update
63+
```
64+
```
65+
sudo apt install -y build-essential cmake git
66+
```
7967

80-
`cmake ../`
68+
3. Download version 3.4 directly (or from the webpage):
69+
```
70+
wget https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.gz
71+
```
72+
73+
5. Extract the downloaded file:
74+
```
75+
tar -xvf eigen-3.4.0.tar.gz
76+
```
77+
```
78+
cd eigen-3.4.0
79+
```
8180

82-
`sudo make install`
81+
7. Build and install:
82+
```
83+
mkdir build && cd build
84+
```
85+
```
86+
cmake ../
87+
```
88+
```
89+
sudo make install
90+
```
8391

8492
#### Ubuntu 22.04 & Later
8593

8694
Eigen 3.4 is automatically installed on later versions of Ubuntu. In the command line you can run:
8795

88-
`sudo apt install libeigen3-dev`
96+
```
97+
sudo apt install libeigen3-dev
98+
```
8999

90100
### Installing RobotLibrary:
91101

92102
1. Clone this repository in to your working directory:
93-
94-
`git clone https://github.com/Woolfrey/software_robot_library.git`
95-
96-
2. Navigate in to the folder:
97-
98-
`cd ~/<your_working_directory>/software_robot_library`
99-
100-
3. Create a build directory and navigate in to it:
101-
102-
`mkdir build && cd build`
103-
104-
4. Run the following commands in the `build` directory:
105-
106-
`cmake ..`
103+
```
104+
git clone https://github.com/Woolfrey/software_robot_library.git
105+
```
107106

108-
`sudo make install`
107+
3. Navigate in to the folder:
108+
```
109+
cd ~/<your_working_directory>/software_robot_library
110+
```
111+
112+
5. Create a build directory and navigate in to it:
113+
```
114+
mkdir build && cd build
115+
```
116+
117+
7. Run the following commands in the `build` directory:
118+
```
119+
cmake ..
120+
```
121+
```
122+
sudo make install
123+
```
109124

110125
You should now be able to include different parts of the library in your C++ files.
111126

0 commit comments

Comments
 (0)