Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ RUN python3 -m pip install pyqtgraph PyQt6 --break-system-packages
RUN python3 -m pip install pyqtdarktheme==2.1.0 --ignore-requires-python --break-system-packages
RUN apt-get remove -y ros-jazzy-sas-force-sensor
RUN mkdir -p /root/sas_force_sensor_devel/src/
COPY . /root/sas_force_sensor_devel/src/sas_force_sensor
10 changes: 6 additions & 4 deletions docker/compose.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
services:
sas_force_sensor:
build: .
build:
context: ..
dockerfile: docker/Dockerfile
environment:
- DISPLAY
- ROS_DOMAIN_ID
volumes:
- ~/.Xauthority:/root/.Xauthority
- /tmp/.X11-unix:/tmp/.X11-unix:rw
- ../../sas_force_sensor:/root/sas_force_sensor_devel/src/sas_force_sensor
command: /bin/bash -c "
cd /root/sas_force_sensor_devel/src/
&& ls .
Expand All @@ -16,14 +17,15 @@ services:
&& ros2 run sas_force_sensor sas_force_sensor_interface_example.py"

sas_force_sensor_gui:
build: .
build:
context: ..
dockerfile: docker/Dockerfile
environment:
- DISPLAY
- ROS_DOMAIN_ID
volumes:
- ~/.Xauthority:/root/.Xauthority
- /tmp/.X11-unix:/tmp/.X11-unix:rw
- ../../sas_force_sensor:/root/sas_force_sensor_devel/src/sas_force_sensor
command: /bin/bash -c "
sudo apt-get install -y xvfb
&& (sudo /usr/bin/Xvfb :99 -screen 0 1280x1024x24 &)
Expand Down