Skip to content

Instantly share code, notes, and snippets.

@bayodesegun
Created April 5, 2023 23:22
Show Gist options
  • Save bayodesegun/8b9d47355eed27b76e9d26309e4e9f70 to your computer and use it in GitHub Desktop.
Save bayodesegun/8b9d47355eed27b76e9d26309e4e9f70 to your computer and use it in GitHub Desktop.
<launch>
<arg name="topic_name" default="/test_topic" />
<arg name="message" default="Hello there!" />
<node pkg="rostopic" type="rostopic" name="rostopic_pub_node" output="screen" args="pub $(arg topic_name) std_msgs/String 'data: $(arg message)'" />
<node pkg="rostopic" type="rostopic" name="rostopic_echo_node" output="screen" args="echo $(arg topic_name)" />
</launch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment