Skip to content

Commit dabc900

Browse files
committed
evol(README): add information in readme
Signed-off-by: m-brl <[email protected]>
1 parent 2eb3889 commit dabc900

File tree

3 files changed

+48
-14
lines changed

3 files changed

+48
-14
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ help:
55
@echo " help: Show this help message"
66
@echo " dc-up: Create and start containers"
77
@echo " dc-down: Stop and remove containers"
8+
@echo " dc-reup: Recreate containers"
89
@echo " dc-start: Start containers"
910
@echo " dc-stop: Stop containers"
1011
@echo " dc-restart: Restart containers"
@@ -20,6 +21,10 @@ dc-up:
2021
dc-down:
2122
$(DOCKER_COMPOSE) down
2223

24+
dc-reup:
25+
$(DOCKER_COMPOSE) down
26+
$(DOCKER_COMPOSE) up -d
27+
2328
dc-start:
2429
$(DOCKER_COMPOSE) start
2530

README.md

Lines changed: 41 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@ The simulator is shipped in a ROS 2 - ready to use - package
2424

2525
---
2626

27+
## Requirements
28+
29+
- Ubuntu 22.04 or docker
30+
- WSL (on windows)
31+
- VNC Client
32+
- Make (not mandatory but strongly recommended)
33+
34+
---
35+
2736
## 📥 Installation
2837

2938
Execute the installation script
@@ -32,9 +41,37 @@ Execute the installation script
3241
curl -fsSL https://raw.githubusercontent.com/Sentience-Robotics/inmoov_ros_sim/refs/heads/mbo/%232/inmoov-ros-sim-repo/scripts/install.sh | bash
3342
```
3443

44+
### On docker
45+
46+
When your installation is complete, execute the following commands
47+
48+
```bash
49+
chmod -R 777 inmoov_ros_sim && \
50+
cd inmoov_ros_sim && \
51+
make dc-term
52+
```
53+
3554
---
3655

37-
## ⚙️ Compilation
56+
## Usage
57+
58+
### Makefile
59+
60+
Available commands:
61+
- help: Show this help message
62+
- dc-up: Create and start containers
63+
- dc-down: Stop and remove containers
64+
- dc-reup: Recreate containers
65+
- dc-start: Start containers
66+
- dc-stop: Stop containers
67+
- dc-restart: Restart containers
68+
- dc-term: Open a terminal in the container
69+
- dc-logs: View output from containers
70+
- ros-build: Build ROS2 workspace
71+
- ros-run: Run ROS2 launch file
72+
- ros-clean: Clean ROS2 workspace
73+
74+
### ⚙️ Compilation
3875

3976
Build the package
4077

@@ -43,18 +80,12 @@ make ros-build
4380

4481
```
4582
Source your workspace
46-
> On bash
83+
4784
```bash
4885
source ./install/local_setup.bash
4986
```
50-
> On zsh
51-
```zsh
52-
source ./install/local_setup.zsh
53-
```
5487

55-
---
56-
57-
## 🖥️ Display (for docker)
88+
### 🖥️ Display (for docker)
5889

5990
Install a vnc client (you can use remmina, vncviewer, etc)
6091

@@ -72,9 +103,7 @@ Host: `127.0.0.1:1`
72103

73104
Password: `abc123`
74105

75-
---
76-
77-
## 🚀 Launch the package
106+
### 🚀 Launch the package
78107

79108
```bash
80109
make ros-run

scripts/docker_install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ $DOCKER_COMPOSE -f docker-compose.yml up -d
1313

1414
echo -e "\033[32m\033[1mInstallation complete\033[0m, you can now access the container with the following command:"
1515
echo "chmod -R 777 inmoov_ros_sim && \\"
16-
echo "cd inmoov_ros_sim && \\"
17-
echo "make dc-term"
16+
echo " cd inmoov_ros_sim && \\"
17+
echo " make dc-term"

0 commit comments

Comments
 (0)