Skip to content

Commit d853e34

Browse files
Add vizanti to docker. (#252)
* Add vizanti to docker. Signed-off-by: Jelmer de Wolde <jelmer.de.wolde@alliander.com> * Make script executable. Signed-off-by: Jelmer de Wolde <jelmer.de.wolde@alliander.com> * Add rws to install script. Signed-off-by: Jelmer de Wolde <jelmer.de.wolde@alliander.com> * Correct branch name. Signed-off-by: Jelmer de Wolde <jelmer.de.wolde@alliander.com> * Add vizanti config. Signed-off-by: Jelmer de Wolde <jelmer.de.wolde@alliander.com> * Update vizanti config. Signed-off-by: Jelmer de Wolde <jelmer.de.wolde@alliander.com> * Update config. Signed-off-by: Jelmer de Wolde <jelmer.de.wolde@alliander.com> * Add dependency. Signed-off-by: Jelmer de Wolde <jelmer.de.wolde@alliander.com> * Update vizanti.sh to correct rws repository URL and add vizanti.launch.py for launch configuration Signed-off-by: Max Waterhout <max.waterhout@hotmail.nl> * Add user interface instructions and example image for Panther Signed-off-by: Max Waterhout <max.waterhout@hotmail.nl> * Add vector pursuit controller for nav2. (#254) Signed-off-by: Jelmer de Wolde <jelmer.de.wolde@alliander.com> * Add vector pursuit controller for nav2. (#254) Signed-off-by: Jelmer de Wolde <jelmer.de.wolde@alliander.com> * Restore vizanti after merge. Signed-off-by: Jelmer de Wolde <jelmer.de.wolde@alliander.com> --------- Signed-off-by: Jelmer de Wolde <jelmer.de.wolde@alliander.com> Signed-off-by: Max Waterhout <max.waterhout@hotmail.nl> Co-authored-by: Max Waterhout <max.waterhout@hotmail.nl>
1 parent cef9f77 commit d853e34

File tree

11 files changed

+604
-0
lines changed

11 files changed

+604
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash -i
2+
3+
# SPDX-FileCopyrightText: Alliander N. V.
4+
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
7+
set -e
8+
source /home/$UNAME/.bashrc
9+
apt update
10+
11+
mkdir -p /home/$UNAME/vizanti_ws/src
12+
cd /home/$UNAME/vizanti_ws/src
13+
git clone -b ros2 https://github.com/MoffKalast/vizanti.git
14+
git clone -b jazzy https://github.com/alliander-opensource/rws.git
15+
16+
cd /home/$UNAME/vizanti_ws
17+
rosdep update --rosdistro $ROS_DISTRO
18+
rosdep install --from-paths src -y -i
19+
20+
colcon build --symlink-install
21+
echo "source /home/$UNAME/vizanti_ws/install/setup.bash" >>/home/$UNAME/.bashrc

dockerfiles/rcdt_robotics.Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ RUN ./husarion_ugv_ros.sh
1717
COPY ./install_scripts/nav2_plugins.sh .
1818
RUN ./nav2_plugins.sh
1919

20+
COPY ./install_scripts/vizanti.sh .
21+
RUN ./vizanti.sh
22+
2023
COPY ./install_scripts/franka_lock_unlock.sh .
2124
RUN ./franka_lock_unlock.sh
2225

docs/content/panther.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,47 @@ ros2 service call /panther/hardware/e_stop_reset std_srvs/srv/Trigger {}
173173

174174
:::
175175

176+
## Using an User Interfaces
177+
178+
### Default Panther UI
179+
To use the user interface created by Panther:
180+
181+
1. Start the Panther.
182+
2. Connect to the Panther network.
183+
3. Open a browser and go to: [http://10.15.20.2:8080/ui](http://10.15.20.2:8080/ui)
184+
185+
You can also control the Panther with your mobile phone, tablet or any other device in the same way.
186+
187+
### Our Custom UI
188+
To use the custom-built user interface:
189+
190+
1. Start the launch file with the UI flag enabled:
191+
```bash
192+
ros2 launch rcdt_panther rcdt_panther.launch.py ui:=True
193+
````
194+
195+
2. Access the interface:
196+
197+
* **In simulation:**
198+
199+
```
200+
http://localhost:5000
201+
```
202+
* **On the real robot:** after connecting to the Panther network, open
203+
204+
```
205+
http://10.15.20.3:5000
206+
```
207+
208+
---
209+
210+
### Example
211+
212+
The interface should look something like this:
213+
214+
![ui](../img/panther/custom_ui.png)
215+
216+
176217
## Proposed changes to reduce network traffic
177218

178219
During experimentation it became clear that at least ethernet-speed connections are required in order to deal with pointcloud data without dropping messages. The current high-level architecture when using a LiDAR is as follows:

docs/img/panther/custom_ui.png

Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
SPDX-FileCopyrightText: Alliander N. V.
2+
3+
SPDX-License-Identifier: Apache-2.0

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,25 @@ description = "RCDT_robotics"
99
environment = ".venv"
1010
requires-python = "==3.12.*"
1111
dependencies = [
12+
"argcomplete>=3.6.2",
1213
"catkin-pkg>=1.0.0",
1314
"click>=8.2.1",
1415
"distinctipy>=1.3.4",
1516
"empy==3.3.4",
1617
"flake8>=7.2.0",
1718
"flake8-pyproject>=1.2.3",
19+
"flask>=3.1.2",
1820
"inflection>=0.5.1",
1921
"lark>=1.2.2",
2022
"mashumaro>=3.16",
2123
"myst-parser>=4.0.1",
2224
"numpy<2.0",
2325
"opencv-python>=4.11.0.86",
26+
"pillow>=11.3.0",
2427
"pre-commit>=4.2.0",
28+
"psutil>=7.0.0",
2529
"pydoclint>=0.6.6",
30+
"pymongo>=4.14.1",
2631
"pyrealsense2>=2.56.5.9235",
2732
"pytest<8.4.0",
2833
"pytest-timeout>=2.4.0",
@@ -35,6 +40,7 @@ dependencies = [
3540
"termcolor>=3.1.0",
3641
"tornado>=6.5.1",
3742
"transforms3d>=0.4.2",
43+
"waitress>=3.0.2",
3844
]
3945

4046
[dependency-groups]

0 commit comments

Comments
 (0)