Skip to content

Commit

Permalink
Configure zenohd as router for both robot and operator that can talk …
Browse files Browse the repository at this point in the history
…to each other
  • Loading branch information
LoyVanBeek committed Jan 6, 2025
1 parent c95f255 commit c9d8935
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker/operator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ RUN apt update && apt-get install -y --no-install-recommends \
iproute2 \
net-tools \
tmux \
iputils-ping \
netcat-traditional \
vim \
&& rm -rf /var/lib/apt/lists/*

# Install rmw_zenoh
Expand Down
6 changes: 6 additions & 0 deletions docker/operator/zenoh.json5
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{
mode: "router",
plugins: {
rest: { // activate and configure the REST plugin
http_port: 8000 // with HTTP server listening on port 8000
},
},
connect: {
endpoints: ["tcp/192.168.178.37:7447"],
},
Expand Down
2 changes: 2 additions & 0 deletions docker/robot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ RUN apt update -qq && apt install -y --no-install-recommends \
wget \
iproute2 \
net-tools \
iputils-ping \
netcat-traditional \
&& rm -rf /var/lib/apt/lists/*

# install_ros_tools
Expand Down
6 changes: 6 additions & 0 deletions docker/robot/zenoh.json5
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{
mode: "router",
plugins: {
rest: { // activate and configure the REST plugin
http_port: 8000 // with HTTP server listening on port 8000
},
},
connect: {
endpoints: ["tcp/192.168.178.138:7447"],
},
Expand Down

0 comments on commit c9d8935

Please sign in to comment.