-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7910bf2
commit 2324a96
Showing
4 changed files
with
67 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
mqtt_ros_bridge: | ||
ros__parameters: | ||
srv_client: | ||
topic: "service_topic" | ||
type: "example_interfaces.srv:AddTwoInts" | ||
interaction_type: "ros_client" | ||
use_ros_serializer: False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import os | ||
|
||
from ament_index_python.packages import get_package_share_directory | ||
from launch.actions import SetEnvironmentVariable | ||
from launch.launch_description import LaunchDescription | ||
from launch_ros.actions import Node | ||
|
||
|
||
def generate_launch_description() -> LaunchDescription: | ||
config = os.path.join( | ||
get_package_share_directory('mqtt_ros_bridge'), | ||
'config', | ||
'client.yaml' | ||
) | ||
|
||
run_bridge_node = Node( | ||
package='mqtt_ros_bridge', | ||
executable='bridge_node', | ||
emulate_tty=True, | ||
output='screen', | ||
arguments=[config] | ||
) | ||
|
||
return LaunchDescription([ | ||
SetEnvironmentVariable("ROS_DOMAIN_ID", "1"), | ||
run_bridge_node | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters