Skip to content

Commit

Permalink
Added zenoh router to launch file
Browse files Browse the repository at this point in the history
  • Loading branch information
CihatAltiparmak committed Oct 7, 2024
1 parent 573ab22 commit be62f6f
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions launch/scenario_basic_subscription_benchmark.launch.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import os
from launch import LaunchDescription
from launch.substitutions import LaunchConfiguration
from launch.substitutions import (
LaunchConfiguration,
EnvironmentVariable,
EqualsSubstitution,
)
from launch.conditions import IfCondition
from ament_index_python.packages import get_package_share_directory
from launch.actions import (
DeclareLaunchArgument,
Expand Down Expand Up @@ -45,6 +50,19 @@ def launch_setup(context, *args, **kwargs):
],
)

zenoh_router = Node(
name="zenoh_router",
package="rmw_zenoh_cpp",
executable="rmw_zenohd",
output="both",
condition=IfCondition(
EqualsSubstitution(
EnvironmentVariable("RMW_IMPLEMENTATION", default_value=""),
"rmw_zenoh_cpp",
),
),
)

benchmark_main_node = Node(
name="benchmark_main",
package="moveit_middleware_benchmark",
Expand All @@ -59,7 +77,7 @@ def launch_setup(context, *args, **kwargs):
on_exit=Shutdown(),
)

return [topic_publisher, benchmark_main_node]
return [zenoh_router, topic_publisher, benchmark_main_node]


def generate_launch_description():
Expand Down

0 comments on commit be62f6f

Please sign in to comment.