added foxglove websocket bridge
This commit is contained in:
parent
201b5cc580
commit
805e9cf72c
@ -32,8 +32,6 @@ services:
|
|||||||
# Allows graphical programs in the container.
|
# Allows graphical programs in the container.
|
||||||
- /tmp/.X11-unix:/tmp/.X11-unix:rw
|
- /tmp/.X11-unix:/tmp/.X11-unix:rw
|
||||||
- ${XAUTHORITY:-$HOME/.Xauthority}:/root/.Xauthority
|
- ${XAUTHORITY:-$HOME/.Xauthority}:/root/.Xauthority
|
||||||
devices:
|
|
||||||
- /dev/input/js0:/dev/input/js0
|
|
||||||
|
|
||||||
# Overlay image containing the project specific source code.
|
# Overlay image containing the project specific source code.
|
||||||
overlay:
|
overlay:
|
||||||
@ -225,8 +223,6 @@ services:
|
|||||||
# Networking and IPC for ROS 2
|
# Networking and IPC for ROS 2
|
||||||
network_mode: host
|
network_mode: host
|
||||||
ipc: host
|
ipc: host
|
||||||
devices:
|
|
||||||
- /dev/input/js0:/dev/input/js0
|
|
||||||
environment:
|
environment:
|
||||||
- ROS_DOMAIN_ID=5
|
- ROS_DOMAIN_ID=5
|
||||||
|
|
||||||
@ -254,4 +250,15 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
# Allows graphical programs in the container.
|
# Allows graphical programs in the container.
|
||||||
- /tmp/.X11-unix:/tmp/.X11-unix:rw
|
- /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
|
@ -29,7 +29,7 @@ COPY dependencies.amd64.repos .
|
|||||||
RUN echo "Hardware platform is: $(uname -m)"
|
RUN echo "Hardware platform is: $(uname -m)"
|
||||||
RUN uname -a
|
RUN uname -a
|
||||||
|
|
||||||
RUN echo "update base 23.08.2023"
|
RUN echo "update base 29.08.2023"
|
||||||
|
|
||||||
RUN if [ "$(uname -m)" = "x86_64" ]; then \
|
RUN if [ "$(uname -m)" = "x86_64" ]; then \
|
||||||
echo "Copying files for linux/amd64"; \
|
echo "Copying files for linux/amd64"; \
|
||||||
@ -46,13 +46,15 @@ RUN vcs import < dependencies.repos;
|
|||||||
WORKDIR /rmp_ws
|
WORKDIR /rmp_ws
|
||||||
RUN source /opt/ros/${ROS_DISTRO}/setup.bash \
|
RUN source /opt/ros/${ROS_DISTRO}/setup.bash \
|
||||||
&& apt-get update -y \
|
&& 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
|
&& rosdep install --from-paths src --ignore-src --rosdistro ${ROS_DISTRO} -y
|
||||||
|
|
||||||
RUN source /opt/ros/${ROS_DISTRO}/setup.bash \
|
RUN source /opt/ros/${ROS_DISTRO}/setup.bash \
|
||||||
&& colcon build --symlink-install
|
&& colcon build --symlink-install
|
||||||
|
|
||||||
# Use Cyclone DDS as middleware and install xacro
|
# 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}-rmw-cyclonedds-cpp \
|
||||||
ros-${ROS_DISTRO}-xacro \
|
ros-${ROS_DISTRO}-xacro \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
Loading…
Reference in New Issue
Block a user