added foxglove websocket bridge

This commit is contained in:
Björn Ellensohn 2023-08-29 09:07:28 +02:00
parent 201b5cc580
commit 805e9cf72c
2 changed files with 16 additions and 7 deletions

View File

@ -32,8 +32,6 @@ services:
# Allows graphical programs in the container.
- /tmp/.X11-unix:/tmp/.X11-unix:rw
- ${XAUTHORITY:-$HOME/.Xauthority}:/root/.Xauthority
devices:
- /dev/input/js0:/dev/input/js0
# Overlay image containing the project specific source code.
overlay:
@ -225,8 +223,6 @@ services:
# Networking and IPC for ROS 2
network_mode: host
ipc: host
devices:
- /dev/input/js0:/dev/input/js0
environment:
- ROS_DOMAIN_ID=5
@ -254,4 +250,15 @@ services:
volumes:
# Allows graphical programs in the container.
- /tmp/.X11-unix:/tmp/.X11-unix:rw
- ${XAUTHORITY:-$HOME/.Xauthority}:/root/.Xauthority
- ${XAUTHORITY:-$HOME/.Xauthority}:/root/.Xauthority
# Foxglove Studio ROS2 Bridge
bridge:
extends: base
command: >
ros2 launch foxglove_bridge foxglove_bridge_launch.xml port:=8765
stdin_open: true
tty: true
# Networking and IPC for ROS 2
network_mode: host
ipc: host

View File

@ -29,7 +29,7 @@ COPY dependencies.amd64.repos .
RUN echo "Hardware platform is: $(uname -m)"
RUN uname -a
RUN echo "update base 23.08.2023"
RUN echo "update base 29.08.2023"
RUN if [ "$(uname -m)" = "x86_64" ]; then \
echo "Copying files for linux/amd64"; \
@ -46,13 +46,15 @@ RUN vcs import < dependencies.repos;
WORKDIR /rmp_ws
RUN source /opt/ros/${ROS_DISTRO}/setup.bash \
&& apt-get update -y \
&& apt-get install -y --no-install-recommends \
ros-${ROS_DISTRO}-foxglove-bridge \
&& rosdep install --from-paths src --ignore-src --rosdistro ${ROS_DISTRO} -y
RUN source /opt/ros/${ROS_DISTRO}/setup.bash \
&& colcon build --symlink-install
# Use Cyclone DDS as middleware and install xacro
RUN apt-get update && apt-get install -y --no-install-recommends \
RUN apt-get install -y --no-install-recommends \
ros-${ROS_DISTRO}-rmw-cyclonedds-cpp \
ros-${ROS_DISTRO}-xacro \
&& rm -rf /var/lib/apt/lists/*