Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatma-Dhaoui committed Sep 24, 2024
1 parent e2fe958 commit 5a3e0d9
Showing 1 changed file with 3 additions and 26 deletions.
29 changes: 3 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,34 +136,11 @@ The `franka_ros2` package includes a `.devcontainer` folder, which allows you to
source install/setup.sh
```
## Troubleshooting
### Error: Docker Unable to Access /tmp/.X11-unix
### `libfranka: UDP receive: Timeout error`

If you encounter the following error after running **Rebuild and Reopen in Container**:

Error response from daemon: Mounts denied:
The path /tmp/.X11-unix is not shared from the host and is not known to Docker.


This occurs because Docker cannot access the `/tmp/.X11-unix` directory on the host system. Follow these steps to fix it:

1. **Allow Docker to Access /tmp/.X11-unix:**

If you are using Docker Desktop, navigate to:

1. `Docker Desktop` -> `Settings` -> `Resources` -> `File Sharing`
2. Add `/tmp/.X11-unix` to the list of shared directories.
3. Apply the changes and restart Docker.

2. **Verify Sharing Path on Linux:**

Ensure that Docker has the correct permissions for /tmp/.X11-unix:
```bash
sudo chmod +x /tmp/.X11-unix
```


3. **Restart Docker and re-run the container.**
If you encounter a UDP receive timeout error while communicating with the robot, avoid using Docker Desktop. It may not provide the necessary real-time capabilities required for reliable communication with the robot. Instead, using Docker Engine is sufficient for this purpose.

A real-time kernel is essential to ensure proper communication and to prevent timeout issues. For guidance on setting up a real-time kernel, please refer to the [Franka installation documentation](https://frankaemika.github.io/docs/installation_linux.html#setting-up-the-real-time-kernel).

## Contributing

Expand Down

0 comments on commit 5a3e0d9

Please sign in to comment.