You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+176-4Lines changed: 176 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,9 +57,181 @@ To use libfranka version ``0.14.0`` or later, you will need to install `pinocchi
57
57
sudo apt-get update
58
58
sudo apt-get install -y robotpkg-pinocchio
59
59
60
+
.. _building-in-docker:
61
+
62
+
3. Building libfranka Inside Docker
63
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
64
+
65
+
If you prefer to build **libfranka** inside a Docker container, you can use the provided Docker setup. This ensures a consistent build environment and avoids dependency conflicts on your host system.
66
+
67
+
Docker creates a self-contained environment, which is helpful if:
68
+
69
+
- Your system doesn't meet the requirements
70
+
- You want to avoid installing dependencies on your main system
71
+
- You prefer a clean, reproducible setup
72
+
73
+
If you haven't already, clone the **libfranka** repository:
Exit the Docker container by typing ``exit`` in the terminal.
115
+
116
+
3. **Install libfranka on your host system**:
117
+
118
+
Inside the libfranka build folder ``cd build`` on your host system, run:
119
+
120
+
.. code-block:: bash
121
+
122
+
sudo dpkg -i libfranka*.deb
123
+
124
+
125
+
Using Visual Studio Code
126
+
^^^^^^^^^^^^^^^^^^^^^^^^
127
+
128
+
You can also build **libfranka** inside Docker using **VS Code** with the **Dev Containers** extension. This provides an integrated development environment inside the container.
129
+
130
+
1. **Install Visual Studio Code**:
131
+
132
+
- Download and install **Visual Studio Code** from the official website: https://code.visualstudio.com/.
133
+
- Follow the installation instructions for your operating system.
134
+
135
+
2. **Open the Project in VS Code**:
136
+
137
+
Inside the libfranka folder, open a new terminal and run:
138
+
139
+
.. code-block:: bash
140
+
141
+
code .
142
+
143
+
This will open the project in VS Code.
144
+
145
+
3. **Install the Dev Containers Extension**:
146
+
147
+
Install the "Dev Containers" extension in VS Code from the Extensions Marketplace.
148
+
149
+
4. **Open the Project in a Dev Container**:
150
+
151
+
- Open the **Command Palette** (``Ctrl+Shift+P``).
152
+
- Select **Dev Containers: Reopen in Container**.
153
+
- VS Code will build the Docker image and start a container based on the provided ``.ci/Dockerfile``.
You can check the version of the installed library:
220
+
221
+
.. code-block:: bash
222
+
223
+
dpkg -l | grep libfranka
224
+
225
+
Expected output:
226
+
227
+
.. code-block:: text
228
+
229
+
ii libfranka 0.18.1-9-g722bf63 amd64 libfranka built using CMake
230
+
231
+
60
232
.. _building-from-source:
61
233
62
-
3. Building and Installation from Source
234
+
4. Building and Installation from Source
63
235
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
64
236
65
237
Before building and installing from source, please uninstall existing installations of libfranka to avoid conflicts:
@@ -131,7 +303,7 @@ Installing via a Debian package simplifies the process compared to building from
131
303
132
304
.. _usage:
133
305
134
-
4. Usage
306
+
5. Usage
135
307
~~~~~~~~
136
308
137
309
After installation, check the `Minimum System and Network Requirements <https://frankarobotics.github.io/docs/requirements.html>`_ for network settings, the `Operating System and PC Configuration <https://frankarobotics.github.io/docs/installation_linux.html#setting-up-the-real-time-kernel>`_ for system setup, and the `Getting Started Manual <https://frankarobotics.github.io/docs/getting_started.html#>`_ for initial steps. Once configured, you can control the robot using the example applications provided in the examples folder.
@@ -144,14 +316,14 @@ To run a sample program, navigate to the build folder and execute the following
144
316
145
317
.. _pylibfranka:
146
318
147
-
5. Pylibfranka
319
+
6. Pylibfranka
148
320
~~~~~~~~~~~~~~
149
321
150
322
Pylibfranka is a Python binding for libfranka, allowing you to control Franka robots using Python. It is included in the libfranka repository and can be built alongside libfranka. For more details, see ``pylibfranka`` and its `README <pylibfranka/README.md>`_. The `generated API documentation <https://frankarobotics.github.io/libfranka/pylibfranka/latest>`_ offers an overview of its capabilities.
151
323
152
324
.. _development-information:
153
325
154
-
6. Development Information
326
+
7. Development Information
155
327
~~~~~~~~~~~~~~~~~~~~~~~~~~
156
328
157
329
If you actively contribute to this repository, you should install and set up pre-commit hooks:
0 commit comments