Skip to content

Commit

Permalink
add rmw zenoh support to rmw plugin
Browse files Browse the repository at this point in the history
Fixes #307
  • Loading branch information
tfoote committed Jan 24, 2025
1 parent fc46227 commit b715ae5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/rocker/rmw_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class RMW(RockerExtension):
rmw_map = {
'cyclonedds': ['ros-${ROS_DISTRO}-rmw-cyclonedds-cpp'],
'fastrtps' : ['ros-${ROS_DISTRO}-rmw-fastrtps-cpp'],
'zenoh' : ['ros-${ROS_DISTRO}-rmw-zenoh-cpp'],
# TODO(tfoote) Enable connext with license acceptance method
# 'connextdds': ['ros-${ROS_DISTRO}-rmw-connextdds'],
}
Expand Down
7 changes: 7 additions & 0 deletions test/test_rmw_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,10 @@ def test_rmw_extension(self):
self.assertEqual(dig.run(command='dpkg -l ros-rolling-rmw-cyclonedds-cpp'), 0)
self.assertIn('-e RMW_IMPLEMENTATION=rmw_cyclonedds_cpp', dig.generate_docker_cmd('', mode='dry-run'))
dig.clear_image()

mock_cliargs = {'rmw': ['zenoh']}
dig = DockerImageGenerator([rmw_plugin()], mock_cliargs, 'ros:rolling')
self.assertEqual(dig.build(), 0)
self.assertEqual(dig.run(command='dpkg -l ros-rolling-rmw-zenoh-cpp'), 0)
self.assertIn('-e RMW_IMPLEMENTATION=rmw_zenoh_cpp', dig.generate_docker_cmd('', mode='dry-run'))
dig.clear_image()

0 comments on commit b715ae5

Please sign in to comment.